Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!isis!ico!dougp From: dougp@ico.isc.com (Doug Pintar) Newsgroups: comp.unix.sysv386 Subject: Re: Re^2: bad sectors Message-ID: <1990Oct15.190802.5046@ico.isc.com> Date: 15 Oct 90 19:08:02 GMT References: <12936@sdcc6.ucsd.edu> <1990Oct07.005212.20648@scuzzy.in-berlin.de> <1990Oct12.065629.28869@ctk1.UUCP> Reply-To: dougp@ico.ISC.COM (Doug Pintar) Organization: Interactive Systems Corp., Boulder CO Lines: 21 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 ' 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