From dhesi@rahul.net Sun Feb 27 22:20:52 2000 Received: from waltz.rahul.net (postfix@waltz.rahul.net [192.160.13.9]) by sir-alan.chem.indiana.edu (8.9.3/8.9.3) with ESMTP id WAA72553 for ; Sun, 27 Feb 2000 22:20:52 -0500 (EST) (envelope-from dhesi@rahul.net) Received: by waltz.rahul.net (Postfix, from userid 104) id 3C6D199E06; Sun, 27 Feb 2000 19:20:49 -0800 (PST) To: Mike Squires Subject: Re: disk repair on SunOS In-reply-to: Message from Mike Squires of Sat, 26 Feb 2000 21:04:22 -0500 (EST) Date: Sun, 27 Feb 100 19:20:48 -0800 From: Rahul Dhesi Message-Id: <20000228032049.3C6D199E06@waltz.rahul.net> Thanks. I hope you will cc freebsd-stable@freebsd.org so others may benefit from your comments. Rahul > Date: Sat, 26 Feb 2000 21:04:22 -0500 (EST) > From: Mike Squires > To: Rahul Dhesi > Message-Id: <200002270204.VAA46836@sir-alan.chem.indiana.edu> > Subject: Re: disk repair on SunOS > > - Could FreeBSD do it too? > > > > bad144(?) does something similar but if I remember correctly the partition > has to be set up with bad144 in mind. > > I have source to a FBSD 1.x version which scans a disk for bad blocks and > then maps them to the backup blocks; necessary with an old ESDI disk. > > This adds an "s" option for scanning. > > With a SCSI disk it should be able to write a program which accesses the > disk controller and causes it to use one of its spare blocks for the bad > block. I suspect that there might be such utilities that ran under some > other OS (like the old Adaptec SCSICNTL or the newer EZ-SCSI) > which might do this. > > You can also use a bit copy program to > (1) back up the disk to a file (2) low level format (3) restore > the disk (much more tedious). > > I've done this in our environment to replace a disk in a RAID 0 stripe set > by using Ghost (Norton) to create an image of a disk (running under MS-DOS > with network drivers) on a server, then replace the drive, low level format, > and then copy the image back. I assume dd would also work, but I didn't > have time to experiment. > > Mike Squires ----- End of forwarded message from Rahul Dhesi ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message