View previous topic :: View next topic |
Author |
Message |
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Nov 16, 2004 2:17 am Post subject: [ Grub / Fstab error ] not syncing : VFS |
|
|
[disclaimer]n00b alert![/disclaimer]
I recently installed gentoo 2004.2 stage two, following the handbook step-by-step, (or so I thought) with no errors, that I noticed.
However, on first boot I recived the following error:
Code: | VFS: Cannot open root device "hde3" or unknown-block(0,0)
Please append a correct "root=" boot option
kernel panic -not synching : VFS : Unable to mount root fs on unknown-block(0,0) |
I've found several topics on the forum mentioning similar errors, but I'm unable to track down the problem with my install.
I've booted into my machine using knoppix, so i'll copy my grub.conf and fstab here.
in /mnt/hde3/etc/fstab
Code: | # /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hde1 /boot ext3 defaults,noauto,noatime 1 2
/dev/hde3 / reiserfs noatime 0 1
/dev/hde2 none swap sw 0 0
/dev/hdf1 /mnt/hdf1 fat32 noatime 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0 |
and in /mnt/hde1/grub/grub.conf
Code: | default 0
timeout 15
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.9-r1
root (hd0,0)
kernel /kernel-2.6.9-gentoo-r1 root=/dev/hde3 |
Any help would be greatly appreciated. |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Nov 16, 2004 2:26 am Post subject: |
|
|
Could you also give me your output from:
|
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Nov 16, 2004 3:06 am Post subject: |
|
|
trying fdisk -l from knoppix gave an error:
Code: | Cannot open /dev/hde
Cannot open /dev/hdf |
booting from the gentoo live CD:
Code: | Disk /dev/ide/host2/bus0/target0/lun0/disk: 30GB, 30738677760 bytes
16 heads, 63 sectors/track, 59560 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/ide/host2/bus0/target0/lun0/part 1 * 1 63 31720+ 83 Linux
/dev/ide/host2/bus0/target0/lun0/part 2 64 2056 1004472 82 Linux swap
/dev/ide/host2/bus0/target0/lun0/part 3 2057 59560 28982016 83 Linux
Disk /dev/ide/host2/bus0/target1/lun0/disk: 30GB, 30738677760 bytes
16 heads, 63 sectors/track, 59560 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/ide/host2/bus0/target1/lun0/part 1 1 59560 30018208+ 83 Linux |
|
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Nov 16, 2004 3:08 am Post subject: |
|
|
// Oops... suing in knoppix allowed me to fdisk..
Code: | Disk /dev/hde: 30.7 GB, 30738677760 bytes
16 heads, 63 sectors/track, 59560 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hde1 * 1 63 31720+ 83 Linux
/dev/hde2 64 2056 1004472 82 Linux swap
/dev/hde3 2057 59560 28982016 83 Linux
Disk /dev/hdf: 30.7 GB, 30738677760 bytes
16 heads, 63 sectors/track, 59560 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdf1 1 59560 30018208+ 83 Linux |
|
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Nov 16, 2004 3:32 am Post subject: |
|
|
Instead of:
Code: | kernel /kernel-2.6.9-gentoo-r1 root=/dev/hde3 |
use this in your grub.conf:
Code: | kernel /kernel-2.6.9-gentoo-r1 |
|
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Nov 16, 2004 3:54 am Post subject: |
|
|
gentoo_lan wrote: | Instead of:
Code: | kernel /kernel-2.6.9-gentoo-r1 root=/dev/hde3 |
use this in your grub.conf:
Code: | kernel /kernel-2.6.9-gentoo-r1 |
|
nope, now i get the following error:
Code: | VFS: Cannot open root device "<NULL>" or unknown-block(33,3)
Please append a correct "root=" boot option
kernel panic -not synching : VFS : Unable to mount root fs on unknown-block(33,3) |
thanks for the speedy responses by the way. |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Nov 16, 2004 4:02 am Post subject: |
|
|
Could you also give me your output from
Code: | ls -l /usr/src/linux |
Also did you use Genkernel or build the kernel yourself? |
|
Back to top |
|
|
monahancj n00b
Joined: 16 Nov 2004 Posts: 3
|
Posted: Tue Nov 16, 2004 4:17 am Post subject: |
|
|
>> gentoo_lan wrote:
>> Instead of:
>> kernel /kernel-2.6.9-gentoo-r1 root=/dev/hde3
>>
>> use this in your grub.conf:
>> kernel /kernel-2.6.9-gentoo-r1
This worked for me. Thanks!
Similar situation, the initial stage 1 install looked good, but on the first boot I got a kernel panic, unable to sync. The partition was using ReiserFS.
I made the change, go the login prompt, and it's been so long since the install I forgot the password! |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Nov 16, 2004 4:24 am Post subject: |
|
|
You should change:
to this:
|
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Nov 16, 2004 1:26 pm Post subject: |
|
|
gentoo_lan wrote: | Could you also give me your output from
Code: | ls -l /usr/src/linux |
Also did you use Genkernel or build the kernel yourself? |
I'll have to wait until I get back home to post the output of ls -l /usr/src/linux.
But, I built the kernel myself... which could very well be a problem, seeing as I didn't really know what I was doing. I just made sure the items mentioned in the handbook were selected, and left the other presets alone.
gentoo_lan wrote: | You should change:
Code:
root (hd0,0)
to this:
Code:
root (hd4,0) |
After I tried this last night, I lost the splash image and the screen was all glitched out, and grub was unable to find the hard drive. I only have the two harddisks, hde and hdf. |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Nov 16, 2004 8:03 pm Post subject: |
|
|
You can try this:
Code: | root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.9-gentoo-r1 root=/dev/hde3 |
but I would also like to see your output from:
Code: | ls -l /usr/src/linux |
if that doesn't work
Last edited by gentoo_lan on Wed Nov 17, 2004 8:31 am; edited 2 times in total |
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Nov 16, 2004 9:56 pm Post subject: |
|
|
will do.
Also, after reading through some more threads, I noticed that it may be an issue that i installed using a 2004.2 live CD. Think this may play a part? |
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Nov 16, 2004 10:33 pm Post subject: |
|
|
well, after booting the gentoo live CD, and performing the following:
Code: | mount /dev/hde3 /mnt/gentoo
cd /mnt/gentoo
mount /dev/hde1 boot |
I was able to ls -l usr/src/linux (* note: i couldn't use a leading forward slash because /mnt/gentoo was not my root.) with the following result:
Code: | lrwxrwxrwx 1 root root 21 Nov 9 20:14 usr/src/linux - > linux-2.6.9-gentoo-r1 |
|
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Wed Nov 17, 2004 8:33 am Post subject: |
|
|
Code: | /dev/hde1 /boot ext3 defaults,noauto,noatime 1 2 |
Is your boot partition ext3 or ext2? If it is ext2 you should change that. I would also remove the defaults from that line as well. |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Wed Nov 17, 2004 8:40 am Post subject: |
|
|
Have you looked all through the sticky thread on Grub issues? I am going to look also for any other ideas. Of course I am beginning to run short on what to do! |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Wed Nov 17, 2004 8:43 am Post subject: |
|
|
I do have one more idea though.
Try:
Code: | root (hd0,0)
kernel (hd0,0)/kernel-2.6.9-gentoo-r1/bzImage root=/dev/hde3 |
|
|
Back to top |
|
|
LMCBoy Apprentice
Joined: 30 Aug 2002 Posts: 191 Location: San Ramon, CA
|
Posted: Thu Nov 18, 2004 6:27 am Post subject: |
|
|
Hello,
I just had the same problem. In my case, it was caused by having the wrong SATA driver compiled in the kernel. I have a Chaintech VNF3-250, which uses the nforce3 chipset for SATA. So I had to unset CONFIG_SCSI_SATA_VIA and set CONFIG_SCSI_SATA_NV in my kernel .config.
Hope this helps,
Jason _________________ LMCBoy |
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Thu Nov 18, 2004 2:08 pm Post subject: |
|
|
Thanks for the idea. I'm not sure, but I imagine since I'm not using SATA drives, this doesn't really apply to my case. But, I'm suspecting the problem is with my kernel, since going back over the manual, it looks like I did everything else correctly (unless i made a typo somewhere along the line).
Seeing as how I didn't know what I was doing with the kernel, it's very likely.
I'll probably end up just redoing my install from scratch and use genkernel this time.
One question, I didn't have to emerge any file system tools for ext3 did I? |
|
Back to top |
|
|
iZm n00b
Joined: 09 Sep 2003 Posts: 32 Location: Coventry, UK
|
Posted: Thu Nov 18, 2004 2:56 pm Post subject: devfs |
|
|
Is your /dev filesystem set to start at boot time in the Filesystems > Pseudo filesystems section of the kernel config.? _________________ Official Linux User #341003
There is no substitute for good manners, except, perhaps, fast reflexes. |
|
Back to top |
|
|
epohs n00b
Joined: 27 Aug 2004 Posts: 51
|
Posted: Thu Nov 18, 2004 4:24 pm Post subject: Re: devfs |
|
|
iZm wrote: | Is your /dev filesystem set to start at boot time in the Filesystems > Pseudo filesystems section of the kernel config.? |
I really have no idea. How do i check this? |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Thu Nov 18, 2004 5:17 pm Post subject: |
|
|
You go into make menuconfig. You go to File Systems. Then go to Pseudo File Systems. Then you make sure you have:
Code: | /proc file system support
/dev file system support (OBSOLETE)
Virtual memory file system support (former shm fs)
Automatically mount at boot |
Make sure that they are all built into the kernel...not as modules. |
|
Back to top |
|
|
Billybob Apprentice
Joined: 23 Oct 2003 Posts: 189
|
Posted: Sun Nov 21, 2004 9:12 pm Post subject: |
|
|
Try /dev/hda*
It looks like (since you're using (hd0,0)) that you only have 1 harddrive and may have misread /dev/hda in the guide as /dev/hde
but I dunno. Also e seems pretty high up there, how many harddrives do you have? _________________ ---
Computer Life |
|
Back to top |
|
|
thatguyiam n00b
Joined: 17 Nov 2004 Posts: 23
|
Posted: Sun Nov 21, 2004 9:28 pm Post subject: |
|
|
I'm having this exact same problem, only I'm using LILO. I've tried using both the genkernel and doing it manually, I get the same error, so I'm not really sure if this is a GRUB issue. My linux partition is a 110 GB or so ext3 logical partition on hdb5. |
|
Back to top |
|
|
plainsane1982 n00b
Joined: 22 Nov 2004 Posts: 9 Location: cologne, germany
|
Posted: Mon Nov 22, 2004 1:44 am Post subject: |
|
|
I have a very simmilar problem
Code: | VFS: Cannot open root deice "hde9" or unknown-block (0,0) please append a correct "root=" boot option
Kernel panic - not syncing: VFS: unable to mount root fs on unknown block (0,0) |
is what i get
My machine:
athlon-xp 2500+
abit AN7 mobo (nforce2 chipset)
S-ATA drive 160GB (samsung sp1614c)
Silicon Immage S-ATA controller
/dev/hde7 is /boot with ext3 formatted
/dev/hde9 is / with XFS formatted
I am sure that the entry regarding XFS support in the makeconfig was correct
i'll be glad to provide any other info to help solve this problem _________________ don't drink and drive, you might spill your beer |
|
Back to top |
|
|
Billybob Apprentice
Joined: 23 Oct 2003 Posts: 189
|
Posted: Mon Nov 22, 2004 2:20 am Post subject: |
|
|
Well I think the problem is a missing part of your kernel. I know I got this error because I had accidently compiled reiserfs support as a module. This isn't to say you've done the same, but you're certainly missing something else. Go back into make menuconfig and sniff around the filesystem section to see if ANYTHINg might help. SATA support, ext3 support, proc support, etc. Remember the install guide tells you to turn on a few options there. And make sure it's builtin, as always. _________________ ---
Computer Life |
|
Back to top |
|
|
|