On 26. jan 2006, at 14.25, Charles Plessy wrote:
On Thu, Jan 26, 2006 at 11:22:33AM +0100, Brian Durant wrote :Since yaboot is the only boot loader for New World Macs, it is amazing that there isn't a better HowTo or other form of documentation about "device=" to get OS X on a SATA drive to boot. Can't remember how I got it, but my path is: device=/ht@0,f2000000/pci@3/k2-sata-root@c/k2-sata@0/disk@0:There is an utility called ofpath which tells you that. It is in /usr/sbin, so you may have to indicate the full path. Here is the output on my mac: charles@sorbet:~$ /usr/sbin/ofpath /dev/hda /ht@0,f2000000/pci@3/ata-6@d/disk@0: charles@sorbet:~$ /usr/sbin/ofpath /dev/sda /ht@0,f2000000/pci@3/k2-sata-root@c/k2-sata@0/disk@0: charles@sorbet:~$ /usr/sbin/ofpath /dev/sda2 /ht@0,f2000000/pci@3/k2-sata-root@c/k2-sata@0/disk@0:2Also, if you enter in openfirmware, you can get the information too, bytyping: dev / ls http://developer.apple.com/technotes/tn/tn1061.html#RTFToC4 Maybe you can try to put the openfirmware path of your osX partition instead of /dev/sdb3?
Hi Charles, Here is what my yaboot conf file looks like: -------- edited yaboot.conf starts below ---------- ## yaboot.conf generated by the Ubuntu installer ## ## 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 # Color Settings fgcolor="black" bgcolor="yellow" # Where's the bootstrap partition boot=/dev/sda2 device=/ht@0,f2000000/pci@3/k2-sata-root@c/k2-sata@0/disk@0: partition=3 root=/dev/sda3 # How long to wait at the OS boot menu (seconds) timeout=100 install=/usr/lib/yaboot/yaboot # CHRP script spec magicboot=/usr/lib/yaboot/ofboot enablecdboot # to boot OSX by default # to boot linux by default, change to defaultos=linux defaultos=macosx macosx=/dev/sdb3 image=/boot/vmlinux label=Linux read-only initrd=/boot/initrd.img append="quiet splash" image=/boot/vmlinux.old label=old read-only initrd=/boot/initrd.img.old append="quiet splash"As you can see, except for a few comments to try to remind me what is what and that I changed the default OF display color to black type on yellow background, yaboot.conf is as it should be. What I found interesting in the article that I mentioned is that apparentlu OF supports aliases, so that rather including the full device "path", you can instead use (for SATA drives) sd0:, sd1:, sd2:, etc. When I tried with device=sd1, Ubuntu no longer booted and I had to boot from a live CD, return the yaboot.conf to what it had been before and then run ybin.
For all of the documentation on yaboot on the net, it actually seems quite limited as to the functions that are documented. For example, how can you do a devalias command and then save the output to your HD or print it? GRUB and LILO commands are documented soooo much better :-( Anyway, my main task at this time is to solve the "device" issue so that I can boot into OS X without having to start from the OF graphic mode with the option key held down at startup.
Cheers, Brian