View previous topic :: View next topic |
Author |
Message |
lufthanza n00b
Joined: 22 Jun 2007 Posts: 3 Location: Oklahoma City, OK
|
Posted: Fri Jun 22, 2007 3:24 pm Post subject: Need help installing on a powermac g3 blue and white[Solved] |
|
|
I have gotten to the following section in the gentoo handbook for ppc installs:
http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1&chap=10#reboot
however, when I reboot to load my kernel, I get the error that /dev/hdc4 (root partition) is not a valid root device. In the boot shell, by typing 'ls /dev/hd*', I find that the only ATA device loaded at the moment is my cd drive. Is there any way to fix this problem? Thanks in advance.
my yaboot.conf:
Quote: | ## /etc/yaboot.conf
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
## The bootstrap partition:
boot=/dev/hdc2
## ofboot is the openfirmware way to specify the bootstrap partition.
## If this isn't defined, yaboot fails on the G5 and some G4s (unless
## you pass the necessary arguments to the mkofboot/ybin program).
## hd:X means /dev/sdaX (or /dev/hdaX).
##
## G5 users should uncomment this line!!
#ofboot=hd:2
## Users booting from firewire should use something like this line:
# ofboot=fw/node/sbp-2/disk@0:
## Users booting from USB should use something like this line:
# ofboot=usb/disk@0:
## hd: is shorthand for the first hard drive OpenFirmware sees
device=hd:
## Firewire and USB users will need to specify the whole OF device name
## This can be found using ofpath, which is included with yaboot.
# device=fw/node@0001d200e00d0207/sbp-2@c000/disk@0:
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
############################################################
## This section can be duplicated if you have more than one
## kernel or set of boot options - replace the image variable
## with the exact filename of your kernel.
###########################################################
image=/boot/kernel-genkernel-ppc-2.6.20-gentoo-r5
label=Linux
root=/dev/hdc4
partition=4
initrd=/boot/initramfs-genkernel-ppc-2.6.20-gentoo-r5
append="real_root=/dev/hdc4"
read-only
##################
## G5 users and some G4 users should set
## macos=hd:13/
## macosx=hd:12
## instead of the example values. |
Last edited by lufthanza on Sat Jun 23, 2007 5:55 pm; edited 2 times in total |
|
Back to top |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Fri Jun 22, 2007 4:47 pm Post subject: |
|
|
Are you sure Gentoo is installed on hdc?
should show how your drives are lettered.
Perhaps in your yaboot.conf your hdc's should be hda's.
Did you use yabootconfig to create it? |
|
Back to top |
|
|
ndansmith n00b
Joined: 01 Aug 2005 Posts: 60
|
Posted: Fri Jun 22, 2007 5:20 pm Post subject: |
|
|
This is a common problem with the Blue and Whites. First of all, there are two separate IDE controllers in that machine, and each has its own driver. Make sure you have the driver of each built into your kernel (I would post my .config but that machine is offline atm).
Secondly, for whatever reason, the livecd kernel orders the drives differently than the installed kernel. This is the tricky part- yabootconfig will not install yaboot if it sense that you put in the wrong device path for your root file system. So it will only let you install it with /dev/hdc. What you have to do is
1. mount the bootstrap partition (probably /dev/hd?2)
2. Edit the yaboot.conf file directly on the bootstrap partition to reflect the device path for your hard drive that the installed kernel will see (probably /dev/hda4).
3. Make sure your /etc/fstab reflects the new device order as well
3. Reboot and it should work.
EDIT: Update to add /etc/fstab comment.
Last edited by ndansmith on Mon Jul 30, 2007 10:53 pm; edited 1 time in total |
|
Back to top |
|
|
srm n00b
Joined: 14 Dec 2005 Posts: 71 Location: in da Heide. this globe
|
Posted: Fri Jun 22, 2007 8:41 pm Post subject: |
|
|
ndansmith wrote: |
2. Edit the yaboot.conf file directly on the bootstrap partition to reflect the device path for your hard drive that the installed kernel will see (probably /dev/hda4). |
I had to pass the openfirmware path as device and not the /dev/foo style, too.
for me (powerbook g4) it looks like
Code: | device=/pci@f4000000/ata-6@d/disk@0: |
_________________ I'm no longer angry,for having to truncate my sig because it got to long with the following reminder:
Please check unanswered posts
co chaoid sounds |
|
Back to top |
|
|
lufthanza n00b
Joined: 22 Jun 2007 Posts: 3 Location: Oklahoma City, OK
|
Posted: Sat Jun 23, 2007 1:30 am Post subject: |
|
|
Quote: | This is a common problem with the Blue and Whites. First of all, there are two separate IDE controllers in that machine, and each has its own driver. Make sure you have the driver of each built into your kernel (I would post my .config but that machine is offline atm). |
edit: I was able to fix the problem thanks to this info. Thanks. |
|
Back to top |
|
|
phillyclaude n00b
Joined: 20 Jul 2007 Posts: 6
|
Posted: Fri Jul 20, 2007 12:50 pm Post subject: |
|
|
ndansmith wrote: | What you have to do is
1. mount the bootstrap partition (probably /dev/hd?2)
2. Edit the yaboot.conf file directly on the bootstrap partition to reflect the device path for your hard drive that the installed kernel will see (probably /dev/hda4).
3. Reboot and it should work. |
just wanted to say thanks - this worked great for me. who knew the magical bootstrap partion was so straightforward when mounted - that wasnt so bad |
|
Back to top |
|
|
kyouteki n00b
Joined: 30 Jul 2007 Posts: 1
|
Posted: Mon Jul 30, 2007 4:12 pm Post subject: |
|
|
Would one have to change his /etc/fstab to reflect /dev/hdaX instead of /dev/hdcX, too? |
|
Back to top |
|
|
ndansmith n00b
Joined: 01 Aug 2005 Posts: 60
|
Posted: Mon Jul 30, 2007 10:52 pm Post subject: |
|
|
kyouteki wrote: | Would one have to change his /etc/fstab to reflect /dev/hdaX instead of /dev/hdcX, too? |
Yes. I will update my post to reflect that omission. Thanks! |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
stream303 n00b
Joined: 11 Mar 2008 Posts: 1
|
Posted: Tue Mar 11, 2008 6:02 am Post subject: |
|
|
ndansmith wrote: | 3. Make sure your /etc/fstab reflects the new device order as well
3. Reboot and it should work. |
Thank you! Although I am not running Gentoo at this moment (guess I'm going to now!), I created this account because I had to say thanks.
I'm running an external firewire setup on my 20" G5 iMac, and although I had to configure yaboot.conf by hand, I never thought to look at my fstab and sure enough, it was wrong.
I've got Ubuntu on the internal drive, and Debian on the firewire, (both share the same partitioning layout) and would suffer random corruption when booting from the firewire drive, until you pointed this out. I can't thank you enough. Looks like Gentoo is going to be installed on the firewire next!
Awesome tip! |
|
Back to top |
|
|
|