I'm going to have to finish this (I hope), a bit later. Going somewhere and will be back in about 4 hours.Code:root@ubuntu:/# ls /dev/disk by-id by-label by-path by-uuid root@ubuntu:/#
I'm going to have to finish this (I hope), a bit later. Going somewhere and will be back in about 4 hours.Code:root@ubuntu:/# ls /dev/disk by-id by-label by-path by-uuid root@ubuntu:/#
Last edited by Chucklz15; August 25th, 2008 at 10:32 PM.
Ok, I go soon to sleep (I live in Berlin...)
My two last suggestions (for today): run, from the chrooted Ubuntu
and post it here.Code:mkofboot -v
If it should work umount everything, as explained before, and restart.
Second option:
If you can't yet boot, try again from Open Firmware (comd+opt+o+f) with following (please, note the difference 0 and 1) :
orCode:boot /ht/pci@7/k2-sata-root/k2-sata@0/disk@0:2,\yaboot
orCode:boot /ht/pci@7/k2-sata-root/k2-sata@1/disk@0:2,\yaboot
orCode:/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@0/disk@0:2,\yaboot
Code:/ht@0,f2000000/pci@7/k2-sata-root@c/k2-sata@1/disk@0:2,\yaboot
Last edited by tiresia; August 26th, 2008 at 01:18 AM.
PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader
If you want to pursue the yabootconfig way:
/dev/disk/by-uuid numbers should point to device names like this (for this box)
The by-uuid names should be links pointing to the sda partitions, but yabootconfig and ofpath are trying to interpret the uuid name (got from fstab) as device names which they need.Code:admax@g4:~/forum$ ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 10 2008-08-26 12:51 700bb606-55d1-4229-b211-556bd53b7079 -> ../../hda4 lrwxrwxrwx 1 root root 10 2008-08-26 12:51 938093c7-954e-4d28-bf0d-f6d0b88133d0 -> ../../hda6 lrwxrwxrwx 1 root root 10 2008-08-26 12:51 96826303-77b7-48b6-b5cd-bb97015e4fa7 -> ../../hda9 lrwxrwxrwx 1 root root 10 2008-08-26 12:51 a4e24732-e321-491f-897c-6c687441d856 -> ../../hda8 lrwxrwxrwx 1 root root 10 2008-08-26 12:51 c7d01fd4-6dc7-4ade-ad2f-b866d13d3cf2 -> ../../hda7 lrwxrwxrwx 1 root root 10 2008-08-26 12:51 CF127CED1089211F -> ../../hda3
If there is some problem there, then an option is to give yabooconfig the bootstrap and root device name.
For example, (In your case -b /dev/sda2 -r /dev/sda3 I think)
I ran this as --noinstall for a test.
This would be done finally from the <chroot>/ with /proc /sys and /dev mounted as you have done.
Code:admax@g4:~$ sudo yabootconfig -b /dev/hda2 -r /dev/hda6 --noinstall --debug yaboot is the Linux Loader for PowerPC. yabootconfig sets up your system to boot directly from your hard disk, without the need for a boot CD, floppy or a network boot. Create simple /etc/yaboot.conf to boot Linux from /dev/hda6? [Yes] y Creating a simple /etc/yaboot.conf... yabootconfig: DEBUG: KERNEL=/boot/vmlinux yabootconfig: DEBUG: INITRD=/boot/initrd.img yabootconfig: DEBUG: KERNEL=/boot/vmlinux KERNDEV=/dev/hda6 KERNDIR=/ LINKDEV=/dev/hda6 PARTITION=6 KERNELDISK=/dev/hda yabootconfig: DEBUG: INITRD=/boot/initrd.img IRDDEV=/dev/hda6 IRDDIR=/ IRDLINKDEV=/dev/hda6 IRDPARTITION=6 INITRDDISK=/dev/hda admax@g4:~$
And thats it, just run that command with the --noinstall? Or should I try tiresia's 4 solutions first?
UPDATE - IMPORTANT!!!: I did the ls -l /dev/disk/by-uuid command and this is what I got (I noticed that it didn't do sda2!!!!):
Code:ubuntu@ubuntu:~$ ls -l /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 2008-08-26 10:33 1895efdd-f1bb-4be9-9073-d78878492ae6 -> ../../sda4 lrwxrwxrwx 1 root root 10 2008-08-26 10:33 cbf5c1ce-4fd7-4862-b096-2efd33909a00 -> ../../sda3 ubuntu@ubuntu:~$
Last edited by Chucklz15; August 26th, 2008 at 03:48 PM.
X
Hi Chucklz,
please, before trying my suggestiongs, try what pxwpxw suggests (me too i think is right)
You must be in the chrooted ubuntu (with /dev, /proc and /sys mounted)
Please, tell me what you get.Code:sudo yabootconfig -v -b /dev/sda2 -r /dev/sda3
If it doesn't work try my other solutions
PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader
BINGO, YES!!! Your second solution seemed to have worked and I think I know why. I was looking around inside my computer and I noticed where my hard disk was located. It was in slot B, meaning slave, so in your second solution when you said "...sata@1..." it meant slave. Thanks everyone for your help.
X
Right, I tought yesterday the same (because the patched ofpath gave a different path than that one you found days ago in the OpenFirmware - you have in fact seen the HD in slot A).
Now, from inside your new Ubuntu, you should anyway run (just to check that the command gives the same path that you used to boot)
and install a correct YabootCode:ofpath /dev/sda2
Please, if your g5 is now ok, mark the thread as solvedCode:sudo yabootconfig -b /dev/sda2 -r /dev/sda3 --debug
PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader
How do I do that exactly?
UPDATE: Everything matchs what I booted with and the yabootconfig is working.
Last edited by Chucklz15; August 26th, 2008 at 04:12 PM.
X
Bookmarks