Ask Your Question
0

Mount /home somewhere else

asked 2013-10-01 18:28:28 -0600

maramyfriend gravatar image

updated 2013-10-01 18:42:21 -0600

skytux gravatar image

Hi,

I just reinstalled Fed 19 (why? jsut to have a clean install).

Before the reinstall I had:

/dev/sda (partitioned) for the OS
/dev/sdb1 as a full My Documents or /home

What I would like to do now is the clean install on the main hard drive to point to my documents. What I mean is, when in nautilus and I click on the home button it takes me to the drive with all my stuff.

here are the results to sudo blkid

/dev/sda1: SEC_TYPE="msdos" UUID="1D54-736D" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="3a8af40d-f5fc-47ca-bbc8-97e96ac3873f" 
/dev/sda2: UUID="4dbce2e0-112d-4125-8e38-0f6a0cb928bb" TYPE="ext4" PARTUUID="3ce36098-d5a9-419b-9d97-03766fcd70f0" 
/dev/sda3: UUID="8be07e39-5182-4507-8767-c34588b395d3" TYPE="ext4" PARTUUID="8f71ba57-bc8a-4385-8b8e-406636debb57" 
/dev/sda4: UUID="a4e0fe1d-af67-462e-bc82-139d8fb973bc" TYPE="ext4" PARTUUID="afa54213-fb62-432f-9b5f-6a741e2899b0" 
/dev/sda5: UUID="d7894893-61ff-49ea-bd98-3b21de6b870f" TYPE="swap" PARTUUID="92bc2d39-c05c-4d61-a991-0cbec3723a59" 
/dev/sdb1: LABEL="mydocs" UUID="e4cd9e8a-93c0-4bf4-a083-3d1e091e9ecb" TYPE="ext4"

and here is my fstab

UUID=a4e0fe1d-af67-462e-bc82-139d8fb973bc /                       ext4    defaults        1 1
UUID=4dbce2e0-112d-4125-8e38-0f6a0cb928bb /boot                   ext4    defaults        1 2
UUID=1D54-736D          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
UUID=8be07e39-5182-4507-8767-c34588b395d3 /media/home/paul        ext4    defaults        1 2
UUID=d7894893-61ff-49ea-bd98-3b21de6b870f swap                    swap    defaults        0 0
LABEL=mydocs /media/home ext4 defaults,noatime 1 2

So I need:

  1. LABEL=mydocs to mount at boot

  2. when I click on Home in nautilus it should open up a view of all stuff currently in there.

Can anyone help please?

edit retag flag offensive close merge delete

Comments

Why not just mount your old home partition at /home again?

randomuser gravatar imagerandomuser ( 2013-10-02 01:11:27 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-10-03 17:09:44 -0600

sea gravatar image

updated 2013-10-03 17:11:21 -0600

Just change the /etc/fstab:

LABEL=mydocs /media/home ext4 defaults,noatime 1 2

to:

UUID=e4cd9e8a-93c0-4bf4-a083-3d1e091e9ecb /media/home ext4 defaults,noatime 1 2

However, it could be as well:

/dev/sdb /home ext4 defaults,noatime 1 2

Hope this helps

EDIT: The LABEL flag is only shown, if even, in partition or disk managers.

edit flag offensive delete link more

Comments

Thanks for the response. The bottom option along with previous commentor statement helped solve my problem

maramyfriend gravatar imagemaramyfriend ( 2013-10-04 08:12:06 -0600 )edit
1

answered 2013-10-01 21:25:01 -0600

sideburns gravatar image

Unless I'm completely misunderstanding you, you'd have to make two changes to /etc/fstab to get what you want: you probably want to have the partition now mounted at /media/home/paul mounted simply as /home/paul, although this will make anything you currently have in /home/paul unreachable, including all of your personalized config files unless you move them to what's going to be your new home directory. Second, the other partition would need to be mounted at /home/paul/Documents, although again, you'll have to transfer anything currently in that directory to the new location before the changes take effect.

If this isn't what you want, please add a comment (not an answer) below giving more details of what you're looking for. And, of course, be sure you back up your current home folder before making any changes.

edit flag offensive delete link more

Comments

Thats the one, thanks a lot. I was struggling with the logic of mounting in fstab. Problem solved.

maramyfriend gravatar imagemaramyfriend ( 2013-10-04 08:10:48 -0600 )edit

Question Tools

Stats

Asked: 2013-10-01 18:28:28 -0600

Seen: 248 times

Last updated: Oct 03 '13