Search results

  1. L

    How to copy files and directories fully preserving nanosecond precision for timestamps

    Just discovered a solution for using tar to store/compress then extract preserving nanosecond precision using POSIX. When storing/compressing do: tar --format=posix -cvpf filename.tar directory-name-to-tar extract preserving nanosecond precision timestamps: tar --atime-preserve -xvpf...
  2. L

    Format partition as ext4 and setting overhead to 0%

    Need to format an external hard drive partition. It's not a system drive/partition so no system log files will be written to it. (who uses an external hard drive to write system log files anyway?) By default when you format a partition as ext4, the system reserves 5% of the disk space. So, only...
  3. L

    How to copy files and directories fully preserving nanosecond precision for timestamps

    Dug out my other external drive which has hard disk from old netbook computer. All partitions ext4. copied Music directory, subdirectory and files using 'cp': cp -ar ~/Music /media/old_netbook_drive/backup after copying issued: ls -la --time-style=full-iso output: [[email protected] Music]$ ls -la...
  4. L

    How to copy files and directories fully preserving nanosecond precision for timestamps

    same result as cp -ar when I do: rsync -avihXP ~/Music /media/ext_drive/backup/test to copy to external drive. Last two digits lost: drwxrwxrwx 2 k k 4096 2017-05-13 00:09:33.547625900 +0700 'Black Holes and Revelations'
  5. L

    How to copy files and directories fully preserving nanosecond precision for timestamps

    The last two digits are lost on copying to external drive. Here's why I did a test by copying (using cp -ar) the Music directory to ~/temp of the old computer. timestamps were preservered exactly. drwxrwxr-x 2 k k 4096 2017-05-13 00:09:33.547625987 +0700 Black Holes and Revelations...
  6. L

    How to copy files and directories fully preserving nanosecond precision for timestamps

    Did go through man page of cp then try various options. Pretty sure I tried --preserve. I'll try it again. If it's a no go, would I be able to boot using a usb live CD of newer distro.e.g. ubuntu 20.04 then use the cp command of that distro in single-use mode. Perhaps something worth trying?
  7. L

    How to copy files and directories fully preserving nanosecond precision for timestamps

    Purchased a new laptop recently, so need to copy files from old laptop to new. Used the tar command to create an archive, then copied the tar file across to external hard drive, afterwards copied the tar file from external drive to new laptop, then extracted archive on new laptop. Once...
Top