Results 1 to 10 of 20
i just finished installing gentoo and grub. i rebooted my system to find i have an error with grub and cannot boot gentoo. i am pretty sure i know the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-03-2008 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 79
grub error after installing gentoo minimal
i just finished installing gentoo and grub. i rebooted my system to find i have an error with grub and cannot boot gentoo. i am pretty sure i know the problem. i think i specified the wrong directory that holds my kernel or i typed in the kernel's name wrong.
here is the error message that i received:
-----------------------------------------------------
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/linux-2.6.23-gentoo-r9 root=dev/hda3
Error 15: File not found
Press any key to continue...
------------------------------------------------------
what do i do to fix this?
-jim
- 03-03-2008 #2
When you reboot the machine, and you get the grub boot screen, press the spacebar to open the grub menu. Highlight the line with your kernel info and press "e" for edit, now you can attempt to change the kernel line to include the missing or incorrect kernel
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
I'd rather be lost at the lake than found at home.
- 03-03-2008 #3Just Joined!
- Join Date
- Aug 2007
- Posts
- 79
alright that is all well and good, however i don't know how to go about figuring out what i need to put in.
- 03-03-2008 #4
Ok then, do you have a LiveCD or another Linux installation you can use?
If so, then boot it up and mount your gentoo partition
Code:mkdir /mnt/gentoo
(substitute /dev/hdax with your device name)Code:mount /dev/hdax /mnt/gentoo
then look in the /boot directory
Write down the kernel name, and while your are in the LiveCD, issue this command and post the output back here too.Code:ls /mnt/gentoo/boot
(lowercase L not an i)Code:fdisk -l
Also, post the output of this command
Code:cat /etc/fstab
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
I'd rather be lost at the lake than found at home.
- 03-03-2008 #5Just Joined!
- Join Date
- Mar 2008
- Posts
- 7
Same issue
I'm also having the same issue, so I booted from the minimal install cd. and i'm not sure how to get to the place where i can type in those commands. If i type them in when it asks for the "livecd root #" it doesnt' work. My goal is to fix grub without having to reinstall gentoo again.
Thanks for the help.
- 03-03-2008 #6
OK try running just the
command first and see if that works. You should get output that looks something like this ...Code:fdisk -l
If you see references to sda .... instead of hda ... then use sda rather than hda in the commands posted by MikeTbob.Code:Disk /dev/hda: 80.0 GB, 80054059008 bytes 255 heads, 63 sectors/track, 9732 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x15551555 Device Boot Start End Blocks Id System /dev/hda1 1 256 2056288+ b W95 FAT32 /dev/hda2 * 257 2168 15358140 7 HPFS/NTFS /dev/hda3 2169 9732 60757830 f W95 Ext'd (LBA) /dev/hda5 2169 3910 13992583+ 7 HPFS/NTFS /dev/hda6 3911 5784 15052873+ 7 HPFS/NTFS /dev/hda7 5785 5915 1052226 82 Linux swap / Solaris /dev/hda8 7162 7799 5124703+ 83 Linux /dev/hda9 7800 9095 10410088+ 83 Linux /dev/hda10 9096 9732 5116671 b W95 FAT32 /dev/hda11 5916 7161 10008463+ 83 Linux
- 03-03-2008 #7
- 03-04-2008 #8Just Joined!
- Join Date
- Mar 2008
- Posts
- 7
Thats basically what i see.
although i have repartitioned according to my specifications
Disk /dev/hda : 120.0GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks ID System
/dev/hda1 * 1 10 80293+ 83 Linux
/dev/hda2 11 96 690795 82 Linux swap / Solaris
/dev/hda3 97 14583 116447152+ 83 Linux
what to do next?
- 03-04-2008 #9
Ok ... looks like you have a boot partition on hda1 and root partition on hda3. I suggest you mount the boot partition and double check kernel name ...
You should be able to use ...
You should be able to check the kernel name & then correct the entry in grub usingCode:mkdir /manmount mount /dev/hda1 /manmount cd /manmount/boot ls
then doCode:nano /manmount/boot/grub/menu.lst
and you should be able to restart the system.Code:cd / umount /dev/hda1
By the way ... I think you should have been able to use MikeTbob instructions replacing hdax with hda1.
- 03-05-2008 #10Just Joined!
- Join Date
- Mar 2008
- Posts
- 7
ok
I tried what MikeTbob said to do but it doesn't want to "mkdir /mnt/gentoo" says file already exists, so I move on.
Should i moun my root or boot partition? in other words;
"mount /dev/hda1 /mnt/gentoo" (boot) or "mount /dev/hda3 /mnt/gentoo" (root)
not sure which one i'm supposed to put there.
than i can make it up to the fdisk -l, but when i type in cat /etc/fstab/ it says its the fstab on the livecd. How do i switch to the fstab on the HD, or /mnt/gentoo/etc/fstab where it should be. I beleive this is supposed to have some outputs that we need to look at but can't figure out howto.
thanks


Reply With Quote

