Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"No filesystem could mount root" when booting after install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
the_fifth_horseman
n00b
n00b


Joined: 31 Dec 2011
Posts: 2

PostPosted: Sat Dec 31, 2011 3:03 pm    Post subject: "No filesystem could mount root" when booting afte Reply with quote

As a word of introduction, I'm a complete newbie when it comes to Linux, and mostly rely on an instruction I received for the lab assignment this copy of Gentoo is being prepared for. That means I probably am clueless and missing something obvious, although I did not find a solution to this specific issue when searching for the error message I am getting.
I've no idea how to copy the content of the configuration files from the virtual machine, so instead I have to use screenshots. Like I said: complete and clueless newbie. My apologies if that offends you.

On 18th this month, I have attempted to install Gentoo in a virtual machine created using Virtual PC 2004 and ended up unable to properly boot it after finishing the installation. This is what I've done so far:

I'm using the install-x86-minimal-20111206 disc image. After booting from it I have configured the network, and partitioned the virtual HDD as follows:
http://img546.imageshack.us/img546/6841/partedprintall.png
http://img408.imageshack.us/img408/8123/fdiskl.png

mounted /dev/sda3 as /mnt/gentoo
Downloaded the most recent stage3 archive and portage version, unpacked stage3 to /mnt/gentoo, unpacked portage to /mount/gentoo/usr.

As per the instructions I had, I have edited /etc/make.conf to this:
http://img189.imageshack.us/img189/3674/makeconf.png
And then used mirrorselect to add a list of mirrors to make.conf.

After that, I have executed
Code:
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev/ /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
emerge -sync
emerge portage
emerge gentoo-sources
cd /usr/src/Linux
make menuconfig

The only options I have changed there had to do with networking. After that:
Code:
make && make modules_install
make install
update-modules


Edited fstab to this:
http://img850.imageshack.us/img850/1404/fstab.png

There was some configuration of unicode encoding, keymaps and clock at this point - one line changes in /etc/rc.conf , /etc/conf.d/clock, /etc/conf.d/keymaps and /etc/conf.d/02locale

After that I entered:
Code:
env-update
source /etc/profile
emerge reiserfsprogs dhcpcd udev
emerge grub

Edited grub.conf as follows:
http://img585.imageshack.us/img585/3342/grubconf.png
(this has been since modified, setting root=/dev/sda3 and removing real_root ; the change made no difference)

And installed grub by entering grub --no-floppy and then:
http://img855.imageshack.us/img855/7202/grubinstall.png

After that,
Code:
exit
umount /dev/sda1
umount /dev/sda3
reboot


I get to Grub's boot selection menu and choose the only system on the list.

It is after that that I run into the problem. Grub appears to initialize properly, the boot process starts, but a bit later the system gives a message
Code:
No filesystem could mount root, tried: ext3 vfat msdos iso9660
Kernel panic - not syncing: VFS: Unable to mount root on unknown block (1,0)
Pid: 1, com: swapper Not tainted 3.0.6-gentoo #1

Followed by a call trace, as shown in the screenshots below.
http://img854.imageshack.us/img854/5580/grubstarting.png
http://img641.imageshack.us/img641/5764/nofscouldmountroot.png

What have I done wrong?
How do I fix this without reinstalling the system (if possible)?
How do I fix this when reinstalling the system (if not possible otherwise)?
Is there any further information I should provide?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Dec 31, 2011 4:30 pm    Post subject: Reply with quote

No need to reinstall. If you understand how (and we'll get to that), a Gentoo install is rejoinable at any point.

The error you're reporting typically means that support for your root filesystem wasn't built into the kernel. What filesystem did you choose for /dev/sda3?

Edit: I see from your screenshots that it was Reiserfs. You need to get back into the chroot and make sure that you have ReiserFS support built into the kernel. First, boot the install CD and then re-establish the chroot, like so:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount --rbind /dev /mnt/gentoo/dev
swapon /dev/sda2
chroot /mnt/gentoo /bin/bash
source /etc/profile
Then, get back into the kernel configuration, like so:
Code:
cd /usr/src/linux
make menuconfig
Next, make sure that you have Reiserfs enabled in the kernel configuration by setting:
Code:
File systems  --->
   <*> Reiserfs support
Exit and save that modified configuration. Finally, rebuild and reinstall the kernel per the Handbook. Exit the chroot and reboot per the Handbook.

Let us know how it turns out. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Mon Jan 02, 2012 2:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
the_fifth_horseman
n00b
n00b


Joined: 31 Dec 2011
Posts: 2

PostPosted: Sun Jan 01, 2012 12:26 am    Post subject: Reply with quote

:o
Thank you very much, that solved the problem. :)
Back to top
View user's profile Send private message
198728
l33t
l33t


Joined: 08 Apr 2009
Posts: 693

PostPosted: Mon Jan 02, 2012 2:29 pm    Post subject: Reply with quote

Well, now you can put [solved] in the title :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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