Automatically mount Windows Partitions In Debian

Source: Internet
Author: User
In Debian, Windows partitions are automatically mounted. For more information, see Debian. With Debian for a long time, has been using UTF-8 locales, because in the window and linux between conversion, always face the encoding problem, so annoying, today decided to change locales to GBK, it should be okay. However, the previously configured automatic Mount window is garbled. I had to modify the configuration file.

In Debian, add the following command to your/etc/fstab, and the system will automatically mount windows partitions at startup. The configuration I post now is the configuration when locales is GBK. If your locales is UTF-8, change cp936 to utf8. Although like UTF-8 but for convenience, I also want to change to GBK, who let me born in China.
CODE: #/etc/fstab: static file system information.
#
#
# If your locales is UTF-8, you should replace 'cp936' with 'utf8 '.
Proc/proc defaults 0 0
/Dev/sda9/ext3 defaults, errors = remount-ro 0 1
/Dev/sda10/home ext3 defaults 0 2
/Dev/sda8 none swap sw 0 0
/Dev/sda1/media/win_c ntfs auto, user, nls = cp936, umask = 0 0 0
/Dev/sda5/media/win_d ntfs auto, user, nls = cp936, umask = 0 0 0
/Dev/sda6/media/win_e ntfs auto, user, nls = cp936, umask = 0 0 0

# Mount fat32 file system disk.
# If locales is UTF-8
#/Dev/sda7/media/win_f vfat auto, user, utf8, umask = 0 0 0
# If locales if GBK.
/Dev/sda7/media/win_f vfat auto, user, codepage = 936, iocharset = cp936, umask = 0 0 0
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.