how to move /home to another hard drive

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

how to move /home to another hard drive

Postby geezuslvr on Mon Jan 20, 2014 2:00 pm

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...
geezuslvr
Level 1
Level 1
 
Posts: 29
Joined: Fri Jun 04, 2010 2:02 pm

Linux Mint is funded by ads and donations.
 

Re: how to move /home to another hard drive

Postby kurotsugi on Mon Jan 20, 2014 3:22 pm

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
kurotsugi
Level 5
Level 5
 
Posts: 704
Joined: Fri Jan 25, 2013 3:54 am

Re: how to move /home to another hard drive

Postby Monsta on Tue Jan 21, 2014 2:56 am

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. :)
Monsta
Level 8
Level 8
 
Posts: 2022
Joined: Fri Aug 19, 2011 3:46 am


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 7 guests