Assumption: /mnt is a huge disk partition separate from the / partition (aka root partition)
- mkdir -p /mnt/home/myfatdirectory
- kill all processes that have open files to /home/myfatdirectory
- lsof /home/myfatdirectory
- make sure you get ZERO results, ie no processes have open files to this directory
- mv /home/myfatdirectory /home/myfatdirectory_old
- mkdir -p /home/myfatdirectory
- mount --bind /mnt/home/myfatdirectory /home/myfatdirectory
- add to bottom of /etc/fstab, so the mount is picked up on reboot
- /mnt/home/myfatdirectory /home/myfatdirectory none bind 0 0
- fix perms as necessary by interleaving your own steps into the above
- for the paranoid: you might want to make sure fstab entries work fine on reboot
No comments:
Post a Comment
Note: only a member of this blog may post a comment.