partitioning and booting
Besides mac-fdisk and dd, what works for a Mac?
With the bearings on my disk about to die, I might
only get one chance to make a second bootable disk.
In the Mac Cube, I have a 20 GB IDE disk with
both MacOS 9.1 and some ext2 Linux partitions.
The physical and logical partition order don't
match; the physical order upsets the boot loader.
For the replacement, I will use a 120 GB disk.
I have 3 different brands to try (power budget)
and a FireWire holder to load them with data.
So far, I've used dd to put raw copies of my
data onto all three disks. I'd like to have
more partitions and/or extend the existing
main ext2 partition. What is safe to use on
my Mac? I worry that MacOS or yaboot will freak
out if the disk size changes.
Past experience: MS-DOS would ignore partition
sizes, instead believing some data it kept
elsewhere. This led to MS-DOS writing over the
beginning of a Linux partition.
---------- partitions on the old 20 GB disk ----------
# mac-fdisk -r /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
q quit editing (don't save changes)
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_Driver43 Macintosh 54 @ 64 ( 27.0k) Driver 4.3
/dev/hda3 Apple_Driver43 Macintosh 74 @ 118 ( 37.0k) Driver 4.3
/dev/hda4 Apple_Driver_ATA Macintosh 54 @ 192 ( 27.0k) Unknown
/dev/hda5 Apple_Driver_ATA Macintosh 74 @ 246 ( 37.0k) Unknown
/dev/hda6 Apple_FWDriver Macintosh 200 @ 320 (100.0k) Unknown
/dev/hda7 Apple_Driver_IOKit Macintosh 512 @ 520 (256.0k) Unknown
/dev/hda8 Apple_Patches Patch Partition 512 @ 1032 (256.0k) Unknown
/dev/hda9 Apple_Bootstrap bootstrap 1600 @ 20040306 (800.0k) NewWorld bootblock
/dev/hda10 Apple_UNIX_SVR2 root 20037182 @ 20041906 ( 9.6G) Linux native
/dev/hda11 Apple_HFS untitled 20038762 @ 1544 ( 9.6G) HFS
Block size=512, Number of Blocks=40079087
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): P
/dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Driver43 Macintosh 54 @ 64 ( 27.0k) Driver 4.3
/dev/hda3 Apple_Driver43 Macintosh 74 @ 118 ( 37.0k) Driver 4.3
/dev/hda4 Apple_Driver_ATA Macintosh 54 @ 192 ( 27.0k) Unknown
/dev/hda5 Apple_Driver_ATA Macintosh 74 @ 246 ( 37.0k) Unknown
/dev/hda6 Apple_FWDriver Macintosh 200 @ 320 (100.0k) Unknown
/dev/hda7 Apple_Driver_IOKit Macintosh 512 @ 520 (256.0k) Unknown
/dev/hda8 Apple_Patches Patch Partition 512 @ 1032 (256.0k) Unknown
/dev/hda11 Apple_HFS untitled 20038762 @ 1544 ( 9.6G) HFS
/dev/hda9 Apple_Bootstrap bootstrap 1600 @ 20040306 (800.0k) NewWorld bootblock
/dev/hda10 Apple_UNIX_SVR2 root 20037182 @ 20041906 ( 9.6G) Linux native
Block size=512, Number of Blocks=40079087
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):
Reply to: