LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   putting /home on a seperate partition (https://www.linuxquestions.org/questions/linux-general-1/putting-home-on-a-seperate-partition-58326/)

ludwig W 05-06-2003 01:09 AM

putting /home on a seperate partition
 
Hi,
I've heard that some people put their /home directory on a seperate partition so that if the system gets hosed,they can save all their important stuff quite easily.
I was just wondering how easy it is to do this? Presumably it's not just a case of moving /home to the new partition...or is it?


regs,
Ludwig

acid_kewpie 05-06-2003 02:33 AM

yeah that's all it is really. but then that it self isn't a single command... things like that are conceptually really easy, as once that directory exists in it's new physical location, mounting it at /home recreates a filesystem that looks exactly the same as it did before, but is built differently under the hood. There are a fair few threads about how to do this if you are thinking about it.

m0rl0ck 05-06-2003 02:37 AM

Quote:

Presumably it's not just a case of moving /home to the new partition...or is it?

No its actually case of moving everything under /home to the new /dev and then making a mount point /home to mount it on :) Then putting an entry in fstab that looks something like:

device mountpoint filesystem option1,option2,option3 0 0

The numbers at the end are for dump and fsck. Read man mount.


All times are GMT -5. The time now is 03:25 AM.