Ask Your Question

Set /home mountpoint on an external partition

asked 2016-05-18 08:08:07 -0500

Thomas KUNTZ gravatar image

updated 2016-05-18 10:06:52 -0500

PROBLEM SOLVED! For those who are looking for a really complete tutorial for doing this safely, you can have a look at THIS LINK. Bellow is my original question.

Hi, I actually don't know how to set my /home mountpoint and folder on an external ext4 partition for my user (which is the only one) but also for all those I'll maybe create in the future. If someone could explane me how to do that, it would be really helpful to me. And another thing is that I don't know which path to use when I want - for instance - to position me with the command line in a partition which isn't the root of the system.

Thanks in advance for your help and your time.

PS : Sorry I my English is bad, but I'm only a 14 years old French schoolboy...

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2016-05-18 10:04:01 -0500

Thomas KUNTZ gravatar image

Thanks a lot for your answer, but I badly sought an answer before to ask here and I just found a really good tutorial for doing this here.

edit flag offensive delete link more

answered 2016-05-18 09:07:19 -0500

mogwai gravatar image

updated 2016-05-19 06:24:08 -0500

  1. Mount external partition to /mnt
  2. mv /home/* /mnt/
  3. Get external partition uuid: blkid
  4. sudo nano /etc/fstab and add line
    UUID=<YOUR-UUID> /home ext4 defaults 0 0
  5. unmount /mnt
  6. mount -a
edit flag offensive delete link more


1.) dont move (mv), copy (cp)the content /home/ to the new directory

3.) blkid has to run as root, or sudo blkid

4.) you mean sudoedit...? (it sucks for newbies), I recommend sudo nano /etc/fstab or sudo gedit /etc/fstab

florian gravatar imageflorian ( 2016-05-18 11:04:43 -0500 )edit

1) It's a matter of dispute. mount /dev/sdb1 /mnt && mv /home/* /mnt && umount /mnt && mount /dev/sdb1 /home always worked for me. May be I have not enough experience. I think after cp you need to do rm /home/* -r from root partition. Am I wrong?

3) Fedora 23. $ blkid works fine in new gnome-terminal session.

4) Yes. My fault. vi seems so natural for me…so I forgot about nano etc.

mogwai gravatar imagemogwai ( 2016-05-18 12:31:01 -0500 )edit

1.) When you are doing this on the booted system, some files may not be moved because they may be in use and opened. Yes, after successful copying you can remove the old /home. rsync, as suggested in Ubuntu guide (linked above) is also quite elegant...

3.) Sorry, you are right, no need for root rights. My bad.

4.) I know, some people like it, for newbies it can be hard... You could correct the little typo (suod) in that command to make at least work...

florian gravatar imageflorian ( 2016-05-18 13:03:23 -0500 )edit

Question Tools

1 follower


Asked: 2016-05-18 08:08:07 -0500

Seen: 145 times

Last updated: May 19 '16