From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,e44fbb83db239c58 X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,e44fbb83db239c58 X-Google-Attributes: gid1164f8,public From: Gulnara Ajupova Subject: Re: bad blocks on disk Date: 2000/10/24 Message-ID: <39F5F61F.C2616141@cyclotronmail.tamu.edu>#1/1 X-Deja-AN: 685395788 Content-Transfer-Encoding: 7bit References: <39F59CEE.F2CA6374@cyclotronmail.tamu.edu> <8t4jgs$af5$1@mailint03.im.hou.compaq.com> X-Accept-Language: en, ru Content-Type: text/plain; charset=us-ascii Organization: Cyclotron Institute Mime-Version: 1.0 Reply-To: g-ajupova@tamu.edu NNTP-Posting-Date: 24 Oct 2000 20:50:40 GMT Newsgroups: comp.sys.dec,comp.unix.ultrix "Alan Rollow - Dr. File System's Home for Wayward Inodes." wrote: > > In article <39F59CEE.F2CA6374@cyclotronmail.tamu.edu>, Gulnara Ajupova writes: > > > >Would someone know (and share the knowledge) how to remap bad blocks on > >the disk? > > > >I have had the SCSI disk crash (/users) on a DECstation 5000/200 > >running Ultrix. > > What version of ULTRIX. Later versions (V4.3A and there-abouts) > support scu(8), which allows access to the SCSI Reassign Block > command with its "reassign lba" command. On older versions you > can use rzdisk with the -r option. I have Ultrix4.4. I ran rzdisk -r block /dev/rrz* and it sounded like it failed, but the second attempt showed that the blocks were actually replaced. I also did the scanning for bad blocks with the same rzdisk utility before I tried to repair them (just to see if any more sprang up). And I am doing fsck on it right now. Thanks a lot! > > If the driver had managed to read a good copy of the data on one > of its many retries, it would have replaced the block for you > and written the new block with the good data. So, wherever the > block is, it has corrupt data. If fsck(8) is noticing the > blocks then they're at least in the file system metadata space; > cylinder group blocks, inodes, etc. Fsck(8) doesn't read user > data. > > Once you fix those blocks, you'll need to run fsck again and > see what's broken, note the files affected and use other tools > to determine the full extent of the damage. Some files may > be lost, others may simply end up being misplaced (in lost+found). > > You'll also want to scan for more bad blocks in the file data > area. Both scu(8) and rzdisk(8) have this feature. If the > disk isn't getting any better, then you may not be able to > fix the blocks faster than new ones go bad. If that's the > case see if the conv=noerror option of dd(1) will let you > skip over bad blocks. > > > >Please help! > >-- > > Gulnara Ajupova > >----------------------------------------------------------------------------- > > gulnara@cyclotronmail.tamu.edu // Phone (979) 845-1411 // Fax (979) > >845-1899 > > > >3366 Cyclotron Institute, Texas A&M University, College Station, TX > >77843-3366 > >----------------------------------------------------------------------------- > > > -- > Alan Rollow alan@nabeth.cxo.dec.com -- Gulnara Ajupova ----------------------------------------------------------------------------- gulnara@cyclotronmail.tamu.edu // Phone (979) 845-1411 // Fax (979) 845-1899 3366 Cyclotron Institute, Texas A&M University, College Station, TX 77843-3366 -----------------------------------------------------------------------------