2

How do I make permanent the changing of my /home folder

I changed the /home folder using this command:

sudo mount /dev/sda2 /home

It works fine but, when I restart, the change is lost.

¿ How do I make it permanent ?

  • Also see https://askubuntu.com/questions/643441/how-to-create-a-seperate-partition-for-home-after-accidentally-installing-ubuntu – user68186 Jul 25 '17 at 13:48
  • 1
    +1 for command sudo mount /dev/sda2 /home.Please go via this tutorial. it helped me alot. https://help.ubuntu.com/community/Partitioning/Home/Moving –  Jul 25 '17 at 15:54

1 Answers1

2

For any mount to be permanent, it needs to go in your fstab file.

sudo vim /etc/fstab

You can read this post if you need more details on how to edit your fstab file.

Freddy
  • 21