disk partitioning (was Re: really weird filesystem problem)

Phil Farrell farrell at pangea.Stanford.EDU
Fri May 3 04:14:30 AEST 1991


In article <JTKOHL.91May1105340 at quicksilver.MIT.EDU> jtkohl at MIT.EDU (John T Kohl) writes:
>In article <1005 at aerodec.anu.edu.au> tridge at aerodec.anu.edu.au (Andrew Tridgell) writes:
>
>> Basically my questions to the net are :
>
>> 	- what caused the problem in the first case
>
>The symptoms you describe exactly match my experience from about 5 years
>ago with a 4.2BSD filesystem.
>
>The 4.xBSD fsck wants to read its disk blocks in groups of 4.  The
>partition size you have (by default, unfortunately) is not a multiple of
>four.  When reading the last two blocks, fsck gets a short read and gets
>confused.
>
>John Kohl <jtkohl at MIT.EDU>

This brings up the issue of why Digital Equipment insists upon shipping
systems with unreasonable default disk partitioning.  I NEVER use the 
default partitions from DEC - if nothing else, they are never optimized
to be on cylinder group boundaries, as newfs would like, so they often 
end up wasting space - as much as a megabyte on a large partition.  Now
we hear of a more subtle problem with DECs default partitionings.  I would
like DEC to expend a little energy to carefully design its default 
disk partitions (both in the superblock (chpt) and in /etc/disktab) so
they fall on cylinder group boundaries.  Meanwhile, you can do it yourself.
Just remember that newfs wants to put 16 cylinders in a group, and using
the geometry information from /etc/disktab, compute disk partition boundaries
that fall on integral cylinder group boundaries.  Use chpt to change
the on-disk partition table to these more efficient boundaries on your new
disks (it will wipe out anything already on the disk).  For your system 
disk, when you boot the Ultrix installation tape, choose the "System Management"
option instead of Basic or Advanced installation, and you will get a 
"mini" UNIX with a Bourne shell and access to a few basic commands, 
including /etc/chpt.  You can then repartition your system disk, reboot
the installation tape, and do an Advanced Installation to use your new
custom partitions.

-Phil Farrell, Computer Systems Manager
Stanford University School of Earth Sciences
farrell at pangea.stanford.edu



More information about the Comp.unix.ultrix mailing list