On 2003.06.15 09:43, Ian Douglas wrote:
Problem: I was going to mount /dev/hdb5 on the new "/" as "/usr" but it has just occurred to me that the "usr" tree is actually still on /dev/hdb5 as "/usr" rather than being in the top directory.
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, you can do:
cd /old/usr mv * .. cd .. rmdir usr cd / umount /old rm /usr mount /dev/hdb5 /usr
then update /etc/fstab to mount /usr from hdb5 in future.
Steve.