On Fri, 16 Jul 2010 21:53:59 Mike wrote:
I have a mixed system (Windows Vista and Opensuse 11.3). I just upgraded from 11.2 to 11.3. I was running out of space prior to this and uninstalled a few non-essential apps (games, graphics/multimedia apps, etc). I am severely low on space in my root directory. I ran the (new) Disk Usage Analyzer and found that my /usr/lib and /usr/share directories are eating up the bulk of space. Is there any way I can move either of these to the empty /overflow partition?
Here is my df -h if that helps.
Filesystem Size Used Avail Use% Mounted on /dev/sdb6 7.3G 6.9G 57M 100% / devtmpfs 995M 276K 994M 1% /dev tmpfs 995M 300K 994M 1% /dev/shm /dev/sdb7 5.0G 1.6G 3.2G 34% /home /dev/sda1 87G 54G 33G 62% /windows/C /dev/sda2 6.6G 6.0G 639M 91% /windows/D /dev/sdb1 74G 44G 31G 59% /windows/E /dev/sdb8 5.1G 139M 4.7G 3% /overflow
Thank you! Mike
Mike, Create /overflow/share/ (and set the ownership to match /usr/share/. Copy (or, better still, rsync) everything from /usr/share/ to /overflow/share. If you use rsync -Cavvh you will preserve ownership and permissions and get verbose human-readable progress reports as you go. Another advantage of using rsync is that if it gets interrupted you can run it again and it will only transfer files that are not the same on the destination as on the source. Once you have successfully copied (and verified) all the files and folders, do the following (as root): rm -rf /usr/share mkdir /usr/share mount -o bind /overflow/share /usr/share You could symlink /overflow/share to /usr/share but some apps might complain about that, I'm not sure. YMMV. I use the bind mount on my system (I just had to go through this exact same exercise myself because my /usr partition was 98% used. BTW, add the following line to /etc/fstab if you use the bind mount method: /overflow/share /usr/share ext3 bind 0 0 Make sure that it is immediately after the lines that mount /overflow (which probably should be immediately after the line for / in this case, otherwise stuff expected in /usr/share/ might not be available if any programs require it during startup. Of course, you don't need to mess around with /etc/fstab if you just create a symlink but as I said I'm not sure about any side effects that might occur if you do that with /usr/share/ on another filesystem. Probably none, but I chose not to do that here. HTH. Regards, -- ====================================================== Rodney Baker rodney@jeremiah31-10.net web: www.jeremiah31-10.net ====================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org