Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!uunet!stanford.edu!morrow.stanford.edu!pangea.Stanford.EDU!farrell From: farrell@pangea.Stanford.EDU (Phil Farrell) Newsgroups: comp.unix.ultrix Subject: disk partitioning (was Re: really weird filesystem problem) Message-ID: <1991May2.181430.4489@morrow.stanford.edu> Date: 2 May 91 18:14:30 GMT Article-I.D.: morrow.1991May2.181430.4489 References: <1005@aerodec.anu.edu.au> Sender: news@morrow.stanford.edu (News Service) Organization: Stanford Univ. Earth Sciences Lines: 41 In article jtkohl@MIT.EDU (John T Kohl) writes: >In article <1005@aerodec.anu.edu.au> tridge@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 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@pangea.stanford.edu