[Leaplist] Storage Question

Dan Cherry dscherry at bellsouth.net
Mon Mar 24 18:29:58 EDT 2008


On Monday 24 March 2008 1:38:26 pm patrick wrote:
> I have this storage,
>
> > patrick at 5[~]$ df -h
> >
> > Filesystem            Size  Used Avail Use% Mounted on
> > /dev/hda1             9.7G  8.3G  891M  91% /
> > varrun                439M  220K  439M   1% /var/run
> > varlock               439M  4.0K  439M   1% /var/lock
> > udev                  439M   96K  439M   1% /dev
> > devshm                439M     0  439M   0% /dev/shm
> > lrm                   439M  6.9M  432M   2%
> > /lib/modules/2.6.15-27-desktop64-smp/volatile /dev/hda3             100G 
> >  15G   80G  16% /home
> > /dev/sda1             459G  266G  170G  62% /media/sda1
>
> and I desire to save files to /home on /dev/hda3 and NOT in my
> /user/home at /dev/hda1

do you mean '/home/user'  ???
>
> I am of the opinion that all the listed devices above are mounted in
> that /apt.conf, so what is it that I must do to make sure I access
> /dev/hda3/home for downloads, and for transfers, to free up my
> /dev/hda1/
>
> I don't want to run out of available storage in the /

you can verify what is actually mounted by looking at /etc/mtab
that's the dynamic mount table.  
The fstab in the next post indicates you are mounting /home from /dev/hda3, 
which is what you want to do.  When you look at the root tree, /home will 
appear to be in /, but that's only the tree, not the device from which /home 
is mounted.  Your df command also shows /home as being mounted 
from /dev/hda3, so you should be okay with respect to /home size.

Also, you can quickly see what's eating up /dev/hda1 by doing a cd to /,
then issue the following (you may need to use sudo to avoid permission 
errors)...
du -cks * | sort -rn |head -11
This takes a couple minutes to run, but then you see where the high use is, 
you can cd into each high use directory, and issue the same command at that 
level to further track down the high use areas (for example /var or /opt, or 
whatever shows up in the result of the first du command).

-- 
Dan
Finding a solution to the problem doesn't solve the problem,
Implementing the solution solves the problem.


More information about the Leaplist mailing list