Re: partition recovery question resolution
From: Andreas Dilger (adilger_at_clusterfs.com)
Date: 09/07/03
- Previous message: John Yau: "Re: [PATCH] Minor scheduler fix to get rid of skipping in xmms"
- In reply to: Aaron Dewell: "partition recovery question resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 7 Sep 2003 03:02:24 -0600 To: Aaron Dewell <acd@woods.net>
On Sep 06, 2003 23:43 -0600, Aaron Dewell wrote:
> Doing a dd back to the disk with a short file shouldn't
> affect anything past the end of the file, right? Therefore, there would have
> had to have been some kind of condition whereby the file got truncated while a
> dd was going on, and for some reason, it started writing zeros instead of
> stopping.
That's a common pitfall of dd. It will truncate regular output files unless
you use "conv=notrunc". If you are writing to a block device it obviously
can't truncate the device so you don't notice it unless you are trying to
dd over an existing file.
Cheers, Andreas
-- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: John Yau: "Re: [PATCH] Minor scheduler fix to get rid of skipping in xmms"
- In reply to: Aaron Dewell: "partition recovery question resolution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|