On Sun, Nov 09, 2003 at 11:11:55PM -0600, Timothy Bolz wrote:
> I was running out of diskspace.

> The question I have is what directory uses up the most 
> space

# cd /
# du -sk *

> and could I just mount it for example /usr and would /usr use this 
> partiton to extend itself.

Not sure what you mean by "extend itself", but when you mount /usr,
you will mask whatever was in /usr, so you can't mount an empty
partition as /usr, or you will lose your system.

Assume /dev/hda3 is /, /mnt is open for temporary mounts, and you're
going to mount /dev/hda6 as /usr:

# mke2fs /dev/hda6
# mount /dev/hda6 /mnt
# cp -a /usr/* /mnt
# umount /mnt
# mount /dev/hda6 /usr
# mount /dev/hda3 /mnt
# rm -rf /mnt/usr/*
# umount /mnt
# echo "/dev/hda6\t/usr\text2\tdefaults\t1 1" >> /etc/fstab

Of course, this is hypothetical, I didn't tell you to do this, and
if you lose your system, it's not my fault ;]

-- 
<[EMAIL PROTECTED]>

_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to