![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Seperate commands on the same line | bobk544 | Shell Programming and Scripting | 3 | 07-28-2007 02:14 PM |
| I've created a partition with GNU Parted, how do I mount the partition? | jtp51 | UNIX for Dummies Questions & Answers | 1 | 09-18-2006 08:01 AM |
| Need help to seperate data | getdpg | Shell Programming and Scripting | 4 | 08-30-2006 02:28 AM |
| row seperate | inquirer | Shell Programming and Scripting | 13 | 08-12-2003 02:26 PM |
| understanding logical partition, physical partition | yls177 | UNIX for Dummies Questions & Answers | 3 | 11-15-2002 06:49 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
/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? |
| Forum Sponsor | ||
|
|
|
||||
|
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..
__________________
moxxx68 http://www.estarinformado.com.ar/apicmaxmiel/bee-diez.gif Last edited by moxxx68; 12-21-2004 at 02:40 AM. |
|
|||
|
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. |
|||
| Google UNIX.COM |