Jamie I tried the command nice. Can you delete the /var/log files and will they recreate themselves. I was thinking /var/log might be taking up a bunch of space. I read some where you should have a seperate /var partition for your logs then if /var gets full it doesn't bring down your system. I don't think I have to worry about this but If I was running a server I would consider it.
I've use tha tar cf comand I'm not sure but I think it might have been you who taught it to me. I should start taking notes and putting them into a file of how to do something. Sometimes you only do the command once and you can remember you did it but can't rember the how you did it. I guess that's why man pages are there. I think that info is a little better because they show examples. Again Thanks Tim On Monday 10 November 2003 12:00 am, you wrote: > Tim, > You can find out how much each of your directories are using with the du > command, so you might cd to /usr and issue > du -a ./ > then cd to /var > du -a ./ > also, you have log files under /var/log, these files can get really big > over time and the info may not be of any value, so check out what you have > under / var/log, and see if you can free up some of that too (its possible > you have webserver logs(or whatever) that are humongous, and you dont even > use your webserver!) check out your messages, and syslog files, they get > new stuff all the time, if you dont need any of that info, and they are > taking up 250 megs you might tail the last 100 lines into another file, > then move it to the existing file... > also check out lastlog, wtmp, they can get big, and may not be of much use > to you (although they really can be handy if you have an intruder!) > > as far as the partition deal goes... lets say you have 2g of data under > /usr, you want to make it its own partition. you have a 4 gig disk > partition in the system as hdc1. > > Mount your partition as /new > mount /dev/hdc1 /new (or edit your /etc/fstab and put it in) then mount -a > so... do a df (this will show you disk free space, and the number of inodes > and size (hopefully both your disks will have the same size inodes to keep > this simple!) keep this info handy for comparison later... > > no first copy your data from your /usr partition to your /new partition > heres a nice way using tar... (btw, cd to /usr first!) > > tar cf - . | ( cd /new ; tar xvpf -) > now you will have a duplicate of your /usr on /new, do a du -a, and compare > that the sizes match (just incase... it will be, but its good to double > check incase) > > now, the scary part... in the /usr dir, rm -rf * > that will wipe out your /usr dir... > now edit your /etc/fstab to include /usr on /dev/hdc1 > unmount /new, then mount -a > (mount -a will mount everything in your fstab) > > I dont think you need anything in /usr while performing this task, so you > probably dont need to boot the system on ramdisk (so your / partition isnt > mounted), but if you do, Im sure someone on this list will yell at me... > > Jamie > > On Monday 10 November 2003 12:11 am, Timothy Bolz wrote: > : I was running out of diskspace. I was sitting at 99 percent disk usage > : and I removed some programs and got it down to 98 percent. I then > : realized that the .deb files would be taking up space so I removed them > : and got it down to 85 percent. I would like to get it lower. When > : removing some files using aptitude said it could delete the programs > : directory because it was full. There must be a way to force aptitude to > : delete those unwanted directories. I was considering using one of the my > : other partitions as a means of increasing the size. The question I have > : is what directory uses up the most space and could I just mount it for > : example /usr and would /usr use this partiton to extend itself. I have a > : partition use for my home directories and it works great. I've just > : noticed that's getting pretty full too. That I just have to do some > : weeding. > : > : Thanks > : Tim > : _______________________________________________ > : EuG-LUG mailing list > : [EMAIL PROTECTED] > : http://mailman.efn.org/cgi-bin/listinfo/eug-lug _______________________________________________ EuG-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
