[NTLUG:Discuss] re: linux filecopy
Steve Baker
sjbaker1 at airmail.net
Sat Dec 11 13:00:44 CST 2004
Fred wrote:
> On Fri, 2004-12-10 at 01:11 -0500, Kevin Korb wrote:
>
>>dd if=[badfile] of=[newfile] bs=1k conv=noerror
>
>
> Wouldn't that just pass the garbage from [badfile] to
> [newfile]? I mean, if there are disk errors (bad sectors,
> maybe?) causing the problem, won't the destination file also
> be scribbled? Or do I just not understand the concept?
It will of course not fix up any data errors on the disk - but
it will remove hardware errors so that everything is readable - even
if it's corrupted. FSCK can then clean up any broken directories
or whatever and make everything work again as a legal file system.
Obviously *some* files are going to end up being trashed - but
sections of the disk that were not hit by hardware faults should
be recoverable if dd could read them 'raw'.
---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1 at airmail.net> WorkEmail: <sjbaker at link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net http://tuxaqfh.sf.net
http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----
More information about the Discuss
mailing list