Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to mount root partition (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
epee1221
n00b
n00b


Joined: 16 Feb 2007
Posts: 3

PostPosted: Fri Feb 16, 2007 2:42 am    Post subject: Failed to mount root partition (solved) Reply with quote

Booting up, I get this error message, then the system crashes:
Code:
VFS: Cannot open root device "hda7" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)


Booting from the CD, I can mount and chroot to hda7 with no trouble.

My yaboot.conf (this is what yabootconfig produced for me):
Code:
boot=/dev/hda3
device=/pci@f4000000/ata-6@d/disk@0:
partition=7
root=/dev/hda7
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot


Last edited by epee1221 on Sun Feb 18, 2007 1:57 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Feb 16, 2007 4:24 am    Post subject: Reply with quote

You either didn't include support for your IDE controller or Apple partition types in your kernel.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
epee1221
n00b
n00b


Joined: 16 Feb 2007
Posts: 3

PostPosted: Sat Feb 17, 2007 4:00 pm    Post subject: Reply with quote

Ok, I fixed the IDE controller support. Root partition now mounts, but /dev does not. I also noticed that during boot, the root partition is mounting read-only, even when "rw" is specified in the fstab.
Code:

* Mounting /dev for udev ... [oops]
* The "mount" command failed with error:

wrong fs type, bad option, bad superblock on udev,
   missing codepage or other error
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

* Since this is a critical task, startup cannot continue.


/etc/udev on the Gentoo partition is currently a copy of /etc/udev from the install CD.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Feb 17, 2007 5:10 pm    Post subject: Reply with quote

The root partition should mount ro until it's been checked, this prevents breakage if there are filesystem issues. It should mount rw after the filesystem check.

Why did you copy /etc/udev from the install CD? chroot back into your install and then re-emerge udev to ensure that the correct files are present. Also, when you compiled your kernel, it sounds like you didn't start with:
Code:
# make pmac32_defconfig

as instructed by the handbook. Using the default configuration would have given you a working configuration to start with instead of an empty one. Redoing your kernel, but this time starting with the above command might also help with this problem since it appears that you may also be missing the correct filesystem codepage for udev.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
epee1221
n00b
n00b


Joined: 16 Feb 2007
Posts: 3

PostPosted: Sun Feb 18, 2007 1:57 am    Post subject: Reply with quote

Quote:
Why did you copy /etc/udev from the install CD?

I'd originally used the "default" that populated during the install. When that wasn't working, I tried using what the CD had.

And yes, I misread the pmac32 as ppc32, so it couldn't find that make target.

The kernel now boots and runs. Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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