DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st June 2008
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default How to clean up /usr?

Hi there!

Recently I've updated my -current system via anoncvs (/usr/src, /usr/ports, /usr/xenocara). After that my 5.3 Gig /usr was almost completely filled up. So, I deleted /usr/xobj/* and ran "make clean" in /usr/src. This helped a little, but there are still some 87% of /usr in use - just 636 MB are free.

Are there any other steps I could take to regain some space on /usr?
Reply With Quote
  #2   (View Single Post)  
Old 21st June 2008
openbsdspirit openbsdspirit is offline
New User
 
Join Date: Jun 2008
Posts: 5
Thanked 0 Times in 0 Posts
Default

Previously, i also encounter the same problem with you and i manually delete some files which i seen is unusable.

I hope this help.

Thanks for your response
Reply With Quote
  #3   (View Single Post)  
Old 21st June 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,674
Thanked 214 Times in 189 Posts
Default

If you built userland properly, all the object files are in /usr/obj, which can also be cleared completely:

# rm -rf /usr/obj/*

Some small savings can also be had by clearing your kernel build of object files also. Here's an example with GENERIC,
if you built GENERIC.MP or you have custom kernels, do the same there:

# cd /usr/src/sys/arch/<arch>/compile/GENERIC
# make clean
Reply With Quote
  #4   (View Single Post)  
Old 21st June 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by nihonto View Post
Are there any other steps I could take to regain some space on /usr?
If you have another drive available, you may consider moving /usr/src, /usr/obj, & /usr/xenocara to externally mounted partitions. Allocating 5GB per partition is more than enough for each. These partitions only need to be mounted when doing a CVS update or building; otherwise, they do not need to be mounted at all.

As a personal anecdote, I have OpenBSD installed on a storage challenged system where these three partitions reside on an external USB drive. I only attach & mount them when I update & rebuild the system.
Reply With Quote
  #5   (View Single Post)  
Old 21st June 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

The way I took.
While sources and ports tree can be read from an USB key (or evem a ro medium) I put my .../obj dirs on a hard drive slice. My distfiles, packages sources are on yet another slice. With my data (archives, postgresql, www, mail, user data ). The only slice I need to backup beyond /var/backups.

snip from my mk.conf
WORKOBJDIR=/sandbox/pobj
MAKEOBJDIR=/sandbox/sobj
XOBJDIR=/sandbox/xobj

Faster to newfs the /sandbox then rm
And .... the .../obj dirs are clean!

A very heavy /usr (with GTK and QT3 and QT4 and their apps) takes less than 4Gig.
__________________
da more I know I know I know nuttin'
Reply With Quote
  #6   (View Single Post)  
Old 22nd June 2008
nihonto nihonto is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 65
Thanked 1 Time in 1 Post
Default

Hi Folks,

thank's a lot for your advice! Think I will follow ocicats recommendation.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thoughts on "make deinstall clean" Mantazz FreeBSD Ports and Packages 8 14th September 2009 06:45 PM
Clean Install assistance requested dk_netsvil FreeBSD Installation and Upgrading 10 18th July 2008 03:28 AM
Upgrading Drupal 5.5 or clean install cwhitmore FreeBSD Ports and Packages 1 11th June 2008 07:35 AM


All times are GMT. The time now is 07:18 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick