You are not logged in.

#1 2016-09-22 03:26:11

julesm
Member
Registered: 2014-07-29
Posts: 70

SOLVED what is the *real* size of home?

I was doing a backup with rsync when my destination drive ran out of space. It would seem that my home directory is roughly 40GB bigger than I had thought. When I use the following commands, they tell me that my home is 470GB:

in conky -->> ${fs_used /home/jules}
$ du -hs /home/jules
$ dh -h

BUT if I go to home/jules in 'file system' using thunar and right-click/properties on my home folder, I see that it's 511GB - which is the amount of space that rsync wanted to use on the destination drive.

So I'm trying to understand WHY there's this discrepancy...  I'm sure it's obvious but I've searched and couldn't find the explanation...  Please enlighten me.

Cheers,
Jules

Last edited by julesm (2016-09-29 15:04:30)

Offline

#2 2016-09-22 06:13:31

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: SOLVED what is the *real* size of home?

Perhaps it's because du defaults to powers of 1024 and not 1000. Try with

du -s --si

Offline

#3 2016-09-22 09:04:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: SOLVED what is the *real* size of home?

I don't think the ratio difference (1000/1024) accounts for the full 40 GB.  Do you have any symlinks in there that might be counted twice?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2016-09-22 09:16:33

ayekat
Member
Registered: 2011-01-17
Posts: 1,590

Re: SOLVED what is the *real* size of home?

$ dc -e '1k 470 1024 3 ^ * 1000 3 ^ / p'
504.6

Actually, there is only a 6.4 GB (SI) difference. I don't know how exactly Thunar handles links (soft/hard), but I agree with graysky: it might be possible that it counts stuff twice (as will rsync, unless you use `--links`).

You can find the symbolic links in your home directory with

find $HOME -type l

Last edited by ayekat (2016-09-22 09:17:17)


pkgshackscfgblag

Offline

#5 2016-09-29 15:04:15

julesm
Member
Registered: 2014-07-29
Posts: 70

Re: SOLVED what is the *real* size of home?

Thanks very much for the assistance. I had to go out of town before I could test but I had recently installed wine which I know uses lots of links - when I previously had nothing that used links and so that's got to be it. Am going to mark this solved and will verify as soon as I get back.  But thanks again for the help and sorry for the delay in getting back to you when you were prompt.  Very much appreciated!  Jules

Offline

#6 2016-10-03 23:07:13

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: SOLVED what is the *real* size of home?

[ tye@t: /tmp/kernel/linux-4.8 ]$ df -h | grep -E "/$"; du -hs --si /home/tye 2>/dev/null; du -hs --si /home/tye/Videos/
/dev/sdb4        99G   64G   31G  68% /
23G     /home/tye
1.2T    /home/tye/Videos/

it doesn't seem to follow links

Offline

Board footer

Powered by FluxBB