Peppermint | Linux OS Community Forum
https://peppermintos.net/

Peppermint 3: Moving /home mount point (SOLVED)
https://peppermintos.net/viewtopic.php?f=35&t=6290
Page 1 of 1

Author:  t4exanadu [ Tue Nov 19, 2013 5:34 pm ]
Post subject:  Peppermint 3: Moving /home mount point (SOLVED)

Currently, my home partition is mounted the following way:

UUID=c1f1bc2d-9453-4b4c-9b91-bdf373e9deee /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee ext4 rw,user,exec,auto 0 0

It looks like /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee is just a symbolic link /home/, as far as I can tell. This has been a problem because my bash prompt is quite long, as it defaults to /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee/

What can I do to change this, so that there is just /home/ and that is the default system-wide (in my file manager as well as bash). I had previously tried simply changing the mount point in fstab but then Peppermint couldn't find my home directory.

Also, when I attempt to delete files in my home directory within PCManFM, it states that the file will be permanently deleted and can't be moved to trash. Is this is due to the permission settings for the home folder or it's symbolic link? The same thing happens for ntfs partitions, which is fine, but /home/ resides on an ext4 partition.

Author:  PCNetSpec [ Tue Nov 19, 2013 6:34 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

Can we have a look at the contents of your
Code:
gedit /etc/fstab

Author:  t4exanadu [ Tue Nov 26, 2013 4:09 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda6 during installation
UUID=88fe5c05-0fb5-4569-8266-442341f3ecfc /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=33b8ed5d-dfc6-45c9-844d-81252e7ca93f none            swap    sw              0       0

UUID=c1f1bc2d-9453-4b4c-9b91-bdf373e9deee /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee      ext4       rw,user,exec,auto 0 0

UUID=1E0C79790C794D31 /media/windows ntfs-3g  defaults,noexec,windows_names,locale=en_US.utf8  0  0


The second to last line is the one that pertains to /home. I'm not sure why it's mounting where it is, I assume I did it, but must have forgotten.

Author:  PCNetSpec [ Thu Nov 28, 2013 10:41 am ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

What's the output from:
Code:
ls -al /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee

Author:  t4exanadu [ Fri Nov 29, 2013 6:33 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

Code:
$ ls -al /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee

total 28
drwxrwxrwx  4 andy andy  4096 Nov 15 19:43 .
drwxr-xr-x  6 root root  4096 Nov 29 16:17 ..
drwxrwxrwx 60 andy andy  4096 Nov 29 16:17 andy
drwx------  2 root root 16384 Sep  2 21:24 lost+found

Author:  PCNetSpec [ Fri Nov 29, 2013 8:40 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

OK, I just need to check if you already have a /home directory, it's contents (if any) and look at a particular line in passwd ..

so can you post the output from:
Code:
ls -al /home

and
Code:
cat /etc/passwd | grep andy


And can you confirm you have a LiveCD/LiveUSB handy .. just in case.

Author:  t4exanadu [ Sat Nov 30, 2013 3:35 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

Code:
$ ls -al /home
lrwxrwxrwx 1 root root 43 Sep 16 19:51 /home -> /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee


Code:
$ cat /etc/passwd | grep andy
andy:x:1000:1000:Andy,,,:/home/andy:/bin/bash


I'll make a LiveUSB of the Peppermint 3 iso soon.

Author:  PCNetSpec [ Sat Nov 30, 2013 8:57 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

OK, looks like all you have to do is change the mountpoint in fstab to /home

BUT

There's already a symlink at that location called "home" .. so that symlink will need renaming and a /home directory creating .. this really must be done from a LiveCD/LiveUSB

first rename the /home symlink to something like home-old .. it can be deleted later.

second create a directory at /home

third change the line in fstab from:

Code:
UUID=c1f1bc2d-9453-4b4c-9b91-bdf373e9deee /media/c1f1bc2d-9453-4b4c-9b91-bdf373e9deee      ext4       rw,user,exec,auto 0 0

to
Code:
UUID=c1f1bc2d-9453-4b4c-9b91-bdf373e9deee /home      ext4       rw,user,exec,auto 0 0

SAVE the file, and reboot.

Make sure you do the above operations on the hard drive's file system .. not the Live sessions file system

Any questions .. probably best to ask them now ;)

Author:  t4exanadu [ Sun Mar 16, 2014 4:16 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point and another thing

I never got around to doing this until today. I just wanted to confirm that it worked, without any issues. Thanks again. :)

Author:  PCNetSpec [ Sun Mar 16, 2014 4:20 pm ]
Post subject:  Re: Peppermint 3: Moving /home mount point (SOLVED)

You're most welcome, thanks for marking the topic solved :)

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/