本文发表在 rolia.net 枫下论坛This how-to describes how to mount an NTFS partition in linux so that the user can access files on the NTFS partition from linux normally.
1. Login as root by running from a terminal su followed by typing the root password.
2. Create a directory in your /mnt folder. This can be done by running mkdir /mnt/X where X is the name of the directory where the NTFS partition will be mounted.
3. Run fdisk -l and note the name of the device file for the NTFS partition. Lets say the device file name is found to be /dev/Y.
4. Open the file /etc/fstab in your favorite text editor.
5. On a new line at the bottom of the file, add the line
/dev/Y /mnt/X ntfs users,owner,ro,umask=000 0 0
where X is the name of the directory you created in step 2.
6. Save and quit the file /etc/fstab
7. Then run mount -a and the NTFS partition will be mounted. It will also be mounted automatically after reboot so that you do not have to do anything after you reboot.
Important Notes
This will allow all users READ ONLY access to the NTFS partition. Write access to NTFS partitions is still considered very risky (see http://linux-ntfs.sourceforge.net/info/ntfs.html#3.2 ).
For more info, see http://linux-ntfs.sourceforge.net/info/ntfs.html .
Redhat/Fedora users, see http://linux-ntfs.sourceforge.net/info/ntfs.html#6.1 .更多精彩文章及讨论,请光临枫下论坛 rolia.net
1. Login as root by running from a terminal su followed by typing the root password.
2. Create a directory in your /mnt folder. This can be done by running mkdir /mnt/X where X is the name of the directory where the NTFS partition will be mounted.
3. Run fdisk -l and note the name of the device file for the NTFS partition. Lets say the device file name is found to be /dev/Y.
4. Open the file /etc/fstab in your favorite text editor.
5. On a new line at the bottom of the file, add the line
/dev/Y /mnt/X ntfs users,owner,ro,umask=000 0 0
where X is the name of the directory you created in step 2.
6. Save and quit the file /etc/fstab
7. Then run mount -a and the NTFS partition will be mounted. It will also be mounted automatically after reboot so that you do not have to do anything after you reboot.
Important Notes
This will allow all users READ ONLY access to the NTFS partition. Write access to NTFS partitions is still considered very risky (see http://linux-ntfs.sourceforge.net/info/ntfs.html#3.2 ).
For more info, see http://linux-ntfs.sourceforge.net/info/ntfs.html .
Redhat/Fedora users, see http://linux-ntfs.sourceforge.net/info/ntfs.html#6.1 .更多精彩文章及讨论,请光临枫下论坛 rolia.net