adding a new var partion to existing install

From thelinuxwiki
Jump to: navigation, search
  1. boot from a livecd,
  2. mount / (on /mnt/gentoo) and new-var (on /mnt/new-var)
  3. rsync dir contents
rsync -av /mnt/gentoo/var/ /mnt/new-var

4. edit /etc/fstab to reflect the new location of /var ... remove or backup the old /var/* ... reboot

      • note: the slashes on directory names are not accidental ... so no trailing slash on /mnt/new-var