Gerhard W. Gruber passionately intoned:
Hmmm. This *is* a good point. On your large partition, you can:
- create a file that is plenty large enough to hold all the data in the
tree you want to move (dd if=/dev/zero of=/new_tree/new_fs bs=1024K \
- make a filesystem in it
- mount it on /mnt using the loopback device
- cd to the original dir (cd /orig_dir)
- 'find . -depth -print|cpio -pdv /mnt'
- umount /mnt
- 'cd ..; mv /orig_dir /orig-dir-'
- 'mkdir /orig_dir; chmod 555 /orig_dir'
- 'mount /new_tree/new_fs /orig_dir -o loop,rw'
Your directory has now been moved to a larger home. Once you have verified
that everything works, 'rm -rf /orig_dir-' to free up the original space.
Again, heed the standard warnings and disclaimers about moving a directory
that is needed during the boot process. Also, performance is not guaranteed
to be as speedy as if the new FS was on a block device.