Results 1 to 3 of 3

Thread: 83% of / full (it does include home somehow even it is on separate parition, probably)

  1. #1
    Join Date
    Apr 2013
    Location
    Modra, Slovakia
    Posts
    265

    Default 83% of / full (it does include home somehow even it is on separate parition, probably)

    Code:
    du -sh .snapshots/
    221G .snapshots/ -but that's ******** cause my / partition've only 26G

    Code:
     df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda6        26G   21G  4.4G  83% /
    devtmpfs        1.9G   48K  1.9G   1% /dev
    tmpfs           1.9G   92K  1.9G   1% /dev/shm
    tmpfs           1.9G  4.1M  1.9G   1% /run
    tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
    tmpfs           1.9G  4.1M  1.9G   1% /var/lock
    tmpfs           1.9G  4.1M  1.9G   1% /var/run
    /dev/sda7        28G   14G   12G  54% /home
    /dev/sda12      585M   89M  454M  17% /boot
    /dev/sda1       197G   95G   92G  51% /run/media/robert/data
    Code:
     cd / && du -sh *
    4.5M    bin
    89M     boot
    140K    dev
    25M     etc
    14G     home
    380M    lib
    16M     lib64
    0       lost+found
    0       media
    0       mnt
    0       opt
    du: cannot access ‘proc/5491/task/5491/fd/4’: No such file or directory
    du: cannot access ‘proc/5491/task/5491/fdinfo/4’: No such file or directory
    du: cannot access ‘proc/5491/fd/4’: No such file or directory
    du: cannot access ‘proc/5491/fdinfo/4’: No such file or directory
    0       proc
    0       read-write
    1.3M    root
    du: cannot access ‘run/user/1000/gvfs’: Permission denied
    95G     run
    10M     sbin
    0       selinux
    25M     srv
    0       sys
    8.0K    tmp
    3.5G    usr
    569M    var
    13.2 KDE 64bit tumbleweed
    Lenovo G500s, Thinkpad R500

  2. #2

    Default Re: 83% of / full (it does include home somehow even it is on separateparition, probably)

    Using 'du' directly on the .snapshots directly is counting everything in
    those snapshots which could all be pointing to the same data over and
    over. 'du' is not the best way to do this, though I think btrfs has tools
    for calculating true used space. Anyway, this is why snapshots are neat,
    because they are using the same space over and over when nothing has
    changed, and you can access any single snapshot and see a full picture of
    everything instead of just diffs from other snapshots.


    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: 83% of / full (it does include home somehow even it is on separateparition, probably)

    On 2014-02-17 12:26, roberto68 wrote:
    >
    > Code:
    > --------------------
    > du -sh .snapshots/
    >
    >
    > --------------------
    > 221G .snapshots/ -but that's ******** cause my / partition've only
    > 26G


    You are using btrfs, and old tools like 'du' do not handle it well. It
    is like counting hardlinks of the same file many times.

    And no, if home is on a separate partition, it is not counted.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

Posting Permissions

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