LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2004, 07:05 AM   #1
tsiuser
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
101% disk usage on an empty disk


I have a 240 GB disk (3-80GB disk striped) in vxWorks. vxWorks exports this disk as /raid0. I have a linux box that nfsMounts the disk. If the disk is entirely empty and I do a df -k, the results come back 101% used. If I start writing to the disk, it will come back with the correct % full. I'm not sure how much I have to write to the disk in order for it to report the correct % used. A df -k also displays a HUGE negative number under the used column. If I do a df -h, the used column is -1.0Y??? How can I get df to display the correct information.....when the disk is empty 0%.....

Thanks,
Keith
 
Old 01-28-2004, 04:11 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"How can I get df to display the correct information.....when the disk is empty 0%....."

Try writing a file to the disk and then deleting the file. Maybe that will finish initializing the usage information on the disk.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 01-28-2004, 05:12 PM   #3
tsiuser
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I tried copying a file with size of about 2.5 Meg. When the file was there, the % used displayed 1% when a df -k was done. I then deleted the file and it went back to the negative numbers and also the 101% used when I did a df -k
 
Old 01-28-2004, 06:24 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
I would call this problem a bug in df. You could report it to:

bug-coreutils@gnu.org

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing linux on empty hard disk lngmn7 Linux - Networking 4 04-15-2005 06:24 AM
LQ disk usage student04 LQ Suggestions & Feedback 4 10-24-2004 09:35 PM
Disk Usage karan101 Linux - Software 8 10-17-2004 03:59 AM
101% disk used on an empty disk tsiuser Linux - Networking 1 01-29-2004 01:33 PM
Disk Usage LinuxTiro Linux - Newbie 6 09-03-2003 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 PM.

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