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!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!