Move /var to another partition

Discussion in 'General' started by Toucan, Jan 4, 2012.

  1. Toucan

    Toucan Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I don't see any problems.

    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).

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

Share This Page