Web Hosting Talk







View Full Version : hda1 disc space


pgowder
03-04-2002, 01:47 PM
I run phpsysinf 1.7 to give me snapshot of my RaQ4.

It is now saying that I have only 8% left on my /dev/hda1 partition.

What is in that partition, what can I delete??

ctorrington
03-04-2002, 05:16 PM
The biggest space user on the / partition (Which is where /dev/hda1 is mounted) is the /usr directory (/home and /var are on separate partitions), now if you are feeling confident with linux you could do a bit of spring cleaning, but you could also stop your raq from working. If you telnet/ssh into your server, run the command
du -h --max-depth=1 /
and it will tell you how much space individual directories are using, and the command
df -h shows you how much space is free on each partition and where it is mounted.
My advice would be to just watch the free space on that partition, as it shouldnt change that much, and only take action if you see that the free space is decreasing.

pgowder
03-04-2002, 05:29 PM
About a month ago it was about 87% unused. So it is decreasing.

NoComment
03-04-2002, 06:56 PM
move /usr/doc /usr/info /usr/man to someplace under /home
and symlink those directories by doing;



cd /usr
mv doc /home/
mv man /home/
mv info /home/

ln -s /home/doc doc
ln -s /home/info info
ln -s /home/man man


Do so at your own risk. This will give you around 50 MB.. If you run out of disk space on /dev/hda1 (your / partition) your passwd, shadow, group files will most likely be corrupted.

You may have backups of these as passwd- , shadow- , group- created by your web interface but don't count on it. Take your own backups of these files periodically.


*NoComment*

-Edward-
03-05-2002, 01:05 PM
NoComment, Whats actually in these three directories that you are moving?

qslack
03-05-2002, 01:52 PM
/usr/info - infopages
/usr/man - manpages
/usr/doc - software documentation

NoComment
03-05-2002, 08:07 PM
Like the above posts says, nothing too important.. We are symbolically linking the directories anyway, so the transfer is transparent to your operating system. Everything will keep working as they should.

The reason I recommend moving these is these are unlikely to be referenced by an application that will refuse to follow symbolic links. (unlikely but possible)

*NoComment*

pgowder
03-27-2002, 06:40 PM
I tried this:

http://forum.rackshack.net/showthread.php?s=&threadid=3828

pgowder
04-02-2002, 01:48 PM
Originally posted by NoComment
move /usr/doc /usr/info /usr/man to someplace under /home
and symlink those directories by doing;



cd /usr
mv doc /home/
mv man /home/
mv info /home/

ln -s /home/doc doc
ln -s /home/info info
ln -s /home/man man


Do so at your own risk. This will give you around 50 MB.. If you run out of disk space on /dev/hda1 (your / partition) your passwd, shadow, group files will most likely be corrupted.

You may have backups of these as passwd- , shadow- , group- created by your web interface but don't count on it. Take your own backups of these files periodically.


*NoComment*

That gave me about 75mb.

I'm now at 81%. I hope that I can keep it there.