Article Title: automatic mounting and Character Set setting for Windows partitions in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Test1:
cd /etc sudo cp fstab fstab_backupsudo gedit fstab# /etc/fstab: static file system information.##
proc /proc proc defaults 0 0# /dev/hda9UUID=9fface48-84bd-4c00-86d1-53a4b114c0de / ext3 defaults,errors=remount-ro 0 1# /dev/hda10UUID=6d6afb51-f448-4976-a036-34448e1b6ba2 /home ext3 defaults 0 2# /dev/hda1UUID=10D62FC0692DF4A1 /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1# /dev/hda5UUID=B0746486746450E0 /media/hda5 ntfs defaults,nls=utf8,umask=007,gid=46 0 1# /dev/hda6UUID=D47C87A37C877ECC /media/hda6 ntfs defaults,nls=utf8,umask=007,gid=46 0 1# /dev/hda7UUID=C4DA-B0DD /media/hda7 vfat defaults,utf8,umask=007,gid=46 0 1# /dev/hda8UUID=3df13115-208e-42a6-9484-85580eb5d20b none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
|
Change utf8 to gb2312
Unexpected situations:
Hda1, hda5, and hda6 are mounted normally. the character set is gb2312, and hda7 is not mounted normally.
Test2:
#/Etc/fstab: static file system information .##
(See appendix) proc/proc defaults 0 0 #/dev/hda9UUID = 9fface48-84bd-4c00-86d1-53a4b114c0de/ext3 defaults, errors = remount-ro 0 1 #/dev/hda10UUID = logs/home ext3 defaults 0 2 #/dev/hda1UUID = 10D62FC0692DF4A1/media/hda1 ntfs defaults, nls = gb2312, umask = 007, gid = 46 0 1 #/dev/hda5UUID = B0746486746450E0/media/hda5 ntfs defaults, nls = gb2312, umask = 007, gid = 46 0 1 #/dev/hda6UUID = D47C87A37C877ECC/media/hda6 ntfs ults, nls = gb2312, umask = 007, gid = 46 0 1 #/dev/hda7UUID = C4DA-B0DD/media/hda7 vfat defaults, iocharset = gb2312, umask = 007, gid = 46 0 1 #/dev/hda8UUID = 3df13115-208e-42a6-9484-85580eb5d20b none swap sw 0 0 0/dev/hdc/media/cdrom0 udf, iso9660 user, noauto 0 0 0 0
|
Change ntfs hard disk partition to nls = gb2312
Change vfat hard disk partition to iocharset = gb2312
Success !~
Appendix:
1. The first is the physical location of the storage device you want to mount, such as hdb or/dev/hda6.
2. The second item is the directory to which you want to add it, such as/home or/. This is the Mount point prompted during installation.
3. the third item is the so-called local filesystem, which contains the following formats: ext, ext2, msdos, iso9660, nfs, swap, etc., or ext2. For details, see/prco/filesystems.
4. the fourth item is the status you want to set during mount, such as ro (read-only) or ults (including other parameters such as rw, suid, exec, auto, nouser, and async ), see mount nfs 」.
5. The fifth item is to provide the DUMP function. It indicates whether the BACKUP flag is required during system DUMP. The value is 0.
6. the sixth item is to set whether the filesystem needs to perform the check action at startup. Except for the root filesystem, the required check value is 1. The other items can be set as needed. The internal value is 0.