2016年5月4日 星期三

Change Mount Point to Another Partition


http://unix.stackexchange.com/questions/131311/moving-var-home-to-separate-partition

move /var to dedicated partition

umount /dev/sdaX
mkdir /newpoint
mount /dev/sdaX /newpoint
cp -Rap /var/. /newpoint/ 
mv /var /var.old

vi /etc/fstab
/dev/sdaX       /var     ext4    defaults    0 0

http://moto.debian.tw/viewtopic.php?t=1251



test fstab without reboot
mount -a

mount -fav  (fake)

The following is in the documentation for -f option:
Causes everything to be done except for the actual system call; if it's not obvious, this ``fakes'' mounting the filesystem. This option is useful in conjunction with the -v flag to determine what the mount command is trying to do.

http://serverfault.com/questions/174181/how-do-you-validate-fstab-without-rebooting

沒有留言:

張貼留言