LinuxQuestions.org
Visit Jeremy's Blog.
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 08-02-2005, 10:53 AM   #1
thepoint
LQ Newbie
 
Registered: Sep 2003
Location: Texas
Distribution: Mandriva LE 2005
Posts: 18

Rep: Reputation: 0
Unhappy Wrong partition size indicated


Hi -

I'm running Mandriva LE 2005. Yesterday, my machine hung solid. I gritted my teeth powered down, then brought the power back up. A few strange things happened, most of which I was able to fix. However, there is one problem with my hard drive (no kidding!). Running a WD 200GB hd

Drive is partitioned into /, /home, /usr, and /var (swaps there, as well as a few Gig for windoze.) This is the problem:

partmon
Warning, free space for </usr> is only <0> (which is inferior to <50000>

running du -s * > /home/paul/DUSAGE gives

259M bin
16K docs
4.0K etc
4.1M games
760K GNUstep
102M include
86M java
16M kdevbdb
1.7G lib
83M local
36M sbin
1.7G share
236M src
0 tmp
183M X11R6

and properties for /usr says:

Size: 3.7GB (4,022,104073)
'''
Mounted on /usr

Free disk space: 0.8 bytes left of 48.8GB (100% used)

I've run shutdown -Fr now and gone through the auto fsck, but received a message:

/dev/hda8: Unexpected Inconsistency
run fsck MANUALLY

I'm unsure what to do next.

I'd sure appreciate some pointers before I go truly beserk!

Thanks

Paul
 
Old 08-02-2005, 11:09 AM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
well this sound like bad data corruption. I recommend to backup (to another device! dvd, other hdd, etc...) in case it decides to go crazy.

First of all, look in /usr/lost+found (assuming your filesystem is etx2 or etx3). This is the folder where "corrupt" files goes. Is there something in there?
Then, take a look around in /usr. Do you have a LOT of small files around? Each files take an inode in the partition table, if you have too many files, your drive will be full (even if theer is some space available). This may happen in case of corruption.

The last chance step is to run fsck. Most of time, this blow up thing badly and your partition will be unrecoverable. But it works sometime. So BACKUP before trying this and only do it as a last chance try.
 
Old 08-02-2005, 09:21 PM   #3
thepoint
LQ Newbie
 
Registered: Sep 2003
Location: Texas
Distribution: Mandriva LE 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Talking

Well,

Egg is on my face! When I was checking /usr for files, I didn't see .Trash-0 until I turned view hidden files on.

Somehow that folder filled with some large files I'd deleted, and they wouldn't go away when I emptied the trash. Long story short Shift+Delete, and the problems were gone. (dragging them to the trash didn't work - drive full!)

Oh well, panic over.

Thanks for the help
 
Old 08-02-2005, 10:14 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
lol that's ok, we all had our PEBKAC case a day or another.
Glad it is fixed
 
  


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
Added second harddrive as a partition, but now the partition size is wrong.. mlsbraves Linux - General 5 08-17-2005 08:10 PM
Restored backup, now new root partition reporting wrong size. wackman Linux - Software 6 05-28-2005 02:24 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM
root partition shows wrong total size Dergro Linux - General 12 10-08-2003 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration