Question:
how can I move permanently the home folder to another partition in ubuntu 12.04 lts?
kllado
2012-06-19 05:25:08 UTC
I recently reinstalled ubuntu 12.04 lts but I forgot to set the home folder to the seperate partition I had prepared for this reason. Is it possible to do that now without reinstalling ubuntu again?
Four answers:
VenuG
2012-06-19 05:29:04 UTC
Here is the step by step procedure. Read carefully before doing any thing :

https://help.ubuntu.com/community/Partitioning/Home/Moving

This guide will follow these 6 basic steps:



Setup your new partition

Backup and edit your fstab to mount the new partition as /media/home (just for the time being) and reboot.

Use rsync to migrate all data from /home into /media/home.

Edit fstab again so the new partition mounts as /home instead of /media/home but not reboot just yet.

Move /home to /old_home and reboot

Delete /old_home.



The guide is written in such a way so that at any point in time if there is a system failure, power outage or random restart that it will not have a negative impact on the system and SHOULD safeguard against the possibility of the user accidentally deleting their home directory in the process.

Please read that web page completely.
Latisha
2015-08-20 11:36:54 UTC
This Site Might Help You.



RE:

how can I move permanently the home folder to another partition in ubuntu 12.04 lts?

I recently reinstalled ubuntu 12.04 lts but I forgot to set the home folder to the seperate partition I had prepared for this reason. Is it possible to do that now without reinstalling ubuntu again?
Eva
2016-03-14 09:45:55 UTC
When I get sad I think about moving to Russia and joining the Moscow circus I think I could learn Russian in a few months If I was there I wouldn't be in front of people I would do work behind the scenes I don't know how much it pays So I'd have to call my parents saying I'm sorry but I need money The circus makes people happy I'd be happy
blacksoul
2012-06-19 05:37:28 UTC
Hi, you dont have to reinstall it. Lets assume your 2nd partition is /dev/sdb2. Only edit fstab: sudo vi /etc/fstab and change (or add) the line. /dev/sdb2 /home ext4 .............. write the changes and execute sudo mount /home . You can user fdisk /dev/sda or /dev/sdb , option p (print) to see your partitions. Hope it helps!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...