Saturday, September 21, 2013

Mounting /var to new partation .



  • Created a new reiserfs partition for var on my HDD using gparted. Labelled it as "var"

  • Rebooted to emergency mode and mounted it. (I remounted root as read-write)

     # mount /dev/sda8 /mnt/new_var


  • Copied var contents to new_var

     # cd /var
    # cp -Rax * /mnt/new_var/
    # cd /
    # mv var var.old
    # umount /mnt/new_var
    # mkdir var
    # mount /dev/sda8 /var


  • Added the following line to /etc/fstab

No comments:

Post a Comment