Mount Windows partitions in Fedora

Source: Internet
Author: User
My system is fedora14. Mounting windows partitions in fedora is actually quite simple. There are many Article About this,
The common method is to modify the/etc/fstab file. My modifications are as follows:
UUID = c8dc2250-cd98-4043-8ecc-65815a983fb4/ext4 ults 1 1
UUID = 7720976d-aefe-4284-9548-b4680787b483/boot ext4 ults 1 2
UUID = d0181310-663a-457a-a84b-ddec7d84868d/home ext4 ults 1 2
UUID = 93d7b2c9-2868-4cda-ab30-99702f74dc52 swap ults 0 0
Tmpfs/dev/SHM tmpfs defaults 0 0
Devpts/dev/PTS devpts gid = 5, mode = 620 0 0
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 0 0
/Dev/sda2/Media/c_windows7_osntfsdefaults01
/Dev/sda5/Media/d_softwarentfsdefaults01
/Dev/sda6/Media/e_researchntfsdefaults01
/Dev/sda7/Media/f_documentntfsdefaults01

The red part is the NTFS partition in Windows. The numbers of each partition in Linux can be obtained by using the fdisk-l command under the root permission.
However, the result of the mounting is that the NTFS partition is mounted to the root user, and other users can access it at will. In other words, the permission of the Mount directory of each partition is rwxrwxrwx, this is not what I need. My idea is to mount these partitions under my current account, so that other users will not be able to access them. Then I checked it online, we can do this:
UUID = c8dc2250-cd98-4043-8ecc-65815a983fb4/ext4 ults 1 1
UUID = 7720976d-aefe-4284-9548-b4680787b483/boot ext4 ults 1 2
UUID = d0181310-663a-457a-a84b-ddec7d84868d/home ext4 ults 1 2
UUID = 93d7b2c9-2868-4cda-ab30-99702f74dc52 swap ults 0 0
Tmpfs/dev/SHM tmpfs defaults 0 0
Devpts/dev/PTS devpts gid = 5, mode = 620 0 0
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 0 0
/Dev/sda2/Media/c_windows7_osntfsdefaults, umask = 007, uid = 500, gid = 50001
/Dev/sda5/Media/d_softwarentfsdefaults, umask = 007, uid = 500, gid = 50001
/Dev/sda6/Media/e_researchntfsdefaults, umask = 007, uid = 500, gid = 50001
/Dev/sda7/Media/f_documentntfsdefaults, umask = 007, uid = 500, gid = 50001
The green section above is the part to be added. umask provides the Mount directory and permissions, uid is the user ID, and GID is the group ID, these can be found in the/etc/group and/etc/passwd files. in this way, our results are achieved.
[Hfz @ localhost ~] $ LH/Media
Total 56 K
Drwxrwx --- 1 hfz 8.0 K Sep 3 c_windows7_ OS
Drwxrwx --- 1 hfz 4.0 K Sep 3 d_software
Drwxrwx --- 1 hfz 8.0 K Sep 12 e_research
Drwxrwx --- 1 hfz 4.0 K Sep 4 f_document
Drwx ------ 1 hfz 8.0 K Sep 3 mydisk1
Drwx ------ 1 hfz 24 k Sep 3 22:52 mydisk2
[Hfz @ localhost ~] $

 

Related Article

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.