Moving a folder to a new partition

Let’s say you have enough remaining free diskspace on your harddrive, you may want to move directories like /home or /tmp to a new partition…

YOU MUST BE ROOT UNDER TTY AND ANY OTHER USER MUST BE LOGGED OFF

`- fdisk -l /dev/hda –> you’ll see the list of your current partition setup

Reboot the machine

`- mkfs.ext3 /dev/hda5 –> format the new partition with a ext3 fs

vi /etc/fstab : add this line : LABEL=/HOME /home ext3 defaults 1 1 save and quit vi

Finally, type : mount -a --> mount the partition under fstab mount --> you should see the new partition mounted as /home




Thanks for reading this post!


If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!