LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-04-2011, 08:42 AM   #1
agostonbejo
LQ Newbie
 
Registered: Oct 2006
Location: Hungary
Distribution: OpenSUSE 11.3
Posts: 11

Rep: Reputation: 0
Question Space low on root partition, /usr/lib


Hi!

I have the following problem: my root partition (/) starts to fill up completely. I checked it out and what takes up most of the space on it is the /usr folder, and inside of that the biggest one is /usr/lib (~2Gig). I've been wondering how I could solve the situation:

a)
By using some partition editor to increase the size of the / partition -- but there are always these warnings that data loss is possible etc. that I'm not really sure how reliable this would be. Also, then I'd have to create/download and boot some rescue CD I suppose in order not to have the partitions on the hard drive mounted... lots of hassle, great risk.

b)
I had an idea that I'd move over some folders from /usr/lib to some other partition where there was enough space and created soft links to them in /usr/lib. (I wouldn't dare move the whole /usr/lib folder because I'm not sure whether there is something in there that's actually needed to mount the partition I would move it to -- which would be pretty much of an own goal.)
The problem here is that if I only move individual folders (e.g., "Adobe"), then they will have relative references to other files like ../../../../../liblber-2.4.so.2 which are only present in the original /usr/lib, of course.

Any ideas how this could be solved relatively simply?

Thanks,
Agoston
 
Old 09-04-2011, 08:52 AM   #2
lydiaXr
LQ Newbie
 
Registered: Jun 2011
Location: London
Distribution: FreeBSD, Ubuntu, Fedora
Posts: 15

Rep: Reputation: Disabled
You could create a symlink to /usr/lib/ on a partition that has more space.

You could do something like:
mkdir -p /path/to/partition/with/more/room/
cd /usr/
mv lib/ /path/to/partition/with/more/room/lib/
ln -s /path/to/partition/with/more/room/lib/ lib
 
Old 09-04-2011, 04:46 PM   #3
agostonbejo
LQ Newbie
 
Registered: Oct 2006
Location: Hungary
Distribution: OpenSUSE 11.3
Posts: 11

Original Poster
Rep: Reputation: 0
By "soft links" I meant exactly what you write - symlink. Are you absolutely sure then that the problem I've been worrying about won't come up, namely:

"I wouldn't dare move the whole /usr/lib folder because I'm not sure whether there is something in there that's actually needed to mount the partition I would move it to."
 
  


Reply

Tags
low, partition, partitioning, root, space


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OPENNMS INSTALLATION ERROR -install –disU –l /usr/lib/jni:/usr/lib ramecare Linux - Server 4 07-11-2011 12:06 PM
opennms installation error -install –disU –l /usr/lib/jni:/usr/lib ramecare Linux - Server 2 07-08-2011 10:51 AM
/mnt/sysimage/usr low disk space linuxie Linux - Newbie 4 01-26-2009 07:40 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration