Date: Fri, 8 Aug 2003 10:30:05 +0200 From: =?ISO-8859-1?Q?Rapha=EBl_Marmier?= <raphael@computer-rental.ch> To: Richard Johnson <raj@cisco.com> Cc: freebsd-questions@freebsd.org Subject: Re: Question re. hard read errors Message-ID: <833CD204-C97A-11D7-A0DA-000393D67E4A@computer-rental.ch> In-Reply-To: <98C743C2-C92F-11D7-AA93-0003939711FE@cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Try using dd to grab all possible bits of that file: /bin/sh dd if=3D/path/tothe/file of=3D/path/to/newfile conv=3Dsync,noerror = >ddlog.txt=20 2>&1 you get the log of all errors and faulty blocks in ddlog.txt This will make a copy of the file with unreadable blocks converted to=20 blank. Then you should fix the compresssed archive with the proper=20 utility (although I don't know exactly how), then you should be able to=20= untar it. Maybe the information on which files where lost will even be=20= available. If it turns out you didn't loose that much, it will spare you the=20 effort to read the disk harder. In case you really lost damn imporant=20 stuff, you can send the disk to a data recovery company, but it costs=20 $$$$$$... Hope this helps Raphael Le Vendredi, 8 ao=FB 2003, =E0 01:33 Europe/Zurich, Richard Johnson a = =E9crit=20 : > I have a 1.5Gb file stored on a FreeBSD 4.8 disk drive and the system=20= > is giving me hard read errors when I try reading it. It appears as=20 > though this disk has a few bad blocks. :( Unfortunately, it's a=20 > compressed tar file and I (stupidly!) erased the file from the=20 > original computer before untar'ing it here and finding the errors! =20 > I'd like to recover as much as possible of this file before writing=20 > off the entire thing. > > I looked at /usr/src/sys/dev/ata/ata-disk.c and found the retry count=20= > was set to 3. I changed it to 10. After the first error (which is,=20= > indeed, reported 10 times) the system reports that it's going into PIO=20= > mode and I still hear the same amount of hammering on the drive after=20= > that and only one error message produced. > > Is there some way I can force the system to retry 10 or more times for=20= > each and every block? Maybe there's some other utility I can use=20 > which tries harder to read the blocks? > > ANY pointers to information would be greatly appreciated. > > /raj > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to=20 > "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?833CD204-C97A-11D7-A0DA-000393D67E4A>