Quote:
Originally Posted by John VV
just take the easy way and use
/mnt/( name for drive)
and add /mnt/??? to fstab
why dose it have to be /var
|
Probably because he needs extra space under that directory, or just because the data there is important and he wants to separate it from the rest of the system, or just use a different filesystem for performance purposes. The list of possibilities is much longer. In any case, it's not an strange thing in servers, nor even in desktops.
Quote:
Originally Posted by ashlyjay
I have a groupwise email installed in my /var folder. If im going to rename my folder to /var.old and mount my new hardrive to /var...will my email will still be the same?i mean is there a possibility that my email will be corrupted?
|
jay37 told you the correct way. Boot a livecd, mount the partition containing your actual /var, and mount your new disk, copy all the stuff from your var to the new disk, then rename var to var_old or whatever.
After that, change fstab, so your new disk is mounted on /var.
After that, reboot, and you should have your new drive mounted without any pain.
As said, make sure you use -a or equivalent options when copying. If you mess up the permissions you are going into serious trouble.
The livecd step is needed because it's not a good idea to manipulate live partitions that might change at any time. You might end with uselss broken backups and you will have trouble to umount and mount it.