Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hey Guys, thanks for the help. It's much appreciated.
I've checked the /usr/usr possibility but that's not the case. The actual path is /usr/X11R6/lib. I used find to find the file and I navigated there. It is present, no doubt.
The fstab entry is very basic. I just changed the mount point from /mnt/hda6 to /usr. I left the rest unchanged. I'm at work at the moment, so I can't post the exact entry, but it's a reiserfs file system and is mounted at boot time. The entry is something like:
/dev/hda6 /usr reiserfs auto,users,exec 0 0
I've also checked /etc/ld.so.conf. There are about 6 entries in it and the 3rd or 4th one is /usr/X11R6/lib
I also noticed that there is a symlink to libX11.so.6. Could that be of any significance?
Any other suggestions? Will it help to copy /usr back to /? (Which I'd rather not do, of course.)
At this point any damage done probably can't just be undone. If for some reason a file got deleted or its permissions were changed during the copy, simply copying them back won't fix that. You'll have to fix permission problems and such as you find them. Has anything else broken? If not, then it shouldn't take long to correct.
Also, the line in my fstab looks like:
/dev/hda4 /usr reiserfs defaults 1 2
You'd don't want it user because that means a regular user can mount and unmount it, which is redundant since it gets auto-mounted and only root can then unmount it. You also just don't want a regular user to be able to mount or unmount it.
I haven't tried ldconfig - will do so when I get home. Ditto for changing libmod's permissions.
I'm running Knoppix 3.7 (kernel 2.4.26 (I think)), but I have no idea how to un- and reinstall X. Knoppix has a knoppix-install (or something like that) script which is used to install from the live cd onto a hard disk, but that does a complete install.
Anyway, I'll try the advice you guys have given above and report my success or failure.
Gents, I'm mildly freaked out here. I followed your good advice - rebooting between each application and it didn't work. So I started thinking about reinstalling. But, because I really don't want to reinstall, I decided to try and copy /usr back to / - y'know, the last-ditch, clutching-at-straws action.
And it worked.
And that's what's freaking me out. Why is it working? Please, can anybody shed some light or point me in the direction of an answer? Because I still want to move /usr away from / to it's own partition.
Well, I must say, that is the strangest behaviour I've ever heard of. Now, when I copied mine I used cp -pR. It was only when I was looking at the man page that I thought to myself I should also have used -P. Maybe I was wrong. The most important thing after making sure all files and links get copied correctly is making sure all the permissions and owners and such stay the same. So whether you use tar or cp, you still need to preserve permissions. The one thing I can think of is that the -P argument caused something funny to happen with symlinks.
If you try this again, I would suggest comparing the directories before deleting anything. Maybe pipe the output of ls -lr for /usr and /mnt/hda6 to files, then diff the files. You may need to run cut on the contents of each file because the modification times will differ and you don't care about that.
Also, did you try the change I suggested to your fstab? I know that with a vfat partition putting user as an option sets the owner of all the files in the partition to whichever user mounted it. It might goof things up with reiserfs too.
In fact, reading over your last post again, I'm fairly certain it's the fstab entry that's the culprit. If copying everything back fixed all the problems you were having, then obviously everything was correctly copied both times. Unless you did change your fstab and remount the partition as root with the new options. In that case I'm just full of *&$@.
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Your last effort sounds closer to my own, but it has worked so far for me
Temporarily mount new partition.
Copy contents of directory (/home, /usr, /var etc or even lower in hiarachy) over to new partition, normally in my case using drag and drop in Konqueror.
Unmount new partition.
Change fstab to mount new partition wherever.
Check everything works.
If it doesn't work I know I can lose the new mount and revert to as before because I've not deleted anything.
Also if worst happens, I look in lost and found where the unattached data now resides.
As I said this has worked for me on many occasions, whether technically correct procedure or not.