LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   df reporting negative disk size??? (https://www.linuxquestions.org/questions/linux-hardware-18/df-reporting-negative-disk-size-227513/)

rimcrazy 09-06-2004 09:46 PM

df reporting negative disk size???
 
Been setting up a number of systems and just noticed that on my main desktop my system thinks the windows partition on my drive has a negative disk size.

dilbert:~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 37165196 18690976 18474220 51% /
tmpfs 518296 20 518276 1% /dev/shm
/dev/sda1 8947448 7040 8940408 1% /windows/D
/dev/hda1 117157472 -590295810358704153728 118655456 101% /windows/C

For some reason a small partition (hda2) that should have been setup in the fstab is now missing.

dilbert:/etc # cat fstab
/dev/hda3 / reiserfs acl,user_xattr 1 1
/dev/hda2 /data1 auto noauto,user 0 0
/dev/hda1 /windows/C vfat users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/sda1 /windows/D vfat users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/hda5 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0

Everything seems to run fine and the hda2 partition was a small partition that I accidently left
in on the original build. Don't use it for anything so I don't really need it. Just very strange that it is now gone. I'm just concerned that something will get hosed. I'm already getting warnings from YaST everytime I do an update telling me the disk has negative space. Hmm...guess I've discovered a negative entropy drive!

Any clues would be appreciated.

Phil

enyawix 09-06-2004 11:23 PM

Try df -h; but it looks like you just found a bug in the kernel's handeling of vfat, or a bug for df.

rimcrazy 09-07-2004 10:08 AM

Tried that but it does not fix anything. I'd like to get this fixed without having to reformat the drive. I use this drive as a samba share to store common data and from the linux side it won't allow me to write because it thinks the drive is full.

Phil


All times are GMT -5. The time now is 01:49 PM.