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 articles on the Internet about this. The common method is to modify the/etc/fstab file, my modifications are as follows: UUID = c8dc2250-cd98-4043-8ecc-65815a983fb4/& n

My system is Fedora 14. It is quite simple to mount Windows partitions in Fedora. There are many articles on the Internet about this,

The common method is to modify the/etc/fstab file. My modifications are as follows:

 
  1. UUID=C8dc2250-Cd98-4043-8ecc-65815a983fb4/ext4 defaults 1 1
  2. UUID=7720976d-Aefe-4284-9548-b4680787b483/boot ext4 defaults 1 2
  3. UUID=D0181310-663a-457a-a84b-ddec7d84868d/home ext4 defaults 1 2
  4. UUID=93d7b2c9-2868-4cda-ab30-99702f74dc52 swap defaults 0 0
  5. Tmpfs/dev/shm tmpfs defaults 0 0
  6. Devpts/dev/pts devptsGid=5,Mode=6200 0
  7. Sysfs/sys sysfs defaults 0 0
  8. Proc/proc defaults 0 0
  9. /Dev/sda2/media/C_Windows7_ OS ntfs defaults 0 1
  10. /Dev/sda5/media/D_Software ntfs defaults 0 1
  11. /Dev/sda6/media/E_Research ntfs defaults 0 1
  12. /Dev/sda7/media/F_Document ntfs defaults 0 1
  13. 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.
  14. However, the Mount result 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:
  15. UUID=C8dc2250-Cd98-4043-8ecc-65815a983fb4/ext4 defaults 1 1
  16. UUID=7720976d-Aefe-4284-9548-b4680787b483/boot ext4 defaults 1 2
  17. UUID=D0181310-663a-457a-a84b-ddec7d84868d/home ext4 defaults 1 2
  18. UUID=93d7b2c9-2868-4cda-ab30-99702f74dc52 swap defaults 0 0
  19. Tmpfs/dev/shm tmpfs defaults 0 0
  20. Devpts/dev/pts devptsGid=5,Mode=6200 0
  21. Sysfs/sys sysfs defaults 0 0
  22. Proc/proc defaults 0 0
  23. /Dev/sda2/media/C_Windows7_ OS ntfs ults,Umask=007,Uid=500,Gid=5000 1
  24. /Dev/sda5/media/D_Software ntfs ults,Umask=007,Uid=500,Gid=5000 1
  25. /Dev/sda6/media/E_Research ntfs defaults,Umask=007,Uid=500,Gid=5000 1
  26. /Dev/sda7/media/F_Document ntfs defaults,Umask=007,Uid=500,Gid=5000 1
 

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.

 
  1. [Www.linuxidc.com @ localhost ~] $ Lh/media
  2. Total 56 K
  3. Drwxrwx --- 1 hfz 8.0 K Sep 3 C_Windows7_ OS
  4. Drwxrwx --- 1 hfz 4.0 K Sep 3 D_Software
  5. Drwxrwx --- 1 hfz 8.0 K Sep 12 E_Research
  6. Drwxrwx --- 1 hfz 4.0 K Sep 4 F_Document
  7. Drwx ------ 1 hfz 8.0 K Sep 3 MyDisk1
  8. Drwx ------ 1 hfz 24 K Sep 3 22:52 MyDisk2
  9. [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.