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 |