View previous topic :: View next topic |
Author |
Message |
teknik0s n00b
Joined: 26 May 2003 Posts: 72 Location: Texas
|
Posted: Tue Sep 02, 2003 3:47 pm Post subject: My harddrive ran out of space.. |
|
|
Code: | Filesystem Size Used Avail Use% Mounted on
/dev/root 1.7G 1.7G 0 100% /
/dev/hdd1 2.0G 53M 1.8G 3% /backup
none 62M 0 62M 0% /dev/shm
|
I have 2 very small harddrives thats i run on my little gentoo p166 server. And i was emerge -u system.. and i come to check my space this morning and it seems i am out. This system has nothing on it but (the basics) plus apache, gallery, and php... i dont think this looks right.
If it is.. what can i do to get more space.. can i allocate some space from that /backup to /root? (in the beginning i wanted to use software RAID to make both of these 4 giggers one, but i couldnt find much info on that)
If it isnt right, is there a way to search for maybe "big unused files" or stuff like that. Unused junk that shouldnt be there. I wouldn't know where to start or how to search by file size, etc.
JaReD |
|
Back to top |
|
|
Dark_Hunter Apprentice
Joined: 28 Mar 2003 Posts: 230 Location: Germany
|
Posted: Tue Sep 02, 2003 3:59 pm Post subject: |
|
|
delete files in /usr/portage/distfile |
|
Back to top |
|
|
teknik0s n00b
Joined: 26 May 2003 Posts: 72 Location: Texas
|
Posted: Tue Sep 02, 2003 4:21 pm Post subject: |
|
|
what are all of those ? Do i need them to unmerge or no? |
|
Back to top |
|
|
hensan l33t
Joined: 26 Jun 2003 Posts: 868 Location: Sweden
|
Posted: Tue Sep 02, 2003 4:28 pm Post subject: |
|
|
You can safely remove the whole distfiles dir, after a package is installed the distfiles are only useful if you want to re-emerge the package or upgrade to a new -r* version without having to re-download the sources. |
|
Back to top |
|
|
teknik0s n00b
Joined: 26 May 2003 Posts: 72 Location: Texas
|
Posted: Tue Sep 02, 2003 4:33 pm Post subject: |
|
|
ok now i have 1.5GB used (that took off 200mb) hey that is good, but is there any way to get more space? |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Tue Sep 02, 2003 6:55 pm Post subject: |
|
|
/var/tmp/portage will be pretty big if you've had a lot of failed/cancled emerges. |
|
Back to top |
|
|
klac n00b
Joined: 14 Aug 2003 Posts: 32 Location: Winnipeg, MB
|
Posted: Tue Sep 02, 2003 7:26 pm Post subject: |
|
|
You can probably remove most of the contents of /var/tmp safely. Also, check the sizes in /var/log; if you're not planning to use the logs, you can probably get rid of some of the older ones.
If you have a spare HD you can borrow from another system, you can use the Hard Disk Upgrade mini-howto to move data back and forth between partitions. However, be sure to have a backup, and to do all the optional parts (ie comparing the source and destination folders) - I killed my installation yesterday by failing to follow all the directions _________________ He that breaks a thing to discover what it is has left the path of wisdom.
-- Gandalf the Grey |
|
Back to top |
|
|
klac n00b
Joined: 14 Aug 2003 Posts: 32 Location: Winnipeg, MB
|
Posted: Tue Sep 02, 2003 7:26 pm Post subject: |
|
|
You can probably remove most of the contents of /var/tmp safely. Also, check the sizes in /var/log; if you're not planning to use the logs, you can probably get rid of some of the older ones.
If you have a spare HD you can borrow from another system, you can use the Hard Disk Upgrade mini-howto to move data back and forth between partitions. However, be sure to have a backup, and to do all the optional parts (ie comparing the source and destination folders) - I killed my installation yesterday by failing to follow all the directions _________________ He that breaks a thing to discover what it is has left the path of wisdom.
-- Gandalf the Grey |
|
Back to top |
|
|
Lycander Guru
Joined: 10 Apr 2003 Posts: 468
|
Posted: Tue Sep 02, 2003 8:04 pm Post subject: |
|
|
Negative on deleting random files in /var/tmp. I read in another thread about recovering HD space and someone pointed out that XFree uses /var/temp to cache data and deleting files improperly may cause problems with XFree.
Between /var/tmp/portage and /usr/portage/distfiles you can recover plenty of disk space by deleting files in those directories. _________________ * Blessing /dev/hda2 with holy penguin pee |
|
Back to top |
|
|
klac n00b
Joined: 14 Aug 2003 Posts: 32 Location: Winnipeg, MB
|
Posted: Tue Sep 02, 2003 8:36 pm Post subject: |
|
|
Hmm...according to this, files in /var/tmp can be deleted, just not on every reboot. X should rebuild what it needs there (I don't have it installed yet, I just finished the first emerge system from stage 1), as it's able to do so when it first runs.
Possibly, if /var/tmp is cleared out from single-user mode, it can be safely emptied.
Also, try 'find /var/tmp -atime 30 -type f' to find all files that have not been accessed in 30 days (requires that 'noatime' is not set in fstab, and has not been for at least 30 days). Swapping ctime for atime will get you files that were created more than 30 days ago; they may also be candidates for removal.
Also, check /tmp - anything there should be safe to remove (according to http://www.pathname.com/fhs/2.2/fhs-3.15.html. _________________ He that breaks a thing to discover what it is has left the path of wisdom.
-- Gandalf the Grey |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Tue Sep 02, 2003 8:37 pm Post subject: |
|
|
if your using ccache rm -rf /root/.ccache/* will clean up a considerable amount of space. |
|
Back to top |
|
|
teknik0s n00b
Joined: 26 May 2003 Posts: 72 Location: Texas
|
Posted: Wed Sep 03, 2003 12:58 am Post subject: |
|
|
wow i deleted everything in /var/tmp.. now i have like 600 mb free.. i just hope it didnt mess anything up |
|
Back to top |
|
|
|