chris@ctk1.UUCP (Chris Old) (10/12/90)
src@scuzzy.in-berlin.de (Heiko Blume) writes: >jlodman@beowulf.ucsd.edu (Michael Lodman) writes: >>Is there a way to add bad sectors to the bad sector table in ISC >>Unix after the system has been installed? >mkpart -A <sector> ... >read the man page ten times before you do it. 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. -------------------- Chris Old (C.t.K.) | ddsw1!olsa99!ctk1!chris Tran Systems Ltd | olsa99!ctk1!chris@ddsw1.mcs.com If you have no reason for your opinion, change it.
dougp@ico.isc.com (Doug Pintar) (10/16/90)
In article <1990Oct12.065629.28869@ctk1.UUCP> chris@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