LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2003, 01:25 PM   #1
Caidence
LQ Newbie
 
Registered: Jul 2003
Location: NJ, US
Distribution: Debian
Posts: 15

Rep: Reputation: 0
Exclamation Spooky bad values from df


df is returning really bad values. Here, I'll show you:
Code:
[tachycardic:caidence]$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1            -2647926523368         1         0   9% /
/dev/hda2            -515486986193         1         0   1% /home
/dev/hdc1            -15106703008423         1         0  31% /var/ftp
[tachycardic:root]# df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/hda1            -2585865745         1         0   9% /
/dev/hda2            -503405260         1         0   1% /home
/dev/hdc1            -14752639657         1         0  31% /var/ftp
[tachycardic:root]# df.giga
Filesystem           1G-blocks      Used Available Use% Mounted on
/dev/hda1             -2525260         1         0   9% /
/dev/hda2              -491607         1         0   1% /home
/dev/hdc1            -14406875         1         0  31% /var/ftp
I am running a very simple, new, linux box (Debian 3.0 Woody).
hda1 and hda2 are simply enough ext2,
and hdc1 is a brand spanking new ext3, but it just took a lot of activity.

Also, mind you, according to the system, hdc1 is full, not at 31%

Could this be ext3's doing? Any clue?

Thanks,
Caidence
 
Old 11-20-2003, 05:48 PM   #2
meldroc
Member
 
Registered: Aug 2003
Posts: 102

Rep: Reputation: 15
That's very strange. I'm thinking that maybe df is screwed up somehow, but I wouldn't bet my data on that.

You might want to drop to emergency mode (a variety of single-user mode where the partitions are mounted read-only - boot with params "linux emergency" in LILO or GRUB), then run fsck on each partition to fix any corruption.

Other than that, if you have a bootable Linux CD (the Woody install CD should be good enough for this, try booting that, getting to a shell, mounting your partitions, and see if df works correctly on that setup.

Just in case df is screwed, you might try reinstalling df (and the other core utilities) with apt-get install --reinstall coreutils.

Other than that, you have me stumped.
 
Old 11-21-2003, 01:57 AM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
This can also happen if you chose a different inodes / blocks layout for your partitions.

Did you choose something other than default?

-Shade
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: wrong fs type, bad option, bad superblock on /dev/hdc3 Lordandmaker Linux - Hardware 15 06-05-2011 08:55 AM
mount: wrong fs type, bad option, bad superblock on /dev/cdrom, Adil_uk Linux - Hardware 9 02-16-2005 05:50 PM
Really spooky HadesThunder Linux - Newbie 5 04-19-2004 07:12 PM
mount: wrong fs type, bad option, bad superblock on /dev/sdb1 pmoreira Linux - Hardware 5 02-26-2004 10:31 AM
Spooky Samba... scottie Linux - Networking 1 11-27-2003 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:55 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
Open Source Consulting | Domain Registration