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:
- UUID=C8dc2250-Cd98-4043-8ecc-65815a983fb4/ext4 defaults 1 1
- UUID=7720976d-Aefe-4284-9548-b4680787b483/boot ext4 defaults 1 2
- UUID=D0181310-663a-457a-a84b-ddec7d84868d/home ext4 defaults 1 2
- UUID=93d7b2c9-2868-4cda-ab30-99702f74dc52 swap defaults 0 0
- Tmpfs/dev/shm tmpfs defaults 0 0
- Devpts/dev/pts devptsGid=5,Mode=6200 0
- Sysfs/sys sysfs defaults 0 0
- Proc/proc defaults 0 0
- /Dev/sda2/media/C_Windows7_ OS ntfs defaults 0 1
- /Dev/sda5/media/D_Software ntfs defaults 0 1
- /Dev/sda6/media/E_Research ntfs defaults 0 1
- /Dev/sda7/media/F_Document ntfs defaults 0 1
- 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 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:
- UUID=C8dc2250-Cd98-4043-8ecc-65815a983fb4/ext4 defaults 1 1
- UUID=7720976d-Aefe-4284-9548-b4680787b483/boot ext4 defaults 1 2
- UUID=D0181310-663a-457a-a84b-ddec7d84868d/home ext4 defaults 1 2
- UUID=93d7b2c9-2868-4cda-ab30-99702f74dc52 swap defaults 0 0
- Tmpfs/dev/shm tmpfs defaults 0 0
- Devpts/dev/pts devptsGid=5,Mode=6200 0
- Sysfs/sys sysfs defaults 0 0
- Proc/proc defaults 0 0
- /Dev/sda2/media/C_Windows7_ OS ntfs ults,Umask=007,Uid=500,Gid=5000 1
- /Dev/sda5/media/D_Software ntfs ults,Umask=007,Uid=500,Gid=5000 1
- /Dev/sda6/media/E_Research ntfs defaults,Umask=007,Uid=500,Gid=5000 1
- /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.
- [Www.linuxidc.com @ 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 ~] $
|