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!
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On my knoppix hd install which was all on one partition, I decided to move my usr directory over to a new partition.
I thought all I had to do was modify fstab so it would mount /usr (on its own partition) just after the root fs.
Well, it hasn't really worked. I get into some runlevel=1 environment. How many other things do I need to go about modifying in order to get it all to work as previously? Just a rough idea is what I require ...
Did you copy the data from /usr over onto the new partition? Usually when I need to do something like this, I get my new partition (say hdb1 set), and then assuming I have / (including /usr) on hda2 I go to signle user mode and do:
mkdir /mnt/new_usr
mount /dev/hdb1 /mnt/new_usr
cd /usr
cp -a * /mnt/new_usr
cd /
mv /usr/old_usr
mkdir /usr
<<modify fstab to mount /dev/hdb1 as /usr>>
reboot
hi btmiller, thanks for your reply-
*however*
I have of course done all that already.
My doubt was, that more things than just fstab need be modified.
However, it does appear that you have done it ("when I need to")
Maybe I'm just not modifying fstab correctly. Any other pointers?
No, you shouldn't need to do more that modify your fstab -- maybe if you post your config someone can see if it looks correct. Also, the exact errors from the init program would be helpfull.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.