LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 09-06-2004, 10:46 PM   #1
rimcrazy
Member
 
Registered: Dec 2003
Location: Overgaard, AZ
Distribution: Suse 10.0, FC5, RHEL4
Posts: 32

Rep: Reputation: 15
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
 
Old 09-07-2004, 12:23 AM   #2
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 396

Rep: Reputation: 32
Try df -h; but it looks like you just found a bug in the kernel's handeling of vfat, or a bug for df.
 
Old 09-07-2004, 11:08 AM   #3
rimcrazy
Member
 
Registered: Dec 2003
Location: Overgaard, AZ
Distribution: Suse 10.0, FC5, RHEL4
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restored backup, now new root partition reporting wrong size. wackman Linux - Software 6 05-28-2005 03:24 AM
df not reporting correct size. mdarby Slackware 2 11-10-2004 08:36 AM
/dev/hda2 negative size? yozd Linux - Hardware 4 07-24-2004 09:41 PM
Mandrake incorrectly reporting HD size ZidanaX Mandriva 4 09-05-2003 03:49 AM
df not truly reporting disk free space, why? mark_umr Linux - General 8 12-23-2002 12:20 AM


All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration