Forum
[SOLVED] 100% disk space in use (even after deleting some files) - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [SOLVED] 100% disk space in use (even after deleting some files) (/thread-2328.html)



100% disk space in use (even after deleting some files) - josch - 4th Jun, 2014 03:38 AM

Hey guys,

the root partition of my SD card was 100% in use, because I had accidently downloaded a large file to /home.
But the strange thing on this is, that the space didn't come available again after deleting the file.

Confused

Code:
xbian@xbian ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          3.5G  3.2G   16K 100% /
/dev/mmcblk0p2  3.5G  3.2G   16K 100% /
devtmpfs        187M  4.0K  187M   1% /dev
none             38M  140K   38M   1% /run
/dev/mmcblk0p1   34M   22M   13M  63% /boot
/dev/mmcblk0p2  3.5G  3.2G   16K 100% /home
/dev/mmcblk0p2  3.5G  3.2G   16K 100% /lib/modules
overflow        1.0M     0  1.0M   0% /tmp
/dev/mmcblk0p2  3.5G  3.2G   16K 100% /xbmc-backup


But:
Code:
xbian@xbian ~ $ sudo du -hs /
1.7G    /

Huh


Thanks for any kind of input!


RE: 100% disk space in use (even after deleting some files) - belese - 4th Jun, 2014 07:32 AM

it's because your file is always in btrfs snapshot,
there are 2 or 3 thread about deleting snapshot,
maybe check on the new wiki for command, i don't remember


RE: 100% disk space in use (even after deleting some files) - josch - 5th Jun, 2014 02:38 AM

Thanks for the hint, belese! Smile

The solution:
(13th Dec, 2013 11:03 AM)mk01 Wrote:  
Code:
sudo -i
btrfs-auto-snapshot list | grep -v /@$ | grep auto-snap | xargs -L1 btrfs-auto-snapshot destroy



RE: 100% disk space in use (even after deleting some files) - CurlyMo - 5th Jun, 2014 03:08 AM

Nice one for the wiki Smile


RE: 100% disk space in use (even after deleting some files) - josch - 5th Jun, 2014 06:43 PM

(5th Jun, 2014 03:08 AM)CurlyMo Wrote:  Nice one for the wiki Smile

I've rewritten the snapshot wiki page (except the intro) and also added the part for removing snapshots. Wink

http://wiki.xbian.org/doku.php/snapshots


btw: Is there a reason why the other pages don't use headlines? I think it should be standard to use them for a better overview and of course for the table of contents too. And if we would use just italic tags for headlines, we can't use it anymore in the text - or it could become confusing.


RE: 100% disk space in use (even after deleting some files) - CurlyMo - 6th Jun, 2014 05:47 AM

I just did a quick copy from the old wiki to the new one. The idea is that everyone can edit it and thereby improve it. Thanks for your input!


RE: 100% disk space in use (even after deleting some files) - josch - 6th Jun, 2014 06:55 AM

Okay, nice! Smile It's a great new wiki, I like the overview.
I've Updated the 'Updating XBian' Page this day earlier too.

Always good to have a place to look at for all kind of problems Wink