Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Old G4 - Confused with partitioning
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
kamina
Apprentice
Apprentice


Joined: 14 Jun 2004
Posts: 157
Location: Finland

PostPosted: Fri Mar 31, 2006 7:42 am    Post subject: Old G4 - Confused with partitioning Reply with quote

I'm playing around with an old G4 desktop and am considering making a fileserver out of it. It has previously run OS X 10.2 server, but it will only be running Gentoo from now on (if everything works out...).

Currently the system drives partition map is as follows:

Code:

# mac-fdisk /dev/hdb
/dev/hdb
Command (? for help): p
/dev/hdb
        #                    type name                 length   base     ( size )  system
/dev/hdb1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hdb2          Apple_Driver43 Macintosh                54 @ 64       ( 27.0k)  Driver 4.3
/dev/hdb3          Apple_Driver43 Macintosh                74 @ 118      ( 37.0k)  Driver 4.3
/dev/hdb4        Apple_Driver_ATA Macintosh                54 @ 192      ( 27.0k)  Unknown
/dev/hdb5        Apple_Driver_ATA Macintosh                74 @ 246      ( 37.0k)  Unknown
/dev/hdb6          Apple_FWDriver Macintosh               200 @ 320      (100.0k)  Unknown
/dev/hdb7      Apple_Driver_IOKit Macintosh               512 @ 520      (256.0k)  Unknown
/dev/hdb8           Apple_Patches Patch Partition         512 @ 1032     (256.0k)  Unknown
/dev/hdb9               Apple_HFS untitled           59392000 @ 1544     ( 28.3G)  HFS
/dev/hdb10             Apple_Free                      642936 @ 59393544 (313.9M)  Free space

Block size=512, Number of Blocks=60036480
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 118 for 36, type=0xffff
3: @ 192 for 21, type=0x701
4: @ 246 for 34, type=0xf8ff


I'm quite a n00b with mac's, and don't really know how to continue. Do I need to keep the partition-map, or the driver partitions? Can I just wipe everything and partition like I would on an x86 computer since I won't be running os x on this?

edit:

While I'm at it, here is the partitioning for another drive in the computer. It's a 160GB drive, but seems to be using less.. Is this a bios(?) limitation or operating system?

Code:

 mac-fdisk /dev/hda
/dev/hda
Command (? for help): p
/dev/hda
        #                    type name                  length   base      ( size )  system
/dev/hda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/hda2    Apple_Driver_OpenFirmware Macintosh               1024 @ 64        (512.0k)  Unknown
/dev/hda3         Apple_Boot_RAID Raid Partition     268434357 @ 1088      (128.0G)  Unknown
/dev/hda4              Apple_Free                           10 @ 268435445 (  5.0k)  Free space

Block size=512, Number of Blocks=268435455
DeviceType=0x0, DeviceId=0x0
Back to top
View user's profile Send private message
8-bitDesigner
n00b
n00b


Joined: 14 Jan 2006
Posts: 25
Location: Orange, CA

PostPosted: Fri Mar 31, 2006 9:05 am    Post subject: Reply with quote

Hmm... now my experience has solely been with OS 9, so I can't say too much about OSX off-hand.

But man..., the macs have one messy partition system, and this is, from what I understand, due to the fact that the partition map itself, is a partition, and there are a handful of "patch" and driver partitions.

Depending on how you want to approch this, you have a few options. I'm using and Old World Mac (Powermac 8500) and when I first set up my boot disk, I just hosed all but the Apple Partition Map partition. Works like a charm, however, this renders the disk invisible to OS 9 (again, can't speak for OSX, but I'd wager they're similar enough), but the disk works perfectly for what I need.

If you want to dual-boot or share a partition between the two OSes, you have to start at /dev/hdb9, by the looks of it, and keep the misc Mac partitions.

Just, whatever you do, don't trash the Apple_partition_map partition... it's (oddly enough) the partition map, and it somewhat critical to use the disk.

Cheers!
Back to top
View user's profile Send private message
kamina
Apprentice
Apprentice


Joined: 14 Jun 2004
Posts: 157
Location: Finland

PostPosted: Fri Mar 31, 2006 9:09 am    Post subject: Reply with quote

I won't be using dualboot, just plain linux... Ok, I'll just remove everything apart from the first partition.

edit:

Well I deleted part of them, but atleast mac-fdisk won't let me delete the rest:

Code:

Command (? for help): p
/dev/hdb
        #                    type name                 length   base     ( size )  system
/dev/hdb1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hdb2          Apple_Driver43 Macintosh                54 @ 64       ( 27.0k)  Driver 4.3
/dev/hdb3          Apple_Driver43 Macintosh                74 @ 118      ( 37.0k)  Driver 4.3
/dev/hdb4        Apple_Driver_ATA Macintosh                54 @ 192      ( 27.0k)  Unknown
/dev/hdb5        Apple_Driver_ATA Macintosh                74 @ 246      ( 37.0k)  Unknown
/dev/hdb6              Apple_Free Extra              60036160 @ 320      ( 28.6G)  Free space

Block size=512, Number of Blocks=60036480
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 118 for 36, type=0xffff
3: @ 192 for 21, type=0x701
4: @ 246 for 34, type=0xf8ff

Command (? for help): d
Partition number: 5
Can't delete entry for a driver (yet).


Yet? :D

Should I be using a differant tool for partitioning? Can I just use plain fdisk?
Back to top
View user's profile Send private message
8-bitDesigner
n00b
n00b


Joined: 14 Jan 2006
Posts: 25
Location: Orange, CA

PostPosted: Fri Mar 31, 2006 9:17 am    Post subject: Reply with quote

Ooh yeah, mac-fdisk is a bit of a nanny that way. Yeah, I tossed those partitions via "parted" which is a bit weirder if you've only used fdisk, but a pretty nifty tool nonetheless.

I removed the partitions with parted, and then repartitioned the disk with mac-fdisk. mac-fdisk is spiffy in that it the "3p" or whatnot, notation for creating disks saves you a fair bit of math.
Back to top
View user's profile Send private message
kamina
Apprentice
Apprentice


Joined: 14 Jun 2004
Posts: 157
Location: Finland

PostPosted: Fri Mar 31, 2006 12:08 pm    Post subject: Reply with quote

Well I just left those partitions, since they won't really do anything bad (I guess?). I think I'm going to change the disk before "deployment" anyway.
Back to top
View user's profile Send private message
8-bitDesigner
n00b
n00b


Joined: 14 Jan 2006
Posts: 25
Location: Orange, CA

PostPosted: Fri Mar 31, 2006 9:31 pm    Post subject: Reply with quote

Yep, those partitions just hold the driver data for the MacOS. This is a funny little way to implement a plug and play system for their hard drives, but I guess it works. I personally couldn't stand having that many partitions, so I tossed the drivers and just installed Gentoo straight onto it.

However, if you ever need any of those partitions back, just use DriveSetup (OS9) or the equivalent OSX program to repartition the disk, and it will install the driver partitions for you, and the disk will be visible in MacOS again.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Mar 31, 2006 11:36 pm    Post subject: Reply with quote

You can erase those partitions using mac-fdisk as well, just use the initialize option to completely wipe the disk and write a clean partition map. They're only used for MacOS, OSX does not require them.

You cannot use plain fdisk because plain fdisk only writes DOS partitions. Unfortunately, OF cannot boot from DOS partitions, so it won't see the disk as bootable if you use fdisk.

As for the size limit, yes, there is a limit on the disk size for certain models, what kind of G4 is this?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
kamina
Apprentice
Apprentice


Joined: 14 Jun 2004
Posts: 157
Location: Finland

PostPosted: Sun Apr 02, 2006 6:39 pm    Post subject: Reply with quote

This is a G4 "Digital Audio" with a 466mhz processor. I allready figured out it is limited to 128GB drives, though I don't know if this is the case under linux too. I'm now considering getting a pci sata-controller as I have some extra 250GB sata-drives laying around. Problem is, it seems I'm fairly limited in what to get if I ever want to run os x.
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