[comp.unix.aux] Partitioning hard disk and other horrors

ss60ubu@sdcc3.ucsd.EDU (ANDREW MICONE) (07/21/89)

Help! here's the problem.

I have a Rodime 100meg drive, and A/UX 1.0 on an 80SC.  The latest
version of the Rodime installer allows you to partition for A/UX
automatically. Using dp on the drive reveals five partitions, one
for the Rodime driver, one for HFS, and 3 for UNIX.  The three for
unix consist of the regular apple unix partition, the partition
table partition, and a scratch partition.  The logical size for
these partitions all registers as zero upon observation, here are
the questions:

1) Do I need the latter two partitions, the System Manager's notes
gave me the impression you only needed one partition when using the
drive as additional data space.

2) What do I set the logical size to? I can't do a mkfs on the drive
without setting it, but I don't know what to set it to since I can't
determine how much space the other two unix partitions take up, nor
exactly the size of a block (I read in one place it was 512 bytes,
and off of the mkfs command that it was 1024 bytes).  Where can I
get the block size from? I have the disk partitioned for 50megs HFS
and 50megs A/UX.

Thanks in advance,

andym
andym@crash.CTS.COM
ss60ubu@iugrad1.ucsd.edu

steveg@tove.umd.edu (Steve Green) (07/21/89)

In article <4402@sdcc3.ucsd.EDU]  ss60ubu@sdcc3.ucsd.edu.UUCP (ANDREW MICONE) writes:
] 
] Help! here's the problem.
] 
] I have a Rodime 100meg drive, and A/UX 1.0 on an 80SC.  The latest
] version of the Rodime installer allows you to partition for A/UX
] automatically. Using dp on the drive reveals five partitions, one
] for the Rodime driver, one for HFS, and 3 for UNIX.  The three for
] unix consist of the regular apple unix partition, the partition
] table partition, and a scratch partition.  The logical size for
] these partitions all registers as zero upon observation, here are
] the questions:
] 
] 1) Do I need the latter two partitions, the System Manager's notes
] gave me the impression you only needed one partition when using the
] drive as additional data space.
	
Yes, you need the pmap partition and I as I recall, the scratch partition
is real small and is used by the driver.

] 2) What do I set the logical size to? I can't do a mkfs on the drive
] without setting it, but I don't know what to set it to since I can't
] determine how much space the other two unix partitions take up, nor
] exactly the size of a block (I read in one place it was 512 bytes,
] and off of the mkfs command that it was 1024 bytes).  Where can I
] get the block size from? I have the disk partitioned for 50megs HFS
] and 50megs A/UX.

Set the logical size to the same as the physical size.

But wait.....there's more....  What you have discovered is that there is a
problem with the rodime partitioning software.  You have to set the bzb_type
of the partiton also.  From dp, chose to change the partition, then pick the 'b'
option.  You must do this for swap and [root&] usr partitions.  At this point,
if I have not forgotten something, you should be able to mkfs.

				steveg@tove.umd.edu

kaufman@polya.Stanford.EDU (Marc T. Kaufman) (07/22/89)

In article <4402@sdcc3.ucsd.EDU> ss60ubu@sdcc3.ucsd.edu.UUCP (ANDREW MICONE) writes:

>Help! here's the problem.

>I have a Rodime 100meg drive, and A/UX 1.0 on an 80SC.  The latest
>version of the Rodime installer allows you to partition for A/UX
>automatically. Using dp on the drive reveals five partitions, one
>for the Rodime driver, one for HFS, and 3 for UNIX.  The three for
>unix consist of the regular apple unix partition, the partition
>table partition, and a scratch partition.  The logical size for
>these partitions all registers as zero upon observation, here are
>the questions:

>1) Do I need the latter two partitions, the System Manager's notes
>gave me the impression you only needed one partition when using the
>drive as additional data space.

You need the Partition-Map partition, since that IS the partition map.
once that is allocated, zero-entries don't take any (other) space on the
disk. (e.g. the Scratch partition).

>2) What do I set the logical size to? I can't do a mkfs on the drive
>without setting it, but I don't know what to set it to since I can't
>determine how much space the other two unix partitions take up, nor
>exactly the size of a block (I read in one place it was 512 bytes,
>and off of the mkfs command that it was 1024 bytes).  Where can I
>get the block size from? I have the disk partitioned for 50megs HFS
>and 50megs A/UX.

The PHYSICAL size of the disk (number of 512 byte sectors) is stored in
PHYSICAL sector 0 of the disk, in the second long word.  You can allocate
as much of the disk as you want.  It is NOT necessary to allocate the entire
disk.  Set the physical size of the partition such that the physical starting
block + the size do not exceed the physical size of the disk.  Set the logical
start to 0, and the logical size the same as the physical size.  Since you
will not have a Swap partition on the disk, set Root=no, Usr=yes.  I have
found it helpful to do a 'badblk' on the partition before doing the 'mkfs'.
Be sure to do a 'fsck' on the new file system, as mkfs always leaves the last
block unlinked, for some reason.

The mkfs command takes its parameters in 512-byte blocks, but reports the
file system in 1024 byte logical blocks.

Marc Kaufman (kaufman@polya.stanford.edu)