Calculating the size of /

Jim Byrnes jf_byrnes at comcast.net
Mon Sep 10 21:09:31 UTC 2012


On 09/10/2012 03:25 PM, Colin Law wrote:
> On 10 September 2012 21:16, Jim Byrnes <jf_byrnes at comcast.net> wrote:
>> On 09/10/2012 02:15 PM, Gilles Gravier wrote:
>>>
>>> Adding -x to du tells it so skip directories on different filesystems...
>>> Should give you what you want.
>>>
>>>> sudo du -shcx /
>>>
>>>
>>> Gilles.
>>>
>>>
>>
>> I don't have any other file systems that I know of except gvfs which to my
>> knowledge have never used..
>>
>>   sudo du -shcx /
>> du: cannot access `/home/xxx/.gvfs': Permission denied
>> 105G    /
>> 105G    total
>> $ du -shcx /home
>> 64G     /home
>> 64G     total
>>
>> Unless I used it wrong -x doesn't show anything different.
>
> What does df show?
>
> Colin


~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1            277554280 109573216 153882080  42% /
none                   3964004       288   3963716   1% /dev
none                   3968532       188   3968344   1% /dev/shm
none                   3968532       320   3968212   1% /var/run
none                   3968532         0   3968532   0% /var/lock
none                   3968532         0   3968532   0% /lib/init/rw
none                 277554280 109573216 153882080  42% 
/var/lib/ureadahead/debugfs


>>
>> Regards,  Jim
>>
>>>
>>> On 10/09/2012 21:03, Jim Byrnes wrote:
>>>>
>>>> In another thread I was trying to calculate how much disk space to
>>>> allocate to / if I did a fresh install and this time setup  a separate
>>>> /home partition.
>>>>
>>>> To get an idea of how much was outside of the home folder on my
>>>> present install I did:
>>>>
>>>> sudo du -shc /  =>  105GB
>>>> du -shc /home   =>  64GB
>>>>
>>>> This led me to believe I had 105GB - 64GB = 41GB that would be in /.
>>>>
>>>> Colin suggested I run Disk Usage Analyzer:
>>>>
>>>> Total filesystem capacity: 264.7GB(used: 104.5GB avail: 160.2GB
>>>>
>>>> /        100%        75.3GB
>>>> home        84.1%        63.3GB
>>>> usr        6.7%        5.0GB
>>>> var        5.8%        4.4GB
>>>> lib        2.1%        1.6GB
>>>> opt        1.0%        762.2MB
>>>> boot        0.3%        194.6MB
>>>>
>>>> Everything else was 0.0%
>>>>
>>>> So this seems to say that if I had a separate /home on this machine
>>>> that / would be 12GB not the 41GB calculated above.
>>>>
>>>> So what accounts for the difference of 29.2GB between the used of
>>>> 104.5GB and / of 75.3GB?
>>>>
>>>> The 12GB and 29.2GB = the 41GB I originally calculated would be needed
>>>> for /.  12GB seems to be more in line with what others reported as the
>>>> size needed for /.
>>>>
>>>> Regards,  Jim
>>>>
>>>>
>>>
>>
>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>






More information about the ubuntu-users mailing list