Changing the mounting point for logical partitions
When I installed Ubuntu 12.04, I didn't know how to properly set the mounting points for the partitioned logical drives. So, I just set it randomly. Now when I open the Home folder I cannot see any of the logical drives on the left pane. I tried to change their mounting point but couldn't.
The contents of my fstab file /etc folder is:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=691fa0bd-350f-4378-b5c7-82d277dd83c2 / ext4 errors=remount-ro 0 1
# /srv was on /dev/sda8 during installation
UUID=753d012e-ac3c-42fd-b388-d83115e88d26 /srv ext4 defaults 0 2
# /tmp was on /dev/sda5 during installation
UUID=34d8c35a-7900-4acd-988d-880792849673 /tmp ext4 defaults 0 2
# /usr was on /dev/sda6 during installation
UUID=4f7f4287-5feb-4b2b-86bb-93fe74905149 /usr ext4 defaults 0 2
# /var was on /dev/sda7 during installation
UUID=e2933e36-7906-48ac-b2ac-93500537cd4a /var ext4 defaults 0 2
My Partitions are mounted at the following locations:
/dev/sda5 is mounted at /tmp
;
/dev/sda6 is mounted at /usr
;
/dev/sda7 is mounted at /var
;
/dev/sda8 is mounted at /srv
.
If I attempt to change the contents of fstab file, it says that only root can change the contents.
How do I change the mounting points of the partitions such that they show up in the Home folder?
Solution 1:
Disks
A gui solution would be to use Disks. From there you will be able to edit the mount points of the secondary drives using the Edit Mount Points option - just unmount to edit them
Solution 2:
You change it in the mounting points in fstab, as you correctly tried. To do it you need to open /etc/fstab with root rights. For that type in a terminal:
sudo gedit /etc/fstab
There is a lot of information about that on the internet.