Re: partition recovery question resolution

From: Andreas Dilger (adilger_at_clusterfs.com)
Date: 09/07/03

  • Next message: Nick Piggin: "Re: [PATCH] Minor scheduler fix to get rid of skipping in xmms"
    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/
    

  • Next message: Nick Piggin: "Re: [PATCH] Minor scheduler fix to get rid of skipping in xmms"

    Relevant Pages

    • Re: XFS: how to NOT null files on fsck?
      ... > confidential data and need to be zeroed) or previously part of the ... extents were unwritten. ... the recently freed blocks from the truncate so things appear to work ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0test-1 error while writing files to loopback UDF filesystem UDF-fs DEBUG fs/udf/balloc.c:19
      ... This time, the kernel did *NOT* log any of the messages as it did with test1, ... if I compare the original with the new file, ... truncate is an utility which is available on most BSD systems (not mac ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RO --bind mount implementation ...
      ... > Umm... ... the most obvious system call that should care about ... lookup_createmodifications, truncate is something ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Non-GPL export of invalidate_mmap_range
      ... and still needs shot down on truncate(). ... > Exactly, and we ought to take this opportunity to do that properly, which is ... I'm just curious how GPFS deals with this issue, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Is there a "make hole" (truncate in middle) syscall?
      ... but doesn't truncate do almost exactly what "make hole" is supposed to ... > A stupid implementation would still help for some workload (few, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)