-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 James Knott wrote: > G T Smith wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> James Knott wrote: >> >>> Carlos E. R. wrote: >>> >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA1 >>>> >>>> >>>> The Friday 2007-05-18 at 13:42 +0100, Francesco Scaglioni wrote: >>>> >>>> >>>> >>>>> I have free space under /usr/local (separate partition). Is >>>>> it possible to copy /usr/lib and /usr/lib across to >>>>> /usr/local and then symlink them back on a live system >>>>> without breaking it? >>>>> >>>> Er... >>>> >>>> You should not move files somewhere under /usr to the corresponding >>>> somewhere under /usr/local; ie, not to places under "/usr/local" that >>>> the systems searchs for programs and files, because those files are >>>> probably compiled to be installed under /usr. Maybe I'm confusing you. >>>> >>>> >>> As long as he moves the entire directory and symlinks to the new >>> location, what's the problem? >>> >>> >>> >> >> If moving to a new partition be careful. There are some hardlinks in the >> structure and I have been caught out by broken links after doing a >> similar move.. >> >> > > Where were those hard links? As I mentioned in another note, there are > some directories that cannot be moved, as they're required at boot up, > but I'd be suprised if anything under /usr would have problems. > >
The hardlinks were to libraries in /usr/lib from somewhere else or vice versa I cannot remember precisely which.. Took out OpenOffice which was an unpleasant surprise at the time... I cannot remember precisely which libraries were involved but as usual for these things I discovered the problem when I needed to use OpenOffice in a hurry. It only took 10 to 15 minutes to diagnose and fix but it was a bloody nuisance at the time. I not entirely certain whether there are not any other broken links created by this move, but I will probably find out the hard way *sigh* Next time I do this I will make sure that I check for such linkages before I move structures to new partitions...:-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGTgIEasN0sSnLmgIRAugnAJ0W9uRUGiyPFXygoPeZ08RyIJP0swCfeG5h +nndK3+oy77KnH7zhfm8l6I= =4OZV -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
