copy /usr to another filesystem and cann't reboot system by normal user
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
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.
copy /usr to another filesystem and cann't reboot system by normal user
I'm using RHEL4, someday I found that my / filesystem is full, and I copy the /usr directory to another filesystem. Everything is OK, except that when I run system-config-* from a normal user, it responds with a "Permission denied" instead of asking me to type the root passwords as before. And I just simply can't reboot or shutdown my machine using a normal user account thru the Gnome main menu's Logout button.
I can't figure out how to handle this, anybody help?
Thanx!
This is interesting. So, you still have a directory named /usr ? But it is just now on a separate partition, is this correct? What does "df -h" tell you? What does your /etc/fstab file look like?
No, actually I had two Linux installed on this machine several months, the "Lable" is set by anaconda, the Red Hat installer. Now the other Linux has been deleted manually by me. After the "copying" I set the device to the style as you said but when I run grub-install(you know, I get two hdds and now I still have one Linux and one Windows installed, this command is sometimes useful), the identification of the filesystem became the one right now in my fstab automatically.
I guess this issue is somewhat related to the usermode package, any suggestions?
that fstab syntax looks like lvm to me. the second style mentioned above by mad scientist should be used if this is not an lvm partition.
if it is an lvm partition, then it still looks wrong. i'd guess it should be LABEL=/usr /usr ext3 defaults 1 2.
i don't know if it's related to the original question or not, but thought i'd chime in about this fstab part.
oh, i see you've posted in the time it took me to type the above. what method did you use to copy the /usr to a different filesystem? did you literally use the cp command? if so, with what tags? i wonder if the usermode executables in /usr/bin didn't lose their executable permission.
i'd guess it should be LABEL=/usr /usr ext3 defaults 1 2.
I forgot to mention that LABEL=/ is the root filesystem of the deleted "other" Linux, this seems not to be a problem because anaconda can handle it, just like the LABEL=/1 stuff(which is the root filesystem of the newly installed and still active Linux). I haven't used lvm, and I surelly know this is not a lvm partition. In my memory, since my first installation of RH9, anaconda was using this style of naming filesystem, wasn't it? Try looking into your fstab if you are using some RH or FC.
Quote:
i wonder if the usermode executables in /usr/bin didn't lose their executable permission.
This seems impossible, before the copy I have tested thoroughly with cp, and knows what I was doing--I didn't want to put myself on such a risk that the main operating system I was using crack. And as I mentioned before,
Quote:
Everything is OK, except that when I run system-config-* from a normal user, it responds with a "Permission denied" instead of asking me to type the root passwords as before.
if executable permission is missing, how can everything be OK?
There still is a fact that I have forgotten. It seems that the new Linux I'm using now is installed with only the LABEL=/1 filesystem. Then someday I "borrowed" the /home filesystem from the other Linux, this caused the "shutdown and reboot problem", and then after borrowing LABEL=/, it turned out system-config-* cannot be run...
Actually the process went like this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.