/usr/lib on a seperate partition


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users /usr/lib on a seperate partition
# 1  
Old 12-21-2004
/usr/lib on a seperate partition

I want to move /usr/lib on a seperate partition.
( is is now all at / )

I know how to copy data and update fstab but...

At boot time, the mepis distro already needs stuff from /usr/lib but it is not mounted yet. So i get error before /usr/lib is mounted.

Does this mean you cannot move /usr/lib to its own partition?
# 2  
Old 12-21-2004
i don't think you should move your /usr/lib directory to another partition other than the one it is at.. i could point out few possible reasons for the error. some how you changed the path of execution to the directory itself, the path is not set globally.. or you have not configured the boot process properly.. also look for a possible mount error as in maybe /usr/lib is mounted but does not have the right fs.
heres a site with a structured map of the filesystem heirarchy starting with root and working through boot down to the basic files found in /usr and var ... and so on (/usr/lib will be in there!).. it should give you a better idea on how to go about correcting the error without having to move the partion and will probably calrify why you shouldn't do this since you could malfunction something else..
http://www.pathname.com/
moxxx68
ps . hope this helps


edit:
if you are to move your directory for space or lack of rather than move the whole directory to another partition.. create a directory in the other partion and link it (soft link)... that way you don't have to muck about with the built-in functions of the /usr environment..

Last edited by moxxx68; 12-21-2004 at 06:40 AM..
# 3  
Old 12-21-2004
Yes , i want to move /usr/lib to free space on the partition where it is now at. But i don't understand your softlink idea, can you explain a little more.

I still have mount even with a softlink or am i wrong
# 4  
Old 12-21-2004
create space on a partition store your added or extra info in there and create a soft-link to the partition.. you may want to put the bulk of the data you don't need in there and mount the directory ro :
ex./ ............................................./mydir->/*/*/*/*mydir
ln -s mydir /mnt/mountpoint/dirctory/mydir
ln -s /lib/ /usr/lib
# 5  
Old 12-21-2004
use rsync to move the directory to the new partition.

Under mnt, mkdir temp
Mount the new partition as, example: mount /dev/hda9 /mnt/temp
now, use rsync to copy the /usr/lib directory to the newly created folder
rsync -a /usr/lib /mnt/temp

Then add the new parition info to /etc/fstab for example:
/dev/hda9 /usr/lib xfs defaults 1 1

Now you _may_ want to temporarily change the /usr/lib folder to /usr/lib-OLD, just dont delete it.
To do this, you may have to boot to a rescueCD.

Why move /usr/lib? If your running out of space, it might be due to your home directory, if it is also mounted under /
It might be far better to just move it. Or just stick your entire /usr on a seperate partition.
I keep;
/ /boot /home /usr on separate partitions these days. and /var on its own under *BSD. I used to split them even more so, but ended up wasting more space than anything.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cannot open module /usr/lib/security

Dear All After powering on my Netra120 Solaris server and waiting for all of the installed processes to be started , when trying for login I am getting : "can not open module /usr/lib/security/pam_authtok_get.so.1" Can you please let me know what has happened to my server and how can I reach... (3 Replies)
Discussion started by: hadimotamedi
3 Replies

2. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

3. UNIX for Advanced & Expert Users

/usr/lib/libv12n.so

Hi, I want to use the function "v12n_domain_uuid" on solaris box. The library "libv12n" is present in /usr/lib but i can't locate the header "libv12n.h" anywhere in the box. How do i run the API "v12n_domain_uuid" (4 Replies)
Discussion started by: skyineyes
4 Replies

4. Solaris

/usr/lib/vhost.so missing Solaris 5.10

Hi, i have a solaris 5.10 machine on which i am getting below error while executing cat command ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory Killed it is related to file vhost.so missing Also when i did ldd cat result is as below libc.so.1... (1 Reply)
Discussion started by: Jcpratap
1 Replies

5. UNIX for Dummies Questions & Answers

use of /usr/lib/nsr

Hello, I have this folder on my one of the machine but not on other. /usr/lib/nsr can anyone tell me for what this folder is used ? Thanks (2 Replies)
Discussion started by: yatrik007
2 Replies

6. UNIX for Dummies Questions & Answers

/usr/local/lib is not searched by ld-linux.so by default?

it seems that /usr/local/lib is not searched by ld-linux.so by default in fedora14. If so, why some software put its lib files in /usr/local/lib? eg: glib and gtk+. (6 Replies)
Discussion started by: vistastar
6 Replies

7. Solaris

Problem creating sol8 container using seperate / /usr and /var ufsdumps

Hello experts New to solaris 8 containers and zones in general and I'm having some problems creating a Solaris 8 container using ufsdumps of /, /usr and /var. I have created the zone which worked fine and a running the following command. zoneadm -z zone_s8 install -v -p -a /root.ufs ... (2 Replies)
Discussion started by: BrokeIt
2 Replies

8. UNIX for Dummies Questions & Answers

/usr/lib/saf/sac -t 300

pls my server that is running UnixOs solaris is not working properly. it use to display the following errors: INIT:Command is respawning too rapidly. check for possible errors. id: sc "/usr/lib/saf/sac -t 300" what am i suppose to do to correct this problem? Regards. (1 Reply)
Discussion started by: dba
1 Replies

9. Shell Programming and Scripting

sh script to traul through /usr/lib/perl5 ...

Hey, Im trying to create a script to create a dir-tree of pod converted to html. so far this is the script: #!/bin/sh cd /usr/lib/perl5 for d in ./* ; do # is it a dir? if ; then # yes! get the basename cd $d ; dir=`basename $d` for f in ./* ; do ... (1 Reply)
Discussion started by: emcb
1 Replies

10. UNIX for Dummies Questions & Answers

/usr/lib/32/32-> Question

Hello UNIX people. I was just cruising around my UFS and came across the directory /usr/lib/32. This directory continues up many directories (/usr/lib/32/32/32/32->). Each level of 32/ directory seems to be a copy of the previous one. I have been working with UNIX for a little while now, but I... (3 Replies)
Discussion started by: shaggy
3 Replies
Login or Register to Ask a Question