Persistent mounting of partitions under Ubuntu

  
                  

Everyone knows that under Linux, you can freely mount the partition to an empty folder. Use the command mount drive name folder name, but this operation requires root privileges and must be mounted after booting. Once, is it very troublesome. Here is a way for everyone to introduce a method to hang on a partition permanently under ubuntu.

First introduce my computer situation, when installing Ubuntu /and /home are separately mounted, but there is a 43GB ext4 partition at that time did not set the mount … … today to give /Home increases the capacity, intends to mount to the folder attachment under /home (Linux system directory structure and role analysis).

First of all, you must change the owner of this partition, because the owner that is not hanging is owned by the default root, we do not have permission to operate. So you can do sudo nautilus first to execute the resource manager with administrator privileges, then go to the partition you don't have, right click, properties, permissions, change owner to your user, folder access to create and delete File, file access is set to read and write, then the group should also be your group, the settings can be the same as above, this does not affect the user's use, it does not matter. OK

Execute sudo gedit /etc/fstab

Add the following:

UUID=971f03e1-1793-4840-a4e0-5bc4d5186716 /home/huanr/amusement ext4 defaults 0 3 Note that the UUID is your hard disk partition number. You can see it in the properties. The folder to be mounted is followed by the folder to be empty. The setting of the reference/partition is set later. If the partition is hung in front, there is 0. 2 is written as 0 3, if there is 0 7 is written as 0 8, save the file, it will take effect after restart.

Copyright © Windows knowledge All Rights Reserved