Used Ubuntu friends should know that Ubuntu can implement automatic mounting of Windows partitions. This makes it extremely convenient for friends who need to read Windows partitions.
Just finished archlinux and configure the desktop environment Friends found that ArchLinux can not achieve automatic mount, but also to the command line toss, so laborious ah!!
Today, I'm going to teach you how to get ArchLinux to automatically mount Windows NTFS partitions.
Let's install ntfs-3g first.
Pacman-s ntfs-3g
Then we'll see which partition is the NTFS partition.
Use
/sbin/fdisk-l
For example
[Root@cool whitehat]#/sbin/fdisk-l
disk/dev/sda:160.0 GB, 160041885696 bytes
255 heads, Sectors/track, 19457 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Disk identifier:0xbbc58b91
Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 1305 10482381 7 Hpfs/ntfs
/dev/sda2 1306 19457 145805940 f W95 Ext ' d (LBA)
/DEV/SDA5 1306 3916 20972826 7 Hpfs/ntfs
/dev/sda6 3917 6527 20972826 7 hpfs/ntfs
/DEV/SDA7 6528 12856 50837661 7 hpfs/ntfs
/dev/sda8 12857 15467 20972826 7 hpfs/ntfs
/DEV/SDA9 15468 15479 96358+ Linux
/DEV/SDA10 15480 15603 995998+ Linux
/dev/sda11 15604 16225 4996183+ Linux
/dev/sda12 16226 17470 10000431 Linux
/dev/sda13 17471 19457 15960546 Linux
When you know which is an NTFS partition, we'll edit the/etc/fstab and implement the automatic mount.
Vi/etc/fstab
Or
Nano/etc/fstab
To open the/etc/fatab.
Add something similar to the following: (Just an example)
Its characteristics are:
1. You can allow any user to mount and uninstall your NTFS partitions.
2. User (uid=1000) and group (GID=100) have all the files for the partition, and have-rw-rw-r--(0664) permissions on the file, and Drwxrwxr-x (1775) permissions on the directory.
3. Use Zh_cn.utf8 as Locale
4./dev/sda5 is automatically mounted at startup and/DEV/SDA1 is not
Its mode is:
<partition> <mount point> ntfs-3g <options> 0 0
Typical, very useful ntfs-3g options
* Users-if the ntfs-3g executable sets suid root (command: chmod u+s/bin/ntfs-3g), it allows anyone to mount/uninstall NTFS partitions. Please note that you want to use users instead of user
* Noauto-Do not mount the partition automatically when starting
* UID-Specifies the owner of files and directories in an NTFS partition (in decimal notation)
* GID-Specifies the user group (in decimal notation) for files and directories in an NTFS partition
* Fmask-file permissions (octal number Mask)
* Dmask-Directory permissions (octal number Mask)
* locale-typically used to make files that use the internationalized character set visible
Mask value
You can easily understand the mask value of a specific permission without any calculation:
1. Start a new shell session. Use any terminal simulator you prefer.
2. Use the Umask command to obtain the number of octal specified permission settings.
1. Use the Umask "settings" file to create a mask. For example:
$ umask Ug=rw,o=r
Please note that ug=rw,o=r equals-rw-rw-r--or 0664.
2. Directly without parameters to perform umask get octal number.
$ umask
will be displayed
0113
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.