HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Move /var to another partition (http://www.howtoforge.com/forums/showthread.php?t=55632)

Toucan 4th January 2012 20:18

Move /var to another partition
 
Having failed to extend an ext3 partition due to the swap partition being immediately after it I'm considering creating an extra partition after the swap file and copying contents of the /var directory to the new partition and then mounting the new partition on /var.

Is this likely to work successfully?

Will symlinks be preserved?

If I then unmount the partition at any point will the original data in the original /var still be there?


vds debian lenny

falko 5th January 2012 15:54

Quote:

Originally Posted by Toucan (Post 270799)
Having failed to extend an ext3 partition due to the swap partition being immediately after it I'm considering creating an extra partition after the swap file and copying contents of the /var directory to the new partition and then mounting the new partition on /var.

Is this likely to work successfully?

I don't see any problems.

Quote:

Originally Posted by Toucan (Post 270799)
Will symlinks be preserved?

I think so, but am not 100% sure. You will have to test (also check if hidden files (starting with a dot, like .htaccess) are copied).

Quote:

Originally Posted by Toucan (Post 270799)
If I then unmount the partition at any point will the original data in the original /var still be there?

Yes - if you don't delete or format the original partition.


All times are GMT +2. The time now is 08:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.