"Ian Douglas" alug@k1ngph1cher.com writes:
I do not have enough free space on any of my petitions to use as a temporary holding area to copy the contents of the "/usr" while I move it up one level so I have temporarily got round this problem by mounting /dev/hdb5 as "/old" on the new "/" and making the new "/usr" a symbolic link to "/old/usr" but was wondering if there was a simple way to shift the contents of "/usr" up one level on /dev/hdb5?
Yes - just mv them.
In detail:
cd /old/usr mv * ../ # mv .* ../ # if there are any dotfiles in /usr, which is unlikely cd / umount /old rmdir /old rm /usr # i.e. remove the symlink mkdir /usr # edit fstab to make /dev/hdb5 mount on /usr rather than /old mount /usr
You'll need to be root and not have anything that depends on /usr running (lsof helps if you have trouble with this). I've not tested this directly, obviously...