View previous topic :: View next topic |
Author |
Message |
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sat Nov 26, 2005 2:57 pm Post subject: |
|
|
Sorry, typo.
Code: | mount /dev/hda6 /boot
Ext2-fs warning: mounting unchecked fs, running e2fsck is recommended
cd /boot
cd /usr/src/linux
-/bin/bash: cd: /usr/src/linux: No such file or directory |
_________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Nov 26, 2005 3:17 pm Post subject: |
|
|
Ok. So you seem to be missing /usr/src/linux. Please post the output of
Code: | # mount
# ls -l /usr/src |
However, I still don't understand if you're able to boot into your new system and if not what error you get. If there is an error, please post the complete and precise error message. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sat Nov 26, 2005 3:32 pm Post subject: |
|
|
I have to add two points: I find it very frustrating because the only way i know how to copy this information is by hand/pen. and also i cannot figure out how to leave the livecd to enter commands such as nano, the only nano command i can edit is my grub.conf, which was handy.
<what i type>
Code: | <mount>
tmpfs on /type tmpfs (rw)
/dev/cdroms/cdrom0 on /mnt/cdrom type iso9660 (rw)
/dev/loop/0 on /mnt/livecd type squashfs (ro)
proc on /proc (rw,nodiratime)
systs on /sys type eysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
cache dir on /mnt/livecd/lib64/splash/cache type tmpfs (rw)
tmpfs on /lib/firmware type tmpfs (rw)
tmpfs on /usr/portage type tmpfs (rw)
usb on /proc/bus/usb type usbfs (rw)
<ls -l /usr/src>
total 0[/ |
_________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Nov 26, 2005 3:54 pm Post subject: |
|
|
If you don't know how to do two things at the same time on the live-cd, you can use at least 6 VTs by pressing ALT+FN with N equal to the terminal. So for terminal 1 press ALT+F1, for terminal 2 press ALT+F2 and so on.
You should be able to use links2 with the live-cd. If you enable gpm, by selecting text with the mouse, you can paste it into another terminal by pressing the mouse middle button.
Did you run mount under your new system? It seems you runned it under the live-cd. Have you rebooted the system and attempted to start it? If so, what happens? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sat Nov 26, 2005 3:58 pm Post subject: |
|
|
donvella wrote: | Sorry, typo.
Code: | mount /dev/hda6 /boot
Ext2-fs warning: mounting unchecked fs, running e2fsck is recommended
cd /boot
cd /usr/src/linux
-/bin/bash: cd: /usr/src/linux: No such file or directory |
|
This is what happens, i told you earlier, but it still doesnt help, nothing is working and i dont know what to do, copying and pasting into another terminal wont help me paste it online because i cant even load up a networked environment. Im really frustrated. I cannot get gentoo working, i dont know how to restart the installation, I dont know how to format my partitions nor do i want to if the problem is easily fixed, i DONT know how to edit things in gentoo without using the livecd and when i use my livecd i dont know how to access anything else. what am i doing wrong how can i get this right?
Questions:
1. What command allows me to exit the LiveCD area when i boot up with my livecd?
2. How do i correct my problem in the above quote?
3. How do i get my system to boot up properly? _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Nov 26, 2005 4:13 pm Post subject: |
|
|
Ok, let me try to address some of your questions to help control your frustration.
Let me start with an initial note, don't reinstall your system just because you have a problem. You'll likely get it again later and will be upset by the time you've wasted.
If I understood it correctly, your first problem is that you don't know how to recreate your sytem from the live-cd. That's simple. After booting with the live-cd, you have to mount your partitions under /mnt/gentoo as you did when you installed the system, and then you have to chroot
Code: | # chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile |
When you're done, you leave the chroot with exit and you can restart your system by doing
Code: | # unmount /mnt/gentoo/boot
# unmount /mnt/gentoo/proc
# unmount /mnt/gentoo/
# reboot |
For your system to be able to boot properly, you have to correct the problems with your kernel. That means recompiling it, copying it to /boot and to update GRUB. I'm convinced the error you've posted doesn't happen when you boot from your new system, but when you try to update your kernel after booting with the live-cd and having forgotten to mount the partitions. Am I right? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sat Nov 26, 2005 11:48 pm Post subject: |
|
|
Well, it doesnt look like im going to get out of this situation early...
(Im using knoppix so i can copy the text straight over for you)
Code: | root@0[knoppix]# chroot /mnt/gentoo /bin/bash
chroot: cannot change root directory to /mnt/gentoo: No such file or director |
This same code came up using the gentoo livecd, im running out of ideas now.
Code: | noppix@0[knoppix]$ ls /mnt
auto cdrom floppy hda1 hda5 hda6 hda8 hda9 sda1 |
/mnt/gentoo is disapeared, where did it go? _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 12:23 am Post subject: |
|
|
The knoppix live-cd does not have a /mnt/gentoo dir. You will have to create one by hand. If you don't remember the partitions you've used to install Gentoo, post the output of fdisk -l. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sun Nov 27, 2005 12:34 am Post subject: |
|
|
Like i mentioned i tried the same code in the livecd and it still didnt find /mnt/gentoo. it came up with the same that knoppix did.
Code: | root@0[knoppix]# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 9728 67898722+ f W95 Ext'd (LBA)
/dev/hda5 1276 7757 52066633+ 7 HPFS/NTFS
/dev/hda6 7758 7770 104391 83 Linux
/dev/hda7 7771 7835 522081 82 Linux swap / Solaris
/dev/hda8 7836 8879 8385898+ 83 Linux
/dev/hda9 8880 9728 6819561 83 Linux
Disk /dev/sda: 255 MB, 255590400 bytes
256 heads, 50 sectors/track, 39 cylinders
Units = cylinders of 12800 * 512 = 6553600 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 249572+ e W95 FAT16 (LBA) |
Now this is what i what i got when i tried to load Gentoo from grub.
Code: | Booting 'Gentoo Linux'
root (hd0,5)
Filesystem type is ext2fs, partition type 0x83
kernel /kernel-2.6.12-gentoo-rc6 root=/dev/ram0 init=/linuxxrc ramdisk=8192 real_root=/dev/hda8 udev
Error is: File not found |
To this error i tried as is listed in this topic to:
Code: | mount /dev/hda6 /boot
cd /boot
ls
cd /usr/src/linux
make menuconfig
cp /usr/src/linux/arch/(insert system type)/boot/bzImage /boot |
so i tried to chroot into gentoo through the live cd and i got the same output that i did in knoppix:
Code: | root@0[knoppix]# chroot /mnt/gentoo /bin/bash
chroot: cannot change root directory to /mnt/gentoo: No such file or director |
I also attempted in knoppix:
Code: | root@0[Data]# mount /dev/hda6 /boot
root@0[Data]# cd /boot
root@0[boot]# cd /usr/src/linux
root@0[linux]# make menuconfig
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/lxdialog/checklist.o
HOSTCC scripts/lxdialog/inputbox.o
HOSTCC scripts/lxdialog/lxdialog.o
HOSTCC scripts/lxdialog/menubox.o
HOSTCC scripts/lxdialog/msgbox.o
HOSTCC scripts/lxdialog/textbox.o
HOSTCC scripts/lxdialog/util.o
HOSTCC scripts/lxdialog/yesno.o
HOSTLD scripts/lxdialog/lxdialog
scripts/kconfig/mconf arch/i386/Kconfig
arch/i386/Kconfig:36: can't open file "init/Kconfig"
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2
|
it wont even let me make menuconfig in the gentoo livecd, it says unknown command or something similar.
however, it couldnt even get that far. And when i bootup the Gentoo livecd, it says there is no such thing as /mnt/gentoo where did it go? _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 12:58 am Post subject: |
|
|
donvella wrote: | Like i mentioned i tried the same code in the livecd and it still didnt find /mnt/gentoo. it came up with the same that knoppix did.
Code: | root@0[knoppix]# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 9728 67898722+ f W95 Ext'd (LBA)
/dev/hda5 1276 7757 52066633+ 7 HPFS/NTFS
/dev/hda6 7758 7770 104391 83 Linux
/dev/hda7 7771 7835 522081 82 Linux swap / Solaris
/dev/hda8 7836 8879 8385898+ 83 Linux
/dev/hda9 8880 9728 6819561 83 Linux
Disk /dev/sda: 255 MB, 255590400 bytes
256 heads, 50 sectors/track, 39 cylinders
Units = cylinders of 12800 * 512 = 6553600 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 249572+ e W95 FAT16 (LBA) |
|
Ok. Sorry, but I didn't remember this anymore. By the way, all Linux live-cds will show you the same, since this is nothing more than the list of the partitions on your disks.
donvella wrote: |
Now this is what i what i got when i tried to load Gentoo from grub.
Code: | Booting 'Gentoo Linux'
root (hd0,5)
Filesystem type is ext2fs, partition type 0x83
kernel /kernel-2.6.12-gentoo-rc6 root=/dev/ram0 init=/linuxxrc ramdisk=8192 real_root=/dev/hda8 udev
Error is: File not found |
|
This one is simple to tackle. When you get to the GRUB menu, press e to edit your configuration. Take note of your Linux entry. Then press c for the GRUB command and start typing your Gentoo entry. When you get to the kernel name, write the beginning of the file name and then press TAB for GRUB to complete the filename or show you the options. Select the proper option and then complete the line. When you finish writing the Gentoo entry, write in the next line boot and press ENTER. GRUB should now boot your system. Don't forget to update /boot/grub/grub.conf.
donvella wrote: |
To this error i tried as is listed in this topic to:
Code: | mount /dev/hda6 /boot
cd /boot
ls
cd /usr/src/linux
make menuconfig
cp /usr/src/linux/arch/(insert system type)/boot/bzImage /boot |
so i tried to chroot into gentoo through the live cd and i got the same output that i did in knoppix:
Code: | root@0[knoppix]# chroot /mnt/gentoo /bin/bash
chroot: cannot change root directory to /mnt/gentoo: No such file or director |
however, it couldnt even get that far. And when i bootup the Gentoo livecd, it says there is no such thing as /mnt/gentoo where did it go? |
You're missing a few important details and mounting partitions at an incorrect dir. You should do:
Code: | # mkdir /mnt/gentoo
# mount /dev/hda8 /mnt/gentoo
# mount /dev/hda6 /mnt/gentoo/boot
# mount -t proc proc /mnt/gentoo/proc
# cd /boot
# ls
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
# cd /usr/src/linux
# make menuconfig
# make && make modules_install
# cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-version |
Don't forget to update grub.conf to include support for the new kernel. You should keep an old kernel around just in case. You might want to post your grub.conf file so we take a look at it.
A final note, you don't need to chroot or to mount / if all you want is to edit a file under /boot, such as grub.conf. If you need to recompile the kernel, then you need to mount / and to chroot. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sun Nov 27, 2005 1:30 am Post subject: |
|
|
Well i tried going into grub, pressing e on gentoo, then c, but when i got to the command line i didnt know what to type, but i tried:
Code: | kernel /kernel2.6.12-gentoo-rc6
Error: 15 |
so that didnt work, i did the
Code: | make && make modules_install | and that went all good
but when i try to
cp /usr/src/linux/arch/i386/boot/bzImage to /boot/(kernel version)
it says there is no bzImage in /boot
Im sorry but i dont know where my other kernel will be placed, or where my new one will be placed so i dont know if i can supply you the details, I also dont want multiple copies of kernels lying around since Im about to recompile it again this just may take up space. I dont understand why i would need to recompile my kernel after i finished installing my system.
can you please tell me how to find my bzImage and how to transfer it, this may be the problem after all. Thanks for your support so far its been absolutely outstanding. _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 1:42 am Post subject: |
|
|
Are you sure that you're doing the following?
Code: | # cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-version |
Don't forget replacing version with your kernel version, such as kernel-2.6.14-r2. You're not trying to install in an AMD64 or an Intel EM64T, are you? If so, replace the previous line with
Code: | # cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/kernel-version |
To boot from the GRUB command line, all you have to type into the command is the following. Don't forget to use the TAB key to determine the kernel name.
Code: | grub> root (hd0,5)
grub> kernel /kernel-2.6.12-gentoo-rc6 root=/dev/ram0 init=/linuxxrc ramdisk=8192 real_root=/dev/hda8 udev
grub> boot |
Are you sure that your kernel isn't kernel-2.6.12-gentoo-r6? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sun Nov 27, 2005 1:48 am Post subject: |
|
|
Thanks the grub thing worked, it loaded up and booted, but a few things didnt load with the little [!!] but it got to tux_login and it wouldnt accept my password, i havent got to create a user yet anyway.
and it wouldnt let me copy bzImage, infact, when i TAB TAB the cp /usr/src/linux/arch/i386/boot/ directory it didnt even say there was a bzImage in there at all.
Also yes im using an amd64, and i tried both i386 and x86_64 folders but none of them contained bzImage. _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 1:51 am Post subject: |
|
|
Well, that means you're almost there. You just have to boot with the live-cd again, mount the partitions, chroot and then runn passwd. That will set your root password. When you try again to boot and use the GRUB command shell, you should be able to boot your system and login. In fact, if you remember the correct kernel name, you can take the chance and update your grub.conf file while you're in the chroot.
Just to show you, this is the output from my AMD64 system:
Code: | atl64 linux # ls -l /usr/src/linux/arch/x86_64/boot/
total 4977
-rwxr-xr-x 1 root root 512 2005-11-23 00:59 bootsect
-rw-r--r-- 1 root root 2040 2005-11-23 00:59 bootsect.o
-rw-r--r-- 1 root root 2156 2005-11-22 02:37 bootsect.S
-rw-r--r-- 1 root root 2487020 2005-11-23 01:24 bzImage
drwxr-xr-x 2 root root 544 2005-11-23 01:24 compressed
-rw-r--r-- 1 root root 1040 2005-11-22 02:37 install.sh
-rw-r--r-- 1 root root 3720 2005-11-22 02:37 Makefile
-rw-r--r-- 1 root root 330 2005-11-22 02:37 mtools.conf.in
-rwxr-xr-x 1 root root 6984 2005-11-23 01:24 setup
-rw-r--r-- 1 root root 17840 2005-11-23 01:24 setup.o
-rw-r--r-- 1 root root 22422 2005-11-22 02:37 setup.S
drwxr-xr-x 2 root root 128 2005-11-23 00:59 tools
-rw-r--r-- 1 root root 40381 2005-11-22 02:37 video.S
-rwxr-xr-x 1 root root 2479340 2005-11-23 01:24 vmlinux.bin
atl64 linux # |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sun Nov 27, 2005 2:13 am Post subject: |
|
|
Ok....
i loaded up grub, pressed e, then c:
Code: | grub>kernel /kernel-2.6.12-gentoo-rc6
[linux-bzImage, setup=0xlc00, size=0x20f74c]
grub> boot |
then it come up with a few errors relating to
Code: | Cannot start dev/SWAP
Error: Problem starting needed services "netmount" was not started |
then it come up with
Code: | This is tux.unkown_domain (kernel-2.6.12-gentoo-rc6) 12:05:57
tux login: tux
Password: tux
login incorrect |
i also tried
Code: | tux login: root
Password: (root password) |
im pretty sure i never set a tux login or password, i also tried passwd and set a root password which did not work when i tried it. _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 2:18 am Post subject: |
|
|
You have to run passwd when you boot with the live-cd. It seems you've also forgotten to update /etc/fstab So boot with the live-cd, mount the partitions, chroot, update grub.conf and fstab and run passwd to set your root password. Then reboot and see if you can start your new system. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sun Nov 27, 2005 3:51 am Post subject: |
|
|
Hey thanks alot for your help, i can get into my system and emerge now, although i couldnt get my GUI working cos it goes back into the command promp after i installed x-org but thats something ill research elsewhere, just wondering with my grub.conf i added
Code: | [linux-bzImage, setup=0x1c00, size=0x20f74c] |
but i still have to go e, c, kernel /k (TAB), boot to enter my system
and still get a dhcp error, but i can get into the system, what exactly do i have to add to grub?
Sorry for hasstle.
Thanks again. _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 4:02 am Post subject: |
|
|
When you boot your system do the following
Look at the kernel name. Then edit grub.conf and replace the kernel name with your kernel name.
Code: | # nano -w /boot/grub/grub.conf |
Your Gentoo entry must look like the folllowing
Code: | root (hd0,5)
kernel /kernel-??? root=/dev/ram0 init=/linuxxrc ramdisk=8192 real_root=/dev/hda8 udev |
Replace the kernel-??? with the correct kernel name. After that, you should be able to boot your system from the GRUB menu. If you can't make GRUB work, post the output of ls -l /boot. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
donvella n00b
Joined: 01 Nov 2005 Posts: 18
|
Posted: Sun Nov 27, 2005 4:51 am Post subject: |
|
|
well i entered in grub as you said:
Code: | root (hd0,5)
kernel /kernel-2.6.12-gentoo-rc6 root=/dev/ram0 init=/linuxxrc ramdisk=8192 real_root=/dev/hda8 udev |
here is my boot log
Code: | livecd /# ls -l /boot
total 4294
lrwxrwxrwx 1 root root 1 Nov 26 19:18 boot -> .
-rw-r--r-- 1 root root 2168194 Nov 27 11:52 bzImage
-rw-r--r-- 1 root root 23588 Nov 26 20:06 config-2.6.12-gentoo-rc6
drw-r--r-- 2 root root 1024 Nov 26 21:06 grub
-rw--r--r-- 1 root root 2168140 Nov 26 20:05 kernel-2.6.12-gentoo-rc6
drwxr-xr-x 2 root root 12288 Nov 26 01:19 lost & found |
I still have to e, c, kernel, /kernel (tab) then boot. _________________ -= the world is a reflection of yourself =- |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 1:22 pm Post subject: |
|
|
Try using the following in grub.conf
Code: | root (hd0,5)
kernel /kernel-2.6.12-gentoo-rc6 root=/dev/hda8 udev |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
nihil39 Tux's lil' helper
Joined: 15 Nov 2005 Posts: 97 Location: Italy
|
Posted: Sun Nov 27, 2005 5:16 pm Post subject: |
|
|
Hi, I have the following partition table
Code: |
Disk /dev/hda: 60.0GB, 60011642880 bytes
255 heads, 63 sectors7track, 7296 cylinders
Device boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 2556 128520 83 Linux
/dev/hda3 2567 2707 1132582+ 82 Linux swap / Solaris
/dev/hda4 2708 7296 36861142+ 83 Linux
|
In the /dev/hda1 partition windows xp is installed.
This is my grub.conf file
Code: |
default 0
timeout 30
splashimage = (hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r2
root (hd0,1)
kernel /kernel-2.6.14-r2 root=/dev/hda4 video=vesafb:mtrr,ywrap,1024x768-16@60
title = windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
With this configuration while gentoo starts properly when I try to launch windows XP I get this message:
Code: | Error 1: Filename must be either an absolut pathname or blocklist |
Where is the error?
I apologize for my English.
Thanks in advance. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Nov 27, 2005 5:45 pm Post subject: |
|
|
Hi.
According to your description, your grub.conf file must have an error. If /dev/hda is an NTFS partition your /boot must be /hdev/hda2 Therefore, the splashimage must be on (hd0,1).
Code: | default 0
timeout 30
splashimage = (hd0,1)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r2
root (hd0,1)
kernel /kernel-2.6.14-r2 root=/dev/hda4 video=vesafb:mtrr,ywrap,1024x768-16@60
title = windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
I can't see how you get that error. You didn't overwrite the NTFS partition, right? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
nihil39 Tux's lil' helper
Joined: 15 Nov 2005 Posts: 97 Location: Italy
|
Posted: Sun Nov 27, 2005 6:11 pm Post subject: |
|
|
jmbsvicetto wrote: | Hi.
According to your description, your grub.conf file must have an error. If /dev/hda is an NTFS partition your /boot must be /hdev/hda2 Therefore, the splashimage must be on (hd0,1).
Code: | default 0
timeout 30
splashimage = (hd0,1)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r2
root (hd0,1)
kernel /kernel-2.6.14-r2 root=/dev/hda4 video=vesafb:mtrr,ywrap,1024x768-16@60
title = windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
I can't see how you get that error. You didn't overwrite the NTFS partition, right? |
You're right I changed the splashimage to hd0,1 and the graphics is far more better now.
I hope I didn't overwrite the windows partition, how can I verify if Windows XP still works?
When I launched fdisk for the first time it told me that there could be problems caused by a certain number of cylinders or something like that. Could this be the cause of the problem? |
|
Back to top |
|
|
Nimlot n00b
Joined: 28 Nov 2005 Posts: 27
|
Posted: Mon Nov 28, 2005 1:03 am Post subject: |
|
|
Hi everybody,
I'm trying to install Gentoo for the first time (my first time compiling my kernel as well), and I've made it all the way to the bootloader without any apparent problems. I installed GRUB to my root partition (I have no separate /boot partition), set my root partition as active in fdisk and set up grub.conf (this is the way I've always done things with other distros). Upon reboot, GRUB pops up as expected. WindowsXP boots fine from the GRUB menu. When I try Gentoo, I get this error:
Code: | Error 13: Invalid or unsupported executable format |
My grub.conf is as follows:
Code: | # default os
default 0
# wait before booting default; null for no timeout
timeout null
# splash image
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.12-r10
# kernel location
root (hd0,1)
kernel /boot/kernel-2.6.12-gentoo-r10 root=/dev/hda2
# for windows
title=Windows XP
rootnoverify (hd0,0)
chainloader +1 |
Any help with this would be much appreciated. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Mon Nov 28, 2005 1:43 am Post subject: |
|
|
nihil39,
you can check if everything is ok with your NTFS partition by mounting it under Gentoo. If you can see the contents of your partition, you didn't overwrite it. After booting and logging in as root do the following
Code: | # mkdir /mnt/windows
# mount -t ntfs /dev/hda1 /mnt/windows
# ls -l /mnt/windows |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|