Re^2: bad sectors

Doug Pintar dougp at ico.isc.com
Tue Oct 16 05:08:02 AEST 1990


In article <1990Oct12.065629.28869 at ctk1.UUCP> chris at ctk1.UUCP (Chris Old) writes:
>
>Alternatively use 'sysadm diskmgmt harddisk addbadblocks'. Or, just edit
>/etc/partitions.
>
>The changes only come into effect the next time you mount the
>partition/disk.

Editing /etc/partitions will NOT add a bad block to the disk!  /etc/partitions
is an INPUT file to 'mkpart' that is used to describe the way things should
be.  The safe way to do this is BOTH 'mkpart -A <sector>' AND updating
/etc/partitions (in case you have to rebuild things).  It's also a good idea
to keep a copy of your /etc/partitions file around somewhere in case you
have to completely rebuild your disk.  'sysadm addbadblocks' may do the first
two (haven't looked, but it SHOULD) but only you can do the last...

It IS the case that ALL the partitions on a disk must be unmounted and then
remounted (all off, then all back on, not one at a time...) before the alts
table is read again.  If one of the partitions is the root filesystem, the
system must be rebooted.
DLP



More information about the Comp.unix.sysv386 mailing list