Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OSX Partition missing - cannot reinstall OSX [Solved]
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
juno44
n00b
n00b


Joined: 08 Apr 2004
Posts: 36

PostPosted: Thu Oct 06, 2005 9:29 pm    Post subject: OSX Partition missing - cannot reinstall OSX [Solved] Reply with quote

I have recently installed Gentoo on one half of my G4 PowerBooks drive and am now trying to reinstall Mac OSX on the remaining half of the drive. When I installed Gentoo I split the drive in two, leaving the last partition (hda5) for Mac OSX. Now when I run the OSX installer it sees the two halves as a single partition and this is not available to the instilation program.

Is there some way of telling the Mac OSX setup that the drive is now split in two and that the second half of the drive is available for OSX?
_________________
'where there's open source there's a way'


Last edited by juno44 on Sat Oct 08, 2005 7:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Oct 06, 2005 10:09 pm    Post subject: Reply with quote

Did you use the Apple installer to partition the hd? If not, that might be the problem.
Back to top
View user's profile Send private message
juno44
n00b
n00b


Joined: 08 Apr 2004
Posts: 36

PostPosted: Thu Oct 06, 2005 10:14 pm    Post subject: Reply with quote

No, I used mac-fdisk from the Gentoo CD to partition the drive (as it says in the handbook). I tried partitioning the disk from the Mac CD but then had problems with my Gentoo install and had to start from scratch. I really, really don't want to have to do that again as I have finally got just about everything working and to go back to the begining now would be the final straw!! Surely there must be a way of informing the OSX installer that things have changed? I thought it was just a graphical version of mac-fdisk anyway?
_________________
'where there's open source there's a way'
Back to top
View user's profile Send private message
juno44
n00b
n00b


Joined: 08 Apr 2004
Posts: 36

PostPosted: Sat Oct 08, 2005 8:07 am    Post subject: Reply with quote

I havn't managed to find a solution to this yet. Is there a way that I can save a copy of the entire linux file structure to an external drive. The aim would be reinstall OSX using its disk manger, set up the linux partitions in the normal way and then transfere it all back accross again so that I don't have to recompile everything.
_________________
'where there's open source there's a way'
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Oct 08, 2005 12:06 pm    Post subject: Reply with quote

what says
# mac-fdisk -l /dev/hda
?
is the "system" entry on hda4 (I guess hda1 partition map, hda2 bootstrap, 3 gentoo and 4 OSX?) 'HFS', 'linux native' or still 'free space'?

did you use the disk utility (when you boot from the OS X it should somewhere under Installer -> Disk Utility) to format the partition (in my example hda4) in HFS+ (Journaled-apple-foobar-somewhat in the disk utility) before you tried to install OS X?

Cenrim, who is repartitioning his iBook the last 4 days again and again... :roll:
oh, and killed his OS X, btw :wink:


[edit]
oh, for backing your gentoo up, there are some nice descriptions in the forums, just use the search function ;)
I simply do a copy -pvr ... OK, it isn't that simple, when you use more than 1 partion per OS like I do... :roll:

oh and btw, you can use a seperate HFS+ partition to share data between OSX and gentoo!
we mac users are lucky, we don't need to use this vfat-**** like the poor guys still half stuck with 'doze :twisted:
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Oct 08, 2005 1:48 pm    Post subject: Reply with quote

Perhaps try the stage4 script for backup. I tried it once to build the back up file but I haven't needed to use it for a backup. Anyway take a look at the thread:

https://forums.gentoo.org/viewtopic-t-312817-highlight-.html
Back to top
View user's profile Send private message
juno44
n00b
n00b


Joined: 08 Apr 2004
Posts: 36

PostPosted: Sat Oct 08, 2005 7:04 pm    Post subject: Reply with quote

I have now solved this. I deleted the spare patition using mac-fdisk and the recreated it with type Apple_HFS. When I went to the OSX setup I ran its disk setup utility. The partition was now visible so I erased it, formatting with HFS. This allowed me to install OSX on the partition. However, doing this knocked out Yaboot so I had to re-run the Gentoo CD, chroot across and run mkofboot -v. I now have a dual boot machine.

This means that you don't need to use the OSX disk utility to partition your disk for Gentoo - mac-fsdisk does the job just fine; that you don't need install OSX before Gentoo - providing your prepared to reinitialise yaboot; and that you don't need to place OSX before Gentoo on the drive.

For those that follow:

I'm running a G4 PowerBook, 1Ghz, 40gb/500mb/SD - A1010

My old print from mac-fdisk looked like this:

Code:
/dev/hda
        #                    type name                 length   base     ( size )  system
/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               37748736 @ 1050240  ( 18.0G)  Linux native
/dev/hda5              Apple_Free Extra]              39341184 @ 38798976 ( 18.8G)  Free space


I deleted hda5 (d, 5p) and the created a new partition (CAPITAL C not lowercase) with a a type of Apple_HFS. I did not format the drive, just rebooted to the OSX installation disk.

The new print from mac-fdisk looks like this:

Code:
/dev/hda
        #                    type name                 length   base     ( size )  system
/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               37748736 @ 1050240  ( 18.0G)  Linux native
/dev/hda5              Apple_HFS Apple              39341184 @ 38798976 ( 18.8G)  Free space


I then ran the Apple startup disk and using the disk utility erased the partition giving it the HFS format (initially the partition had not been visible in the drive tree but following the above steps it was displayed but was greyed out - once formatted correctly the partition was no longer displayed as greyed out). The setup program then allowed me to install OSX onto the newley formatted partition.

Once this was completed I then had to reinsert the Gentoo CD, chroot across as per the handbook and reformat the bootstrap partition, again as per the handbook (Configuring the Bootloader section). If you previously had a working Yaboot.conf you only need to run the code below. Your yaboot.conf still exists within /etc/yaboot.conf but it needs to be transfered accross to a formatted Apple_bootstrap partition:

Code:
mkofboot -v


Once this was done the system was back to normal and dual booting was enabled.

A copy of my yaboot.cof for info:

Code:

delay=30
ofboot=hd:2
boot=/dev/hda2
device=hd:
partition=4
defaultos=linux
timeout=50

install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

#default kernel

image=/boot/gentoo

        label=Gentoo
        root=/dev/hda4
        read-only

#emergancy genkernal kernel that starts no matter what

image=/boot/kernel-genkernel-ppc-2.6.12-gentoo-r6

        label=Genkernel
        root=/dev/ram0
        append="real_root=/dev/hda4 init=/linuxrc"
        read-only
        initrd=/boot/initramfs-genkernel-ppc-2.6.12-gentoo-r6
        initrd-size=8192

#Mac OSX running from partition 5

macosx=hd:5

_________________
'where there's open source there's a way'


Last edited by juno44 on Sat Oct 08, 2005 7:29 pm; edited 3 times in total
Back to top
View user's profile Send private message
juno44
n00b
n00b


Joined: 08 Apr 2004
Posts: 36

PostPosted: Sat Oct 08, 2005 7:05 pm    Post subject: Re: OSX Partition missing - cannot reinstall OSX [Solved] Reply with quote

juno44 wrote:
I have recently installed Gentoo on one half of my G4 PowerBooks drive and am now trying to reinstall Mac OSX on the remaining half of the drive. When I installed Gentoo I split the drive in two, leaving the last partition (hda5) for Mac OSX. Now when I run the OSX installer it sees the two halves as a single partition and this is not available to the instilation program.

Is there some way of telling the Mac OSX setup that the drive is now split in two and that the second half of the drive is available for OSX?

_________________
'where there's open source there's a way'
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