Re: df -h shows ~10 times bigger size when umounting pendrive

David Newall
2009-03-22T06:47:23Z

Arkadiusz Miskiewicz wrote:
> While umount was running and data were synced on the
> pendrive df -h showed:
>
> [arekm@t400 ~]$ df -h
> System plik�w rozm. u�yte dost. %u�. zamont. na
> /dev/sda3 9,6G 4,2G 5,5G 44% /
> /dev/sdb1 9,6G 4,2G 5,5G 44% /media/floppy
>

This looks to me like a race between umount and df. By the time df had
read mtab (to find the mounted filesystem), the pen drive had already
been unmounted; but umount hadn't yet updated mtab. It's a pretty
trivial sort of fault, and not worth worrying about.