forumisto
Posts: 387
Joined: Fri Mar 16, 2012 8:41 am

space used

Thu Sep 08, 2016 8:27 pm

Hello

I have a question about the space used in /dev/sda1 mounted as /

With "df -h" uses 1,9G, but with "du / -h -d 1" uses 1,2G

with df -h

Code: Select all

/dev/root        3,0G   1,9G  975M  66% /
devtmpfs          55M      0   55M   0% /dev
tmpfs             12M   380K   12M   4% /run
tmpfs            5,0M      0  5,0M   0% /run/lock
tmpfs             24M      0   24M   0% /run/shm
/dev/mmcblk0p1    56M    20M   36M  36% /boot
with du / -h -d 1

Code: Select all

0	/dev
9,6M	/boot.bak
20M	/boot
122M	/lib
16K	/tmp
4,0K	/selinux
178M	/var
4,0K	/srv
41M	/opt
0	/sys
6,3M	/sbin
727M	/usr
82M	/home
16K	/lost+found
5,2M	/bin
4,2M	/etc
380K	/run
0	/proc
1,6G	/media
4,0K	/mnt
84K	/root
2,8G	/
/media is in other filesystem.

Any idea?

Thank you

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: space used

Thu Sep 08, 2016 9:13 pm

forumisto wrote:Hello
with du / -h -d 1

Code: Select all

20M	/boot
1,6G	/media
/media is in other filesystem.
Your du appears to be including /boot and /media which are other filesystems as you said. From memory I think there might be a flag (possible -x) that limits du to not crossing filesystem boundaries. 'man du' will give you all the detailed documenation.

Return to “General discussion”