Skip to contentSkip to conversation

GNU Parted, linuxppc support coming :-)

DISCUSSION Andrew Clausen 7 participants 10 messages Jul 4, 2000 – Jul 10, 2000

lore
Share & tools
lore
#0 lore raw

Hi all,

I've started hacking on linuxppc (on Macs) support for GNU Parted, a partition program. It's like fdisk (or pdisk), but it can also create, copy and resize file systems that it has special support for. More info at:

www.gnu.org/software/parted

I'm trying to support the Mac partition map, but I'll need some help, since I don't have a PowerPC :-(

Could someone send me their partition map? You can get this with:

	# dd if=/dev/hda bs=512 count=MAP-SIZE | gzip | map.gz

If you don't know how big your partition map (+1 for driver block) is, then 64 should do (?). (What's a reasonable size for a partition map?)

Note: I'm not adding HFS support at this stage - it's a LOT of work. So you'll be able to resize ext2 partitions in the near future, but not HFS partitions :-/ Unless there are some volunteers...

Of course, I'd also be happy very if someone could help with the code, or just testing :-)

Thanks!
Andrew Clausen

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines · Andrew Clausen

I'm trying to support the Mac partition map, but I'll need some help, since I don't have a PowerPC :-(

Just about everything you need is at
http://developer.apple.com/techpubs/mac/Devices/Devices-121.html#HEADING121-50

At least, I know that myself and a few other people have been able to code based off of that.

Quoted 7 lines

Could someone send me their partition map? You can get this with:

        # dd if=/dev/hda bs=512 count=MAP-SIZE | gzip | map.gz

If you don't know how big your partition map (+1 for driver block) is, then 64 should do (?). (What's a reasonable size for a partition map?)

I forget, but I don't think *anyone* has more than 20 (on most Macs, the first 7 contain drivers etc), so 20 x sizeof(partition) (see above URL).

Quoted 3 lines

Note: I'm not adding HFS support at this stage - it's a LOT of work. So you'll be able to resize ext2 partitions in the near future, but not HFS partitions :-/ Unless there are some volunteers...

There seems to be a shortage of HFS folks these days. :) But ext2 resizing sounds very cool.

-Hollis

P.S. Can't get you a real map right now, but email me later if you want it.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 11 lines · Andrew Clausen

I'm trying to support the Mac partition map, but I'll need some help, since I don't have a PowerPC :-(

Could someone send me their partition map? You can get this with:

        # dd if=/dev/hda bs=512 count=MAP-SIZE | gzip | map.gz

If you don't know how big your partition map (+1 for driver block) is, then 64 should do (?). (What's a reasonable size for a partition map?)

Does parted support Amiga partition maps? If not, I'm sure APUS users will gladly send you their partition maps...

Michel

--
UNIX is like Sex:
If you don't know it, you don't miss it. But if you know it, you'll need it.
______________________________________________________________________________
Earthling Michel Dänzer (MrCooper) \ CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \ member of XFree86, Team *AMIGA*, AUGS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 1 line · Michel Dänzer

Does parted support Amiga partition maps?

No. Not yet ;-)

Quoted 2 lines

If not, I'm sure APUS users will gladly send you their partition maps...

I'm not ready for that yet :-/ Are there any good docs around?

Thanks!
Andrew clausen

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
In reply to Hollis Blanchard
Quoted 8 lines · Hollis Blanchard
Quoted 3 lines · Andrew Clausen

I'm trying to support the Mac partition map, but I'll need some help, since I don't have a PowerPC :-(

Just about everything you need is at
http://developer.apple.com/techpubs/mac/Devices/Devices-121.html#HEADING121-50

Yeah, I've read it... :-)

Quoted 2 lines

At least, I know that myself and a few other people have been able to code based off of that.

Yep.

Quoted 10 lines
Quoted 7 lines

Could someone send me their partition map? You can get this with:

        # dd if=/dev/hda bs=512 count=MAP-SIZE | gzip | map.gz

If you don't know how big your partition map (+1 for driver block) is, then 64 should do (?). (What's a reasonable size for a partition map?)

I forget, but I don't think *anyone* has more than 20 (on most Macs, the first 7 contain drivers etc), so 20 x sizeof(partition) (see above URL).

Each partition gets one block (yes?). So thats 20 * 512? (From comments in various programs, most disks have 512 byte blocks...)

Quoted 6 lines
Quoted 3 lines

Note: I'm not adding HFS support at this stage - it's a LOT of work. So you'll be able to resize ext2 partitions in the near future, but not HFS partitions :-/ Unless there are some volunteers...

There seems to be a shortage of HFS folks these days. :) But ext2 resizing sounds very cool.

Excuse my ignorance... what FS's do people usually use with MacOS? HFS/HFS+?

(Is the point "no-one uses MacOS", or "no-one's hacking on HFS in Linux"?)

Quoted 2 lines

P.S. Can't get you a real map right now, but email me later if you want it.

That would be useful, thanks :-)

Andrew Clausen

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#5 lore raw
Quoted 2 lines · Andrew Clausen

Each partition gets one block (yes?). So thats 20 * 512? (From comments in various programs, most disks have 512 byte blocks...)

CDROMs, for example, often have 2048-byte blocks. You can get the block size out of the disk header somewhere, IIRC.

Quoted 5 lines
Quoted 2 lines

There seems to be a shortage of HFS folks these days. :) But ext2 resizing sounds very cool.

Excuse my ignorance... what FS's do people usually use with MacOS? HFS/HFS+?

Yes, that's right.

Quoted 2 lines

(Is the point "no-one uses MacOS", or "no-one's hacking on HFS in Linux"?)

The latter.

Dan

/--------------------------------\ /--------------------------------\

|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         [email protected]         |  |       [email protected]      |
\--------------------------------/  \--------------------------------/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw

Hi all,

Quoted 2 lines
Quoted 2 lines

Excuse my ignorance... what FS's do people usually use with MacOS? HFS/HFS+?

Something wanted to add to a previous mail in the thread:

Don't forget that there are lots of Macs that _absolutely_ need at least one HFS partition and an Aple partition map on one of there disks, because that's the only thing the ROM can boot some OS from.

AFAICT, all pre-NewWorld machines are in this case, except maybe some that can be tweaked to network boot...

Michel

-------------------------------------------------------------------------

Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   [email protected]            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#7 lore raw
Quoted 6 lines · Michel Lanners

Hi all,

Quoted 2 lines
Quoted 2 lines

Excuse my ignorance... what FS's do people usually use with MacOS? HFS/HFS+?

Quoted 8 lines

Something wanted to add to a previous mail in the thread:

Don't forget that there are lots of Macs that _absolutely_ need at least one HFS partition and an Aple partition map on one of there disks, because that's the only thing the ROM can boot some OS from.

AFAICT, all pre-NewWorld machines are in this case, except maybe some that can be tweaked to network boot...

oldworld macs this is true i think. newworld macs CAN boot from a disk with DOS partition tables, but you have to configure OpenFirmware to non-standard settings. with a small Apple_Bootstrap partition in HFS format setup by ybin will boot with defaults.

Signature · 2 lines
Ethan Benson
http://www.alaska.net/~erbenson/
#8 lore raw
Quoted 9 lines · Ethan Benson
Quoted 8 lines · Michel Lanners

Hi all,

Quoted 2 lines
Quoted 2 lines

Excuse my ignorance... what FS's do people usually use with MacOS? HFS/HFS+?

Something wanted to add to a previous mail in the thread:

Quoted 8 lines
Quoted 6 lines

Don't forget that there are lots of Macs that _absolutely_ need at least one HFS partition and an Aple partition map on one of there disks, because that's the only thing the ROM can boot some OS from.

AFAICT, all pre-NewWorld machines are in this case, except maybe some that can be tweaked to network boot...

oldworld macs this is true i think.

Not completely true. They do have to have a Mac partition table but I'm pretty sure you can get away without any HFS partitions if you use quik to boot. Granted, that's a pain, but it can be done.

Tim Seufert

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#9 lore raw

Hi all,

On   8 Jul, this message from Timothy A. Seufert echoed through cyberspace:
>>>  Don't forget that there are lots of Macs that _absolutely_ need at least
>>>  one HFS partition and an Aple partition map on one of there disks,
>>>  because that's the only thing the ROM can boot some OS from.
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

AFAICT, all pre-NewWorld machines are in this case, except maybe some that can be tweaked to network boot...

oldworld macs this is true i think.

Not completely true. They do have to have a Mac partition table but I'm pretty sure you can get away without any HFS partitions if you use quik to boot. Granted, that's a pain, but it can be done.

You are right. OF only accesses the boot block of a partition marked bootable. It probably doesn't know filesystems at all.

Michel

-------------------------------------------------------------------------

Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   [email protected]            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/