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 04-12-2005, 06:08 PM   #1
Mathieu_G
LQ Newbie
 
Registered: Nov 2004
Distribution: SuSE Linux 7.3 (PPC), Red Hat 7.2, Best Linux 2000 (Intel x86)
Posts: 10

Rep: Reputation: 0
df reports wrong disk usage


I began rescuing data from a 35 GB ext3 filesystem on a damaged hard drive by copying the corresponding device file with dd_rhelp, in order to obtain a disk image.

Unfortunatly, the drive I used didn't have enough space to hold both the log file, which permits dd_rhelp to manage dd_rescue and to resume its job, and the image. So, I had to stop dd_rhelp as it couldn't write anymore to the sane drive. The problem is that the disk image file is about 35 GB, but df reports only 3.7 GB used on the drive!

I got a bigger drive, and as I would like not to restart the recovery from the beginning, I copied the log and disk image files onto it. It seems both files were copied properly, but df still reports a wrong disk space usage on the new drive: 2.3 GB now, and of course the disk image file has still the same size (about 35 GB).

I'd like to know if I don't need to bother about what df says.

Thanks in advance,

Mathieu
 
Old 04-13-2005, 09:57 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
How is inode usage?
df -i
 
Old 04-13-2005, 01:48 PM   #3
Mathieu_G
LQ Newbie
 
Registered: Nov 2004
Distribution: SuSE Linux 7.3 (PPC), Red Hat 7.2, Best Linux 2000 (Intel x86)
Posts: 10

Original Poster
Rep: Reputation: 0
Right now, I can't tell you, as I use another computer to access the hard drive.

I'll have a look at it. But, do you have any idea how it should look like in my case?
 
Old 04-13-2005, 02:06 PM   #4
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
If you have 100% inodes used then it doesn't look good...
It looks just like a normal df screen but will tell you the number of inodes used instead of file space.
 
Old 04-13-2005, 02:44 PM   #5
Mathieu_G
LQ Newbie
 
Registered: Nov 2004
Distribution: SuSE Linux 7.3 (PPC), Red Hat 7.2, Best Linux 2000 (Intel x86)
Posts: 10

Original Poster
Rep: Reputation: 0
OK. For the "df -i" output, I had already tried on my laptop I'm using right now.

I guess for a 35 GB file (in fact, it's a little bit more), I should have 35*1024/4=8960 inodes used just for the file (I've formatted the 80 GB disk using one inode per 4 megabytes in ext2), plus a little bit more.

If the number of used inodes is correct, does this mean everything is all right?
 
  


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
cedega game install reports wrong disk space fatbastige Linux - Software 2 09-20-2005 08:19 AM
Rename/VI/Awstats Reports Usage nistelrooy Linux - General 7 07-16-2005 09:02 PM
USB external Disk reports wrong size alans Linux - Hardware 1 03-17-2005 08:57 AM
Login reports wrong kernel mdarby Slackware 10 11-28-2004 08:20 PM
SCSI-controller reports wrong disk size Gardener Linux - Hardware 2 08-13-2002 08:23 PM

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

All times are GMT -5. The time now is 11:18 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