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: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: bad blocks on disk Date: 2000/10/24 Message-ID: <8t4jgs$af5$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 685332341 Distribution: world References: <39F59CEE.F2CA6374@cyclotronmail.tamu.edu> X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 972411228 10725 16.82.16.67 (24 Oct 2000 18:13:48 GMT) Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Date: 24 Oct 2000 18:13:48 GMT Newsgroups: comp.sys.dec,comp.unix.ultrix 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. 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