[comp.sys.dec] comp.sys.dec.micro

mrs@osupyr.mps.ohio-state.edu (Michael Robert Savage) (10/27/90)

Given below is a message that I received from DEC's Ultrix support. It's
about a KNOWN BUG in DEC's Ultrix Version 4.0. DEC has agreed to fix it
in the future but I was not told when. The "Work-Around" is to re-partition
your disk on 2048 Byte boundaries. This problem ONLY accurs with Ultrix
Version 4.0. It shows up as an error when you try to use fsck on your
file systems. fsck, on these file systems, will not work correctly but
will "abend" after Pass 2. 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- M. R. Savage                Systems Programmer/Administrator/Manager      -
-                             The Ohio State University                     -
- "If you look for the bad    Math Sciences Computing Laboratory            -
-  in people, expecting to    College of Mathematical and Physical Sciences -
-  find it, you surely will." Phone: (614)-292-5535                         -
-            Abraham Lincoln  E-Mail: mrs@osupyr.mps.ohio-state.edu         -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

============================================================================
Getting 'Can't Read Sector' Error When Running fsck On V4.0

 
PROBLEM:
 
After changing the size of a partition and re-creating the filesystem,
you get the error message "can't read sector" on the last two blocks 
of the partition when fsck is run on that partition.
 
 
OVERVIEW:
 
When the data area on the partition ends on a non 2Kb boundary and a fsck 
is run on the partition, you will get this error on the last two or three
blocks if some information (a file or a directory structure) exists on 
these blocks. This is due to the read system call expecting to read 2kb 
worth of data on every read and not actually reading 2kb worth of data.
 
 
SOLUTION:
 
The workaround is to answer "no" to the questions that fsck asks regarding 
the problem. Then follow the procedures from bad block replacement to 
find out what information is on these blocks. You then need to remove either
the file or directory structure that is found on these blocks, and
repeat the fsck operation on the partition. Afterwards, you can restore
the file or re-create the directory.
 
 
ADDITIONAL INFORMATION:
 
This problem will not be seen if the data area on a given partition ends
on a 2Kb boundary.
 
ULTRIX engineering is aware of the problem and we anticipate a fix in a future
release.