Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic: VFS: Unable to Mount rootfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Sikander
n00b
n00b


Joined: 08 Oct 2003
Posts: 29

PostPosted: Thu Dec 04, 2003 11:58 pm    Post subject: Kernel Panic: VFS: Unable to Mount rootfs Reply with quote

Hi,

I think this question belongs here. What happened is this...

I have one 10.2 GB drive. It currently dual-boots Win2000 and Gentoo. I was tired of defragmenting the Win2000 section so I used Partition Magic 7 to turn 380 MB of the Win2000 partition into a seperate NTFS. What I mean is that I took some of the Win2000 free space and turned it into a new partition. This worked great, but when I went to Gentoo today I got the following errors:

Quote:
FAT: bogus logical sector size 53760
read_super_block: can't find a reiserfs file system on (dev 03:07, block 64, size 1024)
read_super_block: can't find a reiserfs file system on (dev 03:07, block 8, size 1024)
Kernel Panic: VFS: Unable to mount rootfs of 03:07


So I went to the Live CD and did the...

Code:
fdisk /dev/hda


And found that all hda! where ! is a number have shifted up one. It used to be /dev/hda,6,7 for the Install Instructions hda1,2,3. Now it's /dev/hda6,7,8. No big deal I thought and I change the lilo.conf and fstab to reflect the new numbers. I did the...

Code:
mount /dev/hda8 /mnt/gentoo
mount /dev/hda6 /mnt/gentoo/boot
env-update
chroot /mnt/gentoo /bin/bash


To do all my changes.

I even did...

Code:
emerge -p abiword


for some programs I had installed and they showed up as already there. Finally, I double chekced to make sure the lilo pointed to a correct kernel and I rebooted the computer. I remembered to type 'lilo' to update the configuration and got no errors other than the one I always got about not knowing what my VGA adapter is. But I got the exact same error message.

Now I figure my system and all it's installed programs are there but I have reached the limit of my experience and knowledge with linux so I was wondering if any of you know what's going on or can offer me some advice? Do I need to recompile the kernel? Maybe reinstall the Reiserfs but I do NOT want to have to rebuild all those programs and lose my music and settings.

I will appreciate any help.

Thanks,

Adrian
Code:
Back to top
View user's profile Send private message
russryder
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2002
Posts: 133

PostPosted: Fri Dec 05, 2003 3:01 pm    Post subject: Reply with quote

so when you rebooted the second time you got the same error message about the kernel not finding your reiserfs file system?
Back to top
View user's profile Send private message
Sikander
n00b
n00b


Joined: 08 Oct 2003
Posts: 29

PostPosted: Sat Dec 06, 2003 8:38 am    Post subject: Reply with quote

Russryder,

russryder wrote:
so when you rebooted the second time you got the same error message about the kernel not finding your reiserfs file system?


Yeah. I appreciate your help. I was worried no one was gonna answer and I was contemplating recompiling the kernel and re formating the partition as Resierfs but I saw both as too lon ga process or removing all my porgrams and forcing me to compile and configure my system again from scratch. I tried the internet (Google) but found little related to what was happening to me. So Thanks. : )
I have it fixed now though. I don't really know what fixed it so I decided to post what I did here in case someone needs help on this.

I read on the net that using "scandisk" from inside Windows would fix it but it didn't. So I did all the following.

I put the Live Cd in the drive and after it booted I typed:

Code:
mount /dev/hda8 /mnt/gentoo
e2fsck /dev/hda6
mount /dev/hda6 /mnt/gentoo/boot
chroot /mnt/gentoo /bin/bash
env-update


Now in the system...

I put a "#" in front of the fstab entry that went to my /dev/hde1 vfat drive. I figured this would narrow the problems to Linux partitions.
I double checked that all numbers for the drives in my fstab were correct.
I changed made sure lilo.conf was correct and I typed "lilo" to make the changes current.
I typed "emerge sync"
I typed "emerge -p reiserfsprogs" to make sure I had it installed and I did.
I typed "emerge -up system"
I then updated my system, hoping that might fix the problem.
Using 'fdisk' I made sure that the bootable flag was only on the Linux partition and not my Windows2000 partition.
I unmounted all my partitions and typed "fsck.reiserfs /dev/hda8."
I soft rebooted the computer.

Now it started up and I got the same errors about FAT:Bogus but it continued booting till it said that /dev/hda6 was uncleanly mounted and I needs to e2fsck it again. I did and rebooted and that time it went to the login screen.

Now I really don't know what fixed it but I hope this helps someone in the future.

Adrian[/quote]
Back to top
View user's profile Send private message
Lews_Therin
l33t
l33t


Joined: 03 Oct 2003
Posts: 657
Location: Banned

PostPosted: Sat Dec 06, 2003 9:01 am    Post subject: Reply with quote

Is reiser support compiled into your kernel, and not a module?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sat Dec 06, 2003 10:13 am    Post subject: Reply with quote

You're using the same kernel as before you repartitioned, right? If so, are you using the correct root= parameter on the kernel command line? There error indicates that it's trying to mount hda7 (dev 03:07 gives the device major and minor numbers, the minor number is equal to the partition number).

The kernel has two ways to find out which device to use as the root partition. When you build a kernel, the device numbers of the current root device are stored in it. The kernel can also be told which device to mount by the boot loader. You can probably get it to boot correctly by adding "root=/dev/hda8" to the kernel command line. Once you've booted this way, future kernels that you build will have the correct root device numbers stored in them. You can also change the root device of a kernel image, without rebuilding it, using the "rdev" utility.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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