On Wednesday 30 Jul 2003 9:56 am, Bill Mullen wrote: > > > looking at this more closely, what I would do is: > > This is /exactly/ how I'd do it as well. I'll just expand on a few > details of Jack's excellent methodology, for clarity's sake. > > > > telinit 1 > > > cp -a /usr/* /holding/ > > > umount /holding > > > vi /etc/fstab and change /holding to /usr and vice versa. > > > mount /usr > > Note that this mounts your new "copy" of /usr right over the old > one; the original files still exist and occupy space in /, but are > now hidden. Only the new copies (on the former /holding partition) > are seen and used by the system. The originals are still there, > should you need to revert to them. > > > > telinit 5 > > > > > > Then see if everything still works. If it does, > > > > > > telinit 1 > > > umount /usr > > This "unhides" the original files in the "old" /usr. > > > > rm -rf /usr/* > > This removes the old copies of the original /usr files, leaving the > /usr directory empty, and now merely a mount point. > > > > mount /usr > > > telinit 5 > > > > holding is slightly smaller than /, but I could make a new > > partition, say 10GB and then do something similar. > > Your /holding partition is already an excellent size for /usr - you > don't need 10G for that. And once /usr is out of /, you'll have > plenty of room there, too. I'd save any new partitions for data or > other distros; /usr doesn't grow all that much, really - I'll bet > that it's about 4G now, and that's a fairly fully loaded /usr. Just > MHO.
Thanks for the clarification, Bill. Forget the remark about the 10G size - it was too early in the morning for the grey cells to be fully operational <g> I cleared out everything I was certain I didn't need, to avoid that 95% full being even high, giving me time to work out a strategy. /usr is 1.7G at the moment, so that would give me around 2G free space on /, which should be enough, I think. I like this solution, because it seems to me that I get the chance to test everything out for a day or more before having to actually remove anything. If I understand you, when I mount the new /usr, the directory /usr under / will be ignored (after a reboot?). But then when I remove the /usr directory, the system will temporarily not be able to see any /usr until I remount the new one. Right? Anne
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
