View previous topic :: View next topic |
Author |
Message |
umarhafeez n00b
Joined: 24 Aug 2012 Posts: 4
|
Posted: Sat Aug 25, 2012 3:33 am Post subject: [Solved] Another n00b grub error - plz help |
|
|
Following error received
Code: | Booting 'Gentoo Linux x86_64 3.3.8'
root (hd0, 4)
Filesystem type is jfs, partition type 0x83
kernel /boot/kernel-genkernel-x86_64-3.3.8-gentoo real_root=/dev/sda7
[Linux-bzImage, setup=0x3400, size=0x32fe50]
initrd /boot/initramfs-genkernel-x86-3.3.8-gentoo
Error 15: File not found
Press any key to continue...
|
fdisk output
Code: |
fdisk /dev/sda
p
Device boot start end Blocks id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 27885759 136339456 7 HPFS/NTFS/exFAT
/dev/sda3 272885760 625142447 176128344 5 Extended
/dev/sda5 * 272887808 272953343 32768 83 Linux
/dev/sda6 272955392 277149695 2097152 82 Linux swap / Solaris
/dev/sda7 277151744 625142447 173995352 83 Linux
|
when chrooting into dev/sda7 (gentoo /, dev/sda5= /boot)
and ls into boot
Code: |
System.map-genkernel-x86_64-3.3.8-gentoo grub kernel-genkernel-x86_64-3.3.8-gentoo boot
initramfs-genkernel-x86_64-3.3.8-gentoo
|
grub.conf entry for gentoo
Code: |
title Gentoo Linux x86_64 3.3.8
root (hd0,4)
kernel /boot/kernel-genrkernel-86_64-3.3.8-gentoo real_root=/dev/sda7
initrd /boot/initramfs-genkernel-x86_64-3.3.8-gentoo
|
/etc/fstab listing
Code: |
/dev/sda5 /boot jfs defaults 1 2
/dev/sda7 / jfs noatime 0 1
/dev/sda6 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
|
Last edited by umarhafeez on Sun Aug 26, 2012 7:35 am; edited 3 times in total |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sat Aug 25, 2012 4:31 am Post subject: |
|
|
You got a typo. Now find it and fix it _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
fr3eatlast n00b
Joined: 21 Jul 2012 Posts: 41 Location: Marquette, MI
|
Posted: Sat Aug 25, 2012 6:39 am Post subject: |
|
|
umarhafeez,
i think that your root(0.4) is where your typo is. I'm pretty tired right now, so I'm not sure I'm remembering right but i think grub starts counting from 0 instead of one. Because there is no /dev/sda4 on your drive according to your fdisk output, you could try changing your root address to root(0.3) and see if that works.
hth |
|
Back to top |
|
|
umarhafeez n00b
Joined: 24 Aug 2012 Posts: 4
|
Posted: Sat Aug 25, 2012 12:10 pm Post subject: |
|
|
I am not sure why i get this but using hd0,3 i get no such partition error
Code: | Booting command-list
root (hd0,3)
Error 22: No such partition
Press any key to continue...
|
ppruka...pretty please with sugar on top?
wait you weren't point at "generkernel"... i made a mistake typing this post.... the grub.conf entry does say "genkernel"...original post is now edited..... Just for extra info.... i also tried hd0,2 ... partition type 0x5 the error is error 17 cannot mount partition....., i tried hd0,5 ... partition type is 0x82 and error 17 (cannot mount selected partition) and also hd0,6 and again same error as quoted above (error 15 file not found) partition type 0x83
only hd0,3 is error 22... |
|
Back to top |
|
|
pidsley Tux's lil' helper
Joined: 09 Jun 2012 Posts: 80
|
Posted: Sat Aug 25, 2012 12:18 pm Post subject: |
|
|
umarhafeez wrote: | wait you weren't point at "generkernel"... i made a mistake typing this post.... the grub.conf entry does say "genkernel"...original post is now edited... |
Did you retype all of the code you posted, or is some of it cut and paste? It looks to me like there are several typos. |
|
Back to top |
|
|
haleh Tux's lil' helper
Joined: 06 Jul 2012 Posts: 127
|
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sat Aug 25, 2012 1:19 pm Post subject: |
|
|
Is your /boot/boot a symlink to /boot? Also, try these modified commands:
Code: | kernel (hd0,4)/kernel-genkernel-x86_64-3.3.8-gentoo real_root=/dev/sda7
initrd (hd0,4)/initramfs-genkernel-x86-3.3.8-gentoo
|
_________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Sat Aug 25, 2012 1:40 pm Post subject: |
|
|
umarhafeez
Since you are still suffering and spotting your own typos is really hard - you read what you intended to write, not whats there, here is a hint. From your original post Code: | title Gentoo Linux x86_64 3.3.8
root (hd0,4)
kernel /boot/kernel-genrkernel-86_64-3.3.8-gentoo real_root=/dev/sda7
initrd /boot/initramfs-genkernel-x86_64-3.3.8-gentoo |
Its in your kernel line ... _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
umarhafeez n00b
Joined: 24 Aug 2012 Posts: 4
|
Posted: Sun Aug 26, 2012 7:35 am Post subject: |
|
|
Yep I made so many hand copy errors . (i am setting up gentoo as my main distro on my laptop so i am not chrooting into it from another GUI based distro) so i was thinking it must have been an error in one of the files but just couldn't spot it for two nights!!!.... (i was concentrating on first line of grub.conf entry (hd0,4) and second (kernel).... but the mistake was in initrd and it was writtent "....genkernel-x86-3.3.8..." instead of "...genkernel-x86_64..." |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sun Aug 26, 2012 2:55 pm Post subject: |
|
|
Try to use the gpm service next time, so that you have a working mouse even if you are in the console. Then you can copy and paste. If you provide us erroneous input, we will be able to provide you only useless advice. It's the simple formula: GIGO and sometimes applies to humans too _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
|