On Friday 09 March 2007 04:39, Philippe Andersson wrote:
Bob S wrote:
Guess I really didn't need to ask this question. I already knew that I screwed up on the partitioning scheme. I guess I could move /usr or /opt to one of my new empty and separate partitions like /local. I remember seeing something about that a few years ago. I'd have to find it though........Does anybody remember??
Suggested move procedure:
(in the example below, I move /usr because it's supposed to be the largest. Please use 'du -ks' to find out the respective sizes of /usr and /opt on your system and move the largest of the 2).
- login as root on the console
- go single-user mode
# init 1
- copy all contents from /usr to /local
# cd /usr # tar -cvf - * | (cd /local ; tar -xf - )
(the command will preserve mode, ownership and symlinks)
- edit your /etc/fstab to make sure that the filesystem now called /local (/dev/sda8) will be mounted on /usr instead.
- rename /usr to /usr-old
# cd / # mv /usr /usr-old
(when you do this, any executable relying on shared libs stored below /usr/lib will stop working -- 'mv' and 'mkdir' only rely on /lib, so you should be safe).
- create the new mountpoint for /usr
# mkdir /usr
- reboot
# reboot
After the reboot, if all goes well, you should have an empty /local directory on the root FS, the old '/local' filesystem should now be mounted as /usr (and contain what the old '/usr' used to). On the / filesystem, below /usr-old you'll find the old contents.
Once you've checked that the system behaves as it should, you can remove the now unused /usr-old.
# cd / # rm -rf /usr-old
This will give you back some free space on the / filesystem.
Please review my recommendations before carrying them out to make sure I haven't left out anything. "Going back" in case of problem is always possible until you perform the last step (removal of /usr-old).
Thanks guys, Since it was a new install I just went back and reinstalled with a much larger / directory. Figured it was better for the future anyway. Took me another 3 or 4 hours to move my stuff from 10.0 to 10.2 but all is well now. I will keep this mail for future reference if I should need to move some partitions around. Again thanks for helping. Bob S. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org