Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ppc-osx-on-qemu-for-osx [2018/05/20 00:13] – [Currently known issues] cat_7 | ppc-osx-on-qemu-for-osx [2018/05/20 00:20] – [Various utilities] cat_7 | ||
---|---|---|---|
Line 169: | Line 169: | ||
==== Various utilities ==== | ==== Various utilities ==== | ||
- | Script to prepare a hard disk for use with Server 1.23 or Developer preview 2: | + | === Script to prepare a hard disk image for use with OSX Server 1.2v3 or Developer preview 2. === |
- | #!/ | + | * Remove the # in front of the desired disksize:\\ |
- | TARGET_IMAGE=Mac_OS_X_Server_1.0-4G.img | + | #!/bin/sh \\ |
- | #1G \ | + | TARGET_IMAGE=Mac_OS_X_Server_1.0-4G.img \\ |
- | DISKSIZE_IN_BLOCKS=2097152 | + | |
- | #2G \ | + | #1G \\ |
- | #DISKSIZE_IN_BLOCKS=4194304\ | + | DISKSIZE_IN_BLOCKS=2097152 \\ |
- | #4G \ | + | #2G \\ |
- | # | + | # |
- | PRIMARY_PARTITIONSIZE_IN_BLOCKS=`expr $DISKSIZE_IN_BLOCKS | + | #4G \\ |
+ | #DISKSIZE_IN_BLOCKS=8388608 \\ | ||
- | echo $PRIMARY_PARTITIONSIZE_IN_BLOCKS \ | + | PRIMARY_PARTITIONSIZE_IN_BLOCKS=`expr $DISKSIZE_IN_BLOCKS - 512 - 16384 - 64` \\ |
- | pdisk $TARGET_IMAGE -initialize \ | + | echo $PRIMARY_PARTITIONSIZE_IN_BLOCKS \\ |
- | pdisk $TARGET_IMAGE -createPartition MOSX_OF3_Booter Apple_HFS 64 16384 \ | + | |
- | pdisk $TARGET_IMAGE -createPartition SecondaryLoader Apple_Loader 16448 512 \ | + | pdisk $TARGET_IMAGE -initialize |
- | pdisk $TARGET_IMAGE -createPartition " | + | pdisk $TARGET_IMAGE -createPartition MOSX_OF3_Booter Apple_HFS 64 16384 \\ |
+ | pdisk $TARGET_IMAGE -createPartition SecondaryLoader Apple_Loader 16448 512 \\ | ||
+ | pdisk $TARGET_IMAGE -createPartition " | ||
+ | |||
+ | \\ | ||