Skip to content

Instantly share code, notes, and snippets.

@kramarama
Created March 21, 2014 20:05
Show Gist options
  • Save kramarama/9695197 to your computer and use it in GitHub Desktop.
Save kramarama/9695197 to your computer and use it in GitHub Desktop.
move /var to separate partition
1) mkdir /newvar
2) mount /dev/md40 /newvar
3) cp -Rax /var /newvar
4) mv /var /oldvar
5) change fstab to mount /var to /dev/md40
fix security labels after move:
$ restorecon /var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment