Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Partitioning an iBook HD
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
fran.aguilera
n00b
n00b


Joined: 17 Feb 2004
Posts: 9
Location: España/Spain

PostPosted: Thu Feb 26, 2004 10:59 am    Post subject: Partitioning an iBook HD Reply with quote

Hi everybody...

Well, I'm going to buy a new iBook next week and I've got a question about partitioning the HD (because I've read something about that and didn't understood it very well).
I've planned to make a 10 or 15 Gb size partition for MacOSX and the rest for Gentoo. My question is: What of them should I do at the beginning of the HD? The partition destinated to Gentoo or to MacOSX?

Thanks.

PS: If there is any fault in my English, sorry :P
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Thu Feb 26, 2004 10:45 pm    Post subject: Reply with quote

First of all you have to crate the Mac OS partition, using disk-tool from the mac os' cd.
Leave some free space for linux, and the use mac-fdisk :wink:
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
elpollodiablo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2003
Posts: 141

PostPosted: Tue Mar 02, 2004 10:13 am    Post subject: Reply with quote

do u mean that linux partitions can be added at the end if the disk????
Back to top
View user's profile Send private message
Lukas
n00b
n00b


Joined: 05 Jun 2002
Posts: 32
Location: Amsterdam, The Netherlands

PostPosted: Tue Mar 02, 2004 10:27 am    Post subject: Reply with quote

You're iBook will come with OSX preinstalled I assume? I don't know if you can resize (shrink) existing OS X partitions.
If yes: you could make your OSX partition smaller, then in gentoo use mac-fdisk to make linux partitions.
If no: do a clean install of OSX and repartition your HD. But don't use the entire disk for the OSX partition. Leave free disk space for linux. Then again, use mac-fdisk.

In both cases, your linux partitions would be at the end fo the desk, which is just fine. The other way around is probably just as fine.

HTH, and enjoy your new iBook,
_________________
Lukas
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Tue Mar 02, 2004 10:49 am    Post subject: Reply with quote

all ibooks came with mac osx preinstalled, you can't resize it so you have to partition your hd ex-novo, losing everything :x
You can put linux related partitions at the end of the disk, look to my hd:
Code:
mac-fdisk -l
/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 @ 21048384 (800.0k)  NewWorld bootblock
/dev/hda3               Apple_HFS Apple_HFS_Untitled_4 20786176 @ 262208   (  9.9G)  HFS
/dev/hda4         Apple_UNIX_SVR2 root               20971520 @ 21049984 ( 10.0G)  Linux native
/dev/hda5         Apple_UNIX_SVR2 home               16582656 @ 42021504 (  7.9G)  Linux native
/dev/hda6         Apple_UNIX_SVR2 swap                 262144 @ 64       (128.0M)  Linux swap
/dev/hda7              Apple_Free Extra                   960 @ 58604160 (480.0k)  Free space

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

_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
elpollodiablo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2003
Posts: 141

PostPosted: Tue Mar 02, 2004 11:41 am    Post subject: Reply with quote

i reinstalled macosx so i have two partitions! i'm gonna delete the second one, at the end of the disk, make a smaller one and then install gentoo at the very end. I'm kinda worried about this:

Code:

/dev/hda2         Apple_Bootstrap bootstrap              1600 @ 21048384 (800.0k)  NewWorld bootblock


should it be somewhere specifically or can just be anywere in the disk???
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Tue Mar 02, 2004 11:50 am    Post subject: Reply with quote

elpollodiablo wrote:
i reinstalled macosx so i have two partitions! i'm gonna delete the second one, at the end of the disk, make a smaller one and then install gentoo at the very end. I'm kinda worried about this:

Code:

/dev/hda2         Apple_Bootstrap bootstrap              1600 @ 21048384 (800.0k)  NewWorld bootblock


should it be somewhere specifically or can just be anywere in the disk???

The bootstrap partition must be the second partition after
Code:
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map

But don't worry, mac-fidisk is your friend!
Code:
mac-fdisk /dev/hda
/dev/hda
Command (? for help): ?
Notes:
  Base and length fields are blocks, which are 512 bytes long.
  The name of a partition is descriptive text.

Commands are:
  h    help
  p    print the partition table
  P    (print ordered by base address)
  i    initialize partition map
  s    change size of partition map
  b    create new 800K bootstrap partition
  c    create new Linux partition
  C    (create with type also specified)
  d    delete a partition
  r    reorder partition entry in map
  w    write the partition table
  q    quit editing (don't save changes)

the r command solves your problem! :wink:
_________________
~ "Progress is merely a realisation of utopias" ~
Back to top
View user's profile Send private message
elpollodiablo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2003
Posts: 141

PostPosted: Tue Mar 02, 2004 6:25 pm    Post subject: Reply with quote

perfect! really happy!!!
Back to top
View user's profile Send private message
the_accidental
n00b
n00b


Joined: 29 Dec 2003
Posts: 33

PostPosted: Fri Mar 05, 2004 2:12 pm    Post subject: Reply with quote

FYI you CAN non-destructively resize HFS+ with a recent version of parted (on liveCD). I did it just fine.

I deleted the apple driver parts at the start of the drive to create the bootstrap 800k part, then resized the HFS+ drive to be 10 gig less, then created my swap and root at the end of the drive - worked fine.
Back to top
View user's profile Send private message
micron
Guru
Guru


Joined: 23 Jul 2003
Posts: 411
Location: Bergamo, Italy

PostPosted: Fri Mar 05, 2004 2:35 pm    Post subject: Reply with quote

the_accidental wrote:
FYI you CAN non-destructively resize HFS+ with a recent version of parted (on liveCD). I did it just fine.

This is really a good news! :)
_________________
~ "Progress is merely a realisation of utopias" ~
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