View previous topic :: View next topic |
Author |
Message |
kmrivers n00b
Joined: 23 Jan 2004 Posts: 48 Location: Normal, IL
|
Posted: Sun Feb 01, 2004 1:30 am Post subject: Unable to mount root! |
|
|
This is my second time doing a Gentoo install. The first time i only took it to command... i had problems booting XP so i put XP on the first partition. Now i am at this point:
first off here is the error i get:
Code: | Kernel Panic : VFS: Unable to mount root fs on hda4. |
I have done the following:
Used Genkernel on kernel-2.4.22
Manually configured kernel-2.4.22
Both give same error.
Manually configured gentoo-dev-sources(2.6.1)
Also to no avail.
Here is my Grub.conf:
Code: |
title=Gentoo Linux 2.4.22
root (hd0,1)
kernel (hd0,1)/kernel-2.4.22-gentoo-r5 root=/dev/hda4
title=Gentoo Linux 2.6.1
root (hd0,1)
kernel (hd0,1)/kernel-2.6.1 root/dev/hda4
title=Windows XP
root hd(0,0)
chainloader +1
|
and here is my fstab:
Code: |
/dev/hda1 /boot ext2 noauto,noatime 0 1
/dev/hda5 / reiserfs notail 0 0
/dev/hda3 none swap sw 0 0
|
It seems as if it's trying to guess the file system. Here is an example of some dialog above the error:
Code: |
EXT3-fs:unable to read superblock
attempt to access beyond end of device
hda4: rw=0, want=4, limit=2 |
It repeats that for EXT2-fs... with some different numbers. and it repeats the hda4 portition with different numbers also. this is the last thing above the error
Code: |
hda4: rw=0, want=1028, limit=2
UDF-fs: No Partition found (1) |
then Code: | Kernel Panic: VFS: Unable to mount root fs on hda4 |
Both my kernels right now have ReiserFs built into them. I can't see the problem. Im hoping someone else can. I've recompiled a million times. I've stared at my fstab and grub.conf for hours. Please help. Any info would be excellent. thanks in advance. |
|
Back to top |
|
|
Helper_Monkey Tux's lil' helper
Joined: 22 Feb 2003 Posts: 141
|
Posted: Sun Feb 01, 2004 1:47 am Post subject: |
|
|
Look at your fstab, you have the / partition set to hda5, but in your bootloader it is hda4. It looks to me that one of them is set wrong. _________________ It is a poverty to decide that a child must die so that you may live as you wish. -Mother Teresa |
|
Back to top |
|
|
kmrivers n00b
Joined: 23 Jan 2004 Posts: 48 Location: Normal, IL
|
Posted: Sun Feb 01, 2004 2:07 am Post subject: grub... |
|
|
Thats how grub works. For Grub the first partition is 0. So my hda5 to grub is hda4. And it loads everything else right. My windows partition is the first partition of the drive. my gentoo boot is 2. so it is (hd0,1) in grub.
I have no idea. |
|
Back to top |
|
|
kmrivers n00b
Joined: 23 Jan 2004 Posts: 48 Location: Normal, IL
|
Posted: Sun Feb 01, 2004 2:11 am Post subject: new error |
|
|
I found one problem in my fstab. /dev/hda1 should have been /dev/hda2. im getting this error now.
Code: | Kernel Panic : VFS: Unable to mount root fs on 03:04 |
I have no idea what that is. above it we have:
Code: | attempt to access beyond end of devicef
03:04: rw=0, want=4, limit=1
XFS: SB read failed |
My root partition is within an extended partition if that helps any. |
|
Back to top |
|
|
Viha Tux's lil' helper
Joined: 04 Oct 2003 Posts: 121 Location: Jon's World
|
Posted: Sun Feb 01, 2004 2:25 am Post subject: Re: grub... |
|
|
kmrivers wrote: | Thats how grub works. | the root= on the kernel line is a kernel parameter, not a grub one and it should be set to the same number as the fstab entry. |
|
Back to top |
|
|
kmrivers n00b
Joined: 23 Jan 2004 Posts: 48 Location: Normal, IL
|
Posted: Sun Feb 01, 2004 2:28 am Post subject: it loads fine |
|
|
tell me if im wrong. but grub just finds the kernel. after that the kernel takes over right. from what i can see the kernel starts its thing. then it cant mount the root. so i dont know if my problem is grub. it would more be the kernel. i could be wrong though. i am a newb . |
|
Back to top |
|
|
kmrivers n00b
Joined: 23 Jan 2004 Posts: 48 Location: Normal, IL
|
Posted: Sun Feb 01, 2004 2:33 am Post subject: im a fool... |
|
|
ok so i changed it like you said. and it worked. thanks a lot. now im having problems with eth0.
Code: | Error: Problem starting needed services.
netmount was not started.
|
thanks again. i thought about trying what you about it being a parameter. i would have never known. |
|
Back to top |
|
|
deadaim Guru
Joined: 27 Oct 2003 Posts: 467 Location: Florida
|
Posted: Sun Feb 01, 2004 4:14 am Post subject: Re: im a fool... |
|
|
kmrivers wrote: | ok so i changed it like you said. and it worked. thanks a lot. now im having problems with eth0.
Code: | Error: Problem starting needed services.
netmount was not started.
|
thanks again. i thought about trying what you about it being a parameter. i would have never known. |
Make sure you have your network drivers compiled into your kernel. |
|
Back to top |
|
|
Mike_G n00b
Joined: 20 Jan 2004 Posts: 31
|
Posted: Sun Feb 01, 2004 4:18 am Post subject: |
|
|
Try looking at this thread.
https://forums.gentoo.org/viewtopic.php?t=126026
It might have a solution for you as far as the ethernet 0 problem is concerned (it tells you how to find what module you need to load and configure in your kernel) |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|