Find the answer to your Linux question:
Results 1 to 3 of 3
Is there a way to copy of the contents of a hard disk and preserve file creation and modification dates and times? I don't think dd would work as it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Posts
    14

    Question High-level image/copying of hard disk, preserving file meta data?


    Is there a way to copy of the contents of a hard disk and preserve file creation and modification dates and times?

    I don't think dd would work as it does a raw read/write.

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    dd uses direct bit for bit copying, and the disk can be treated as one file so no modification is made to the contents. It will certainly work though if it's not a hard disk image, and you just want to preserve file metadata you can use tar. Tar is pretty much the standard archiving tool in all unix systems and will preserve all modification dates.

  3. #3
    Just Joined!
    Join Date
    Feb 2006
    Posts
    14
    Thanks for the reply.

    Supposing I were doing this for an NTFS Windows partition, could I tar the whole entire filesystem like this and restore it without a problem? I think tar does not preserve permissions though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •