Configure the fstab file in Ubuntu for personalized loading of Windows partitions

Source: Internet
Author: User
The purpose of this article is to make the user of the mounted Windows partition belong to your own Ubuntu system through personalized configuration, so that you can easily perform file read and write operations in the graphic interface; remove the execution permissions of many files after mounting. Because Windows files cannot execute any program in Ubuntu, this execution permission is useless, in addition, it may also impede normal operations, so it is better to remove it. When configured to do not check the mounted Windows partition at startup, first, it reduces the startup time, followed

The purpose of this article is to make the user of the mounted Windows partition belong to your own Ubuntu system through personalized configuration, so that you can easily perform file read and write operations in the graphic interface; remove the execution permissions of many files after mounting. Because Windows files cannot execute any program in Ubuntu, this execution permission is useless, in addition, it may also impede normal operations, so it is better to remove it. If you configure it to not check the mounted Windows partition during startup, the first step is to reduce the startup time, and the second step is to check, in fact, it is useless for Windows partitions, and sometimes it will damage the files in the original Windows partition, so it is better not to check; solve the Chinese garbled problem, UTF-8 encoding can be used to support Chinese characters. Of course, you can also use other Chinese encoding methods.

First, run the command on the terminal

Ls-l/dev/disk/by-uuid

Obtain the uuid of the Windows partition. If the following result is returned

Lrwxrwxrwx 1 root 10 7AF2-643D->.../sda9

Next, edit the/etc/fstab file and add the following two lines:

#/Dev/sda9

UUID = 7AF2-643D/media/AMUSE vfat uid = 1000, gid = 0, umask = 133, dmask = 022, utf8 0 0

Description

First line #/dev/sda9

Comment statement, indicating that the partition is mounted for easy viewing

Row 2 UUID = 7AF2-643D/media/AMUSE vfat uid = 1000, gid = 0, umask = 133, dmask = 022, utf8 0 0

Columns are separated by the tab key, and can also be replaced by spaces.

UUID = 7AF2-643D: uuid Number of the partition to be mounted

/Media/AMUSE: mount point

Vfat: file system type. My partitions are of the fat32 type, so vfat is used. This value must be modified based on the file system type of the mounted partition. If you do not know it, you can use the auto value to automatically detect it.

Uid = 1000, gid = 0, umask = 133, dmask = 022, utf8: Key column value. Uid = 1000 indicates who the file in the Mount partition belongs to. Here, 1000 is used, which is the id value of my Ubuntu user account. You can modify it as needed, change to the user ID of your Ubuntu system. gid = 0 indicates the group to which the file belongs. Here, 0 indicates the root user group and can be modified as needed. umask = 133, permission mask. This value indicates that the file permission in the Mount partition is rw-r --. This permission configuration is also applicable. dmask = 022. This is the folder permission, the permission value is rwxr-xr-x, which is very useful for folders. The above two permission mask values can be modified as needed, but I personally recommend this configuration, practical, enough; utf8, partition encoding settings, to solve Chinese garbled issues, I like to use utf8, individuals can also modify as needed, replace with gb2312 and other support Chinese.

0: The default value is 0.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.