Var Partition Movement
Var Partition Movement
ext3
2) mount the new filesystem in /mnt # mkdir /mnt/newvar # mount /dev/sdb1 /mnt/newvar 3) Go to single-user mode so that there is no rw activity on the directory during the process # init 1 4) Backup data in var only (not the /var directory itself) # cd /var # cp -ax * /mnt/newvar 5) Rename the /var directory (to make sure this has worked before deleting it!) # cd / # mv var var.old 6) Make new var directory # mkdir /var 7) Unmount the new partition # umount /dev/sdb1 8) Remount it as /var # mount /dev/sdb1 /var 9) If everything goes fine then put an entry into /etc/fstab /dev/sdb1 /var ext3 defaults 00