[Prev][Next][Index][Thread]
Re: Help move /usr to another partition
In message <XFMail.960626123138.arnold@netvision.net.il> you write:
|
|
|I originally installed all of the system on one partitition :-(
|
|I freed a partition and would like to have /usr on this partitition.
|If it wasn't a system directory I would mount the new partition (eg: /new)
|as a filesystem, move all files to /new/usr, delete the original and create a
|symbolic link to the new filesystem eg: ln -s /new/usr /usr.
|This won't work ??, because in the stage between deleting and creating a link
|I have no /usr, and this it seems will break the system.
|
|This is probably a trivial question but I have read all the relevant docs
|I could find and still don't know how to do it.
Don't create a link. This is an ugly patch.
What you need to do is:
1. setup your /etc/fstab to mount the new partition at /usr
2. move the current /usr to /old.usr
3. reboot
You will be without /usr between 1 and 2 but reboot should still work.
Another option would be to boot to single user and then move the old
/usr (and make sure the new partition is taken care of in /etc/fstab.
After that, you can remove /usr.old, of course.
Hope this helps,
--Amos
--Amos Shapira | "Of course Australia was marked for
133 Shlomo Ben-Yosef st. | glory, for its people had been chosen
Jerusalem 93 805 | by the finest judges in England."
ISRAEL amos@dsi.co.il | -- Anonymous
References: