Date: Mon, 27 Sep 2004 14:25:09 -0600 (MDT) From: Doug Russell <drussell@saturn-tech.com> To: John Von Essen <john@essenz.com> Cc: freebsd-hackers@freebsd.org Subject: Re: hacking SCO.... Message-ID: <20040927142120.K49857-100000@mxb.saturn-tech.com> In-Reply-To: <20040927141316.L49857-100000@mxb.saturn-tech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Oh, I love replying to my own posts.... :) On Mon, 27 Sep 2004, Doug Russell wrote: > Try adding conv=sync,noerror to your dd line. If most of the data > after the defect(s) can be read, you'll end up with an almost complete > partition which will likely run. You can then fsck and restore from tape. > > for example, > > dd if=/dev/daX of=/dev/daY conv=sync,noerror bs=128k Actually, remove the bs=128k from above (force of habit). When you're trying to recover a disk like this, you want the block size to be single sectors (bs=512, the default) so you get every sector that is readable. It's slower, but it'll get you a more complete copy if it only skips 1 sector on an error instead of 256. :) If you know the defects are only in a certain range, you can get creative with the skip directives to dd and copy most of the disk in larger blocks, and go back and do the bad part one sector at a time (very handy when recovering today's large IDE disks). See the dd(1) manpage for more info. Later...... <Doug>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040927142120.K49857-100000>