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

df and du contradict



hi

i opened up the case of my trusty home server and found an old Maxtor HDD in it, wired for power but not on the IDE bus. Seeing as I was running out of space on wd0a (my only non-swap partition) i decided to add it to the system.

fdisked it ok, disklabeled it ok, newfs ok, then started using cpio to copy the files from /usr to my new /mnt/usr with a view to migrating it completely...

but it failed with a full file system, which seemed strange as the drive should have been 50M bigger than /usr.

So I did some digging and came up with the following highly contradictory statements from df and du:

bash-2.04# df -h
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/wd0a     503M   451M    27M    94%    /
/dev/wd1a     213M   213M -10.6M   105%    /mnt/usr
/dev/wd1b      36M   1.0K    35M     0%    /mnt/var
bash-2.04# du -h -s /usr
193M    /usr
bash-2.04# du -h -s /mnt/usr
106M    /mnt/usr
 
I'm guessing a disklabel problem here, but a pointer to the right answer would be helpful.

thanks

cp

-- 
Colonel_PanicNOSPAM_(_at_)_fnmail_(_dot_)_com

Visit your host, monkey.org