df says disk is full, but du does not

Ask questions about Arch Linux ARM. Please search before making a new topic.

df says disk is full, but du does not

Postby leonixyz » Sat Feb 17, 2018 6:06 pm

I run arch linux on a raspberry pi.

I have an usb disk attached, the disk has an udf filesystem and is used as storage for a torrent client.

Suddenly, the torrent client stopped working, and I noticed that the disk (/dev/sdb1) appears to be full

$this->bbcode_second_pass_code('', '
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.7G 2.5G 963M 73% /
devtmpfs 234M 0 234M 0% /dev
tmpfs 239M 0 239M 0% /dev/shm
tmpfs 239M 272K 239M 1% /run
tmpfs 239M 0 239M 0% /sys/fs/cgroup
tmpfs 239M 0 239M 0% /tmp
/dev/mmcblk0p1 120M 26M 95M 22% /boot
tmpfs 48M 0 48M 0% /run/user/1001
/dev/sdb1 2.8T 2.8T 0 100% /media/fatboy
')

It looks weird, because I didn't used up to 2.8T...

$this->bbcode_second_pass_code('', '
$ cd /media/fatboy
$ du -H

[...] # lots of directories

165G .
')

But event weirder is that the filesystem seems to have no inodes at all (this was my first try with udf)

$this->bbcode_second_pass_code('', '
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/root 244800 73373 171427 30% /
devtmpfs 59853 325 59528 1% /dev
tmpfs 61005 1 61004 1% /dev/shm
tmpfs 61005 385 60620 1% /run
tmpfs 61005 15 60990 1% /sys/fs/cgroup
tmpfs 61005 10 60995 1% /tmp
/dev/mmcblk0p1 0 0 0 - /boot
tmpfs 61005 11 60994 1% /run/user/1001
/dev/sdb1 0 0 0 - /media/fatboy
')

I have no idea what to do to free up space.
leonixyz
 
Posts: 1
Joined: Sat Feb 17, 2018 5:55 pm

Re: df says disk is full, but du does not

Postby graysky » Sun Apr 08, 2018 2:30 pm

For starters du and df are different utils. Consult google or respective manpages for specifics. No idea about udf. Does it have fsck support or some other check/repair util?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests