View previous topic :: View next topic |
Author |
Message |
epee1221 n00b
Joined: 16 Feb 2007 Posts: 3
|
Posted: Fri Feb 16, 2007 2:42 am Post subject: Failed to mount root partition (solved) |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
epee1221 n00b
Joined: 16 Feb 2007 Posts: 3
|
Posted: Sat Feb 17, 2007 4:00 pm Post subject: |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Sat Feb 17, 2007 5:10 pm Post subject: |
|
|
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 |
|
|
epee1221 n00b
Joined: 16 Feb 2007 Posts: 3
|
Posted: Sun Feb 18, 2007 1:57 am Post subject: |
|
|
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 |
|
|
|