hello list I wanted to delete some unnecessary data from one of my systems (running SuSE 9.2) so I decided to do "du -h" on whole /. filesystem and check which directories are free_space_eaters. I redirected output to file because I did it remotely and didn't wanted to watch all those filenames running in front of mu eyes. HDD in machine is an 40GB ATA and it took about 30 minutes (I haven't counted) to complete calculating occupied space. generated file was about 5.7MB big. so I didn't want to edit it and I did just tail on it... and I couldn't belive: ---- snip ----- 2.2G ./export/home 2.2G ./export 2.1T . WHOLE 2.1 TeraBytes on my 40GB HDD :-) amazing :) so I got curious what's messed up and decided to load file with vi and did some searching in it /T\t and I found this line 2.1T ./var/cache/man/opt OK, let's go there: #cd /var/cache/man/opt #du -h ----snip---- 0 ./cat1 0 ./cat2 0 ./cat3 0 ./cat4 0 ./cat5 0 ./cat6 0 ./cat7 0 ./cat8 0 ./cat9 0 ./catn 2.1T . all subdirs were 0 counted #ls -la --- snip --- directories going here ----- -rw-r--r-- 1 man 31370 2005-03-07 04:15 index.db -rw-r--r-- 1 root 0 2004-11-24 04:16 whatis #du -h index.db 32K index.db ok, let's check other one: #du -h whatis 2.0T whatis so... "whatis" messed up my counters :) well, that machine was an SuSE Frankenstein that's being upgraded each time new version comes out since 7.x now, I checked my home 9.2 fresh installed and there was no whatis file in directory ok, have various versions at work so I'm sshing/telnetting to them to check their status regarding strange terabytes... 7.1 nothing. 8.1 nothing.. 8.2 nothing... 9.0 nothing.... 9.1 nothing..... another 9.2 nothing and I'm giving up finally cheers Aidin
On Monday 07 March 2005 22:51, Aidin Alihodzic wrote:
ok, let's check other one: #du -h whatis 2.0T whatis
so... "whatis" messed up my counters :)
wow. How about du -h --apparent-size whatis Did you try running an fsck on the file system? Sounds like something very weird is going on
On Monday 07 March 2005 17:35, Anders Johansson wrote:
On Monday 07 March 2005 22:51, Aidin Alihodzic wrote:
ok, let's check other one: #du -h whatis 2.0T whatis
so... "whatis" messed up my counters :)
wow. How about
du -h --apparent-size whatis
Did you try running an fsck on the file system? Sounds like something very weird is going on
I saw something similar on the lost&found. It seems that the space is preallocated but not actually used. For lost& found it was explained that having a space preallocated makes it easier to use it when in trouble than having to find space then. There was also a mention about directories not reclaiming unused space. On my machine It said it was 2 gig but it was only a 170 meg drive. -- Collector of vintage computers http://www.ncf.ca/~ba600 Machines to trade http://www.ncf.ca/~ba600/trade.html Open Source Weekend http://www.osw.ca
well, some options (like --apparent-size) showed 0 size I loaded it in editor, and it was empty I moved it to another file, and it showed 2T size I'm sorry because I didn't do more tests like copy and edit/save and checked i-nodes before I removed it, but it's too late now :) On Mon, 7 Mar 2005, Anders Johansson wrote:
On Monday 07 March 2005 22:51, Aidin Alihodzic wrote:
ok, let's check other one: #du -h whatis 2.0T whatis
so... "whatis" messed up my counters :)
wow. How about
du -h --apparent-size whatis
Did you try running an fsck on the file system? Sounds like something very weird is going on
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (3)
-
Aidin Alihodzic
-
Anders Johansson
-
Mike