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). HTH Cheers. Bye. Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan@iba-group.com <http://www.iba-worldwide.com> The contents of this e-mail message and any attachments are intended solely for the recipient (s) named above. This communication is intended to be and to remain confidential and may be protected by intellectual property rights. Any use of the information contained herein (including but not limited to, total or partial reproduction, communication or distribution of any form) by persons other than the designated recipient(s) is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free. Ion Beam Applications does not accept liability for any such errors. Thank you for your cooperation.