[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where is my disk space



On Sun, Aug 04, 2019 at 09:37:12AM +0000, Long Wind wrote:
>  thank!  i enter "du -sh /home", it's 5.8G. it's unbelievable

You mean: it is more than you expected? If so, you can try

  du -sh /home/*

to see which subdirectory holds the biggest chunk, and slowly
work your way down the directory tree (note: this will exclude
the dot files and directories, because the glob ("*") doesn't
include them, at least usually. If you suspect one of those,
better do

  du -sh $(ls -A /home)

or something similar)

> i enter "df -h"Filesystem      Size  Used Avail Use% Mounted on
> udev            1.5G     0  1.5G   0% /dev
> tmpfs           298M  4.5M  293M   2% /run
> /dev/sda2       9.8G  9.3G     0 100% /......
> 
> 0.5 G seems missing

Others have chimed in with good ideas. First, 0.5G seems reasonable
for "file system internal use" -- inodes, possibly journal, etc.

On my box:

  tomas@trotzki:~$ sudo du -sh /home
  [sudo] password for tomas: 
  368G    /home
  
  tomas@trotzki:~$ df -h
  Filesystem                Size  Used Avail Use% Mounted on
  [...]
  /dev/mapper/trotzki-home  640G  368G  241G  61% /home

That's (368 - 241) / 368 -- around 35 percent (it's an ext4 file system).

Cheers
-- tomás

Attachment: signature.asc
Description: Digital signature


Reply to: