• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / General Linux questions / Re: Zeroing in on the disk hog on: May 23, 2009, 07:27:51 AM
Rabeeh,

Yes, right, I meant MB of course.

Here's what I'm seeing:

Code:
root@plug001:/# df -h /
Filesystem            Size  Used Avail Use% Mounted on
rootfs                507M  502M  5.2M  99% /
root@plug001:/# for i in *; do du -sk $i; done   2>/dev/null                 
4294    bin
80      boot
12      dev
1709    etc
6       home
11103   lib
0       media
1794457 mnt
0       opt
0       proc
274     root
3707    sbin
0       selinux
0       srv
0       sys
0       tmp
325765  usr
18188   var

Now, /mnt is where the external USB-HDD is mounted, so discounting that I count 327 MB.  Now my problem is, there's no accounting for the missing 175 MB. 

Also, while I understand your point about the filesystem using compression, isn't that sort of thing meant to be transparent at the user level?  Besides, I'm not able to store any more data:

Code:
root@plug001:/# touch abc
touch: cannot touch `abc': No space left on device

So I'm most definitely out of disk space... but where did it all go? 



2  Linux Stuff / General Linux questions / Zeroing in on the disk hog on: May 23, 2009, 12:44:41 AM
Running completely from NAND flash, I'm seeing a huge discrepancy between disk usage numbers from "df" and "du".  The former says I'm using 502 KB, while the latter can account for no more than 327 KB.  Twice, without realizing this mismatch and thinking simply that I installed too many things, I went in and cleaned out a bunch of stuff to free up memory.  Both times the usage went back up to 99% while I was looking the other way.  What's going on?  How do I track the culprit down? 
3  Linux Stuff / General Linux questions / Moving rootfs to the USB drive on: May 22, 2009, 09:31:55 AM
I seem to be constantly running out of space on the NAND flash.  I don't want to go out and buy an SD card just yet.. Is it possible/advisable to place rootfs on teh ext3 formatted USB drive?  How can I go about doing it?   
Pages: [1]