Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] file system usage?
Istvan Gabor composed on 2017-06-13 15:14 (UTC+0200):
I have to identical partitions I formatted with the same tool.
I copied everything from one partition to the other still
the file system usage is different. Why?
rsync -a /mnt1/ /mnt2
Interestingly the file systems usage is not the same for
the two partitions (part7 is mnt1, part8 is mnt2):
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc7 28G 6.1G 21G 24% /mnt1
/dev/sdc8 28G 6.7G 20G 26% /mnt2
Why is this difference?
man rsync tells you:
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
-H, --hard-links preserve hard links

My reading is unless you preserve hard links, you get at least two separate
files on the target for each hard linked file on the source. So if you really
want a clone, either clone, or use rsync -aHAX.
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata ***

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >