How to realize permanent mounting Partition in Ubuntu
This article shows you how to achieve permanent mount partition in Ubuntu, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Both / and / home were mounted separately when Ubuntu was installed, but there was also an ext4 partition of 43GB that was not mounted at the time. Today, in order to add capacity to / home, I intend to mount it to the folder amusement under / home (Linux system directory structure and function analysis).
The first step is to change the owner of the partition, because the owner that is not hung is owned by the default root, and we do not have permission to operate. So you can first do sudo nautilus to execute the resource manager with administrator privileges, and then go to the partition you did not mount, right, properties, permissions, change the owner to your user, folder access is set to create and delete files, file access is set to read and write, and then the group should be your group, the settings can be the same as above, this does not affect the use of this user, it does not matter. Confirm
Execute sudo gedit / etc/fstab
Add the following:
UUID=971f03e1-1793-4840-a4e0-5bc4d5186716 / home/huanr/amusement ext4 defaults 03
Note that UUID is your hard disk partition number, you can see in the properties, the back is to mount the folder, to empty folder on the line, the back of the setting reference / partition settings, if the partition hanging in front of 0 2 is written as 0 3, if there is 0 7 is written as 0 8, save the file, restart will take effect.
The above is how to achieve permanent mount partition in Ubuntu. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.