Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
yaboot dual boot problem
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
immolo
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 76
Location: Portsmouth, UK

PostPosted: Thu Apr 14, 2005 11:10 pm    Post subject: yaboot dual boot problem Reply with quote

So I got my girlfriend a mac a present which had nothing to do with the fact I wanted to play with Linux on a ppc but I'm having a little problem getting yaboot to boot osx as the default OS without having to press 'x' everytime on bootup.
Currently it just goes to the second stage part and tries to load macosx as a linux kernel rather then booting the OS itself.

Here is my yaboot.conf

Code:

default=macosx
macosx=/dev/hda10
boot=/dev/hda11
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
default=macosx
partition=13
root=/dev/hda13
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.10
        label=Linux
        root=/dev/hda13
        read-only

enablecdboot
enableofboot


Thanks for your time
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 270
Location: currently ~/

PostPosted: Thu Apr 14, 2005 11:55 pm    Post subject: Reply with quote

i'm not an expert on gentoo on a ppc.. i've only installed it once..
I noticed these first of all on your config file.

/dev/hda10
/dev/hda11
/dev/hda12
etc..

Do you really have 13 partitions??

/dev/hda <--first harddrive (master on primary channel)
/dev/hda1 <--first partition on first drive
/dev/hda3 <- 3rd partition ' '
/dev/hdc2 <- 2nd partition on harddrive (master on secondary channel)
make sence?


Maybe you need to drop the '1' outta those lines..
try this..

can you run
Code:
mac-fdisk /dev/hda

and post the output?

heres my yaboot.conf..
Code:
boot=/dev/hda2
device=hd:
partition=4
root=/dev/hda4
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.9
        label=Linux
        read-only

image=/boot/kernel-2.6.7
        label=grsec
        read-only


heres the output of my mac-fdisk /dev/hda

Code:
mac root # mac-fdisk /dev/hda
/dev/hda
Command (? for help): p
/dev/hda
        #                    type name                 length   base     ( size )  system
dump: name /dev/hda len 8
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hda2         Apple_Bootstrap bootstrap              1600 @ 64       (800.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 swap                1048576 @ 1664     (512.0M)  Linux swap
/dev/hda4         Apple_UNIX_SVR2 root               38012260 @ 1050240  ( 18.1G)  Linux native

Block size=512, Number of Blocks=39062500
DeviceType=0x0, DeviceId=0x0

Command (? for help):


I'm guessing its the /dev/hda* lines that are screwing it up..
_________________
eXklusve

You do know that no one gives a shit about your system spec's right?
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Thu Apr 14, 2005 11:56 pm    Post subject: Re: yaboot dual boot problem Reply with quote

immolo wrote:
Code:

default=macosx

You may want to replace this with
Code:
defaultos=macosx

The line also appears twice in your yaboot.conf, you may want replace the other with
Code:
default=Linux

_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Thu Apr 14, 2005 11:59 pm    Post subject: Reply with quote

exklusve wrote:
Do you really have 13 partitions??

I guess that the original poster has the Mac OS9 disk drivers installed, case in which 13 partitions are quite possible (those things eat up some 8 partitions for themselves).
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Apr 15, 2005 7:07 pm    Post subject: Reply with quote

Code:
macosx=/dev/hda10


try this instead:
Code:
macosx=hd:10

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
immolo
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2005
Posts: 76
Location: Portsmouth, UK

PostPosted: Fri Apr 15, 2005 7:12 pm    Post subject: Reply with quote

Thanks bruda changing to default to defaultos did the trick and yes I have 13 partitions due to the OS9 driver stuff.
Back to top
View user's profile Send private message
mil0t
n00b
n00b


Joined: 24 Jun 2003
Posts: 62

PostPosted: Sat Apr 16, 2005 12:18 am    Post subject: Reply with quote

mkfoboot will make you automatically! but add default os macosx:

Code:

default=macosx

_________________
emerge --pretend love | genlop --pretend
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