how to move /home to another hard drive

Archived topics about LMDE 1 and LMDE 2
Locked
geezuslvr

how to move /home to another hard drive

Post by geezuslvr »

I installed LMDE and did not get a choice to use a second hard drive for my /home directory.

So, I have a hard drive just sit-in there with a blank stare on its face.

I installed LMDE on sda2. On sdb1 is where I want my /home directory. How do I do this?

Thanks a lot for your quick like responses...
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kurotsugi

Re: how to move /home to another hard drive

Post by kurotsugi »

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc	/proc	proc	defaults	0	0
# /dev/sda5
UUID=359767a5-33f8-4735-b638-ff2ae2593903	/	ext4	rw,noatime,nodiratime,errors=remount-ro	0	0
# /dev/sda6
UUID=52b6b1fa-8a8a-4862-88c9-d33014139d35	/home	ext4	rw,noatime,nodiratime,errors=remount-ro	0	0
# tmpfs
tmpfs /tmp tmpfs nodev,noatime,nosuid,mode=1777 0 0
it's a example of /etc/fstab.
1. run 'sudo blkid' to get UUID number of sdb1
2. copy everything on your current /home to sdb1. down to every hidden files.
3. create a new entry on your /etc/fstab. it will be something like this

Code: Select all

# /dev/sdb1
UUID=<sdb1 UUID number>	/home	<filesystem>	rw,noatime,nodiratime,errors=remount-ro	0	0 

4. restart.

the noatime and nodiratime parameter is optional. I haven't try this yet but it theorically should work. good luck
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: how to move /home to another hard drive

Post by Monsta »

Check this thread. There's a link to the tutorial for Ubuntu, but people say it works for LMDE, you just need to read it carefully, not copy things blindly, and make a backup before doing anything of course. :)
Locked

Return to “LMDE Archive”