Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making space in root directory

Status
Not open for further replies.

pondo

Programmer
Jun 17, 2000
16
US
I need to install some patches on my Solaris 2.7 box and it's required that I have at least 4MB of H/D space in '/'. I only have a fraction of that left, like 1MB - how does one go about making space on the root directory? Are there any unnecessary files that could be deleted?
 
Look for "core" files and delete them
find / -name core -exec rm { } \;

and files under /tmp,
/tmp is cleared down after a reboot.
 
If /var is part of your root directory (ie doesn't appear in a df -k display), search this for logs files which can be cleared down, such as /var/adm/wtmp and /var/adm/wtmpx, as well as files in /var/log.

Hope this helps - have a good weekend!
 
du -kad|sort -rn|more
execute while in the root directory. This will give you a list of your biggest files on that mount.

BTW how big is that mount?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top