Enable Linux to support FAT-format disk partitions

Source: Internet
Author: User
The Linux kernel supports the DOSFATNTFS partition format. The Kernel Compilation option is slightly configured. after compilation, the fat Chinese partition can be supported. Start the Kernel Compilation configuration program cdusrsrclinu

The Linux kernel supports the DOS/FAT/NTFS partition format. The Kernel Compilation option is slightly configured. after compilation, the fat Chinese partition can be supported.

Start the Kernel Compilation configuration program # cd/usr/src/linux

# Make menuconfig The Kernel Compilation configuration program is "graphical". the default configuration options are provided to meet your machine configuration requirements, unless you use some non-popular hardware devices. If you like to make the kernel best match with your hardware, you should patiently learn to carefully configure the kernel compilation options based on your hardware model. For example, this article allows Linux kernel to support your fat32 and NTFS partitions.

Set the kernel to support the FAT partition Simplified Chinese (cp936) code table and utf character set.

  1. File systems --->
  2. DOS/FAT/NT Filesystems -->
  3. VFAT (Windows-95) fs support
  4. (936) Default codepage for FAT
  5. (Utf8) Default iocharset for FAT

NTFS file system support ---> codepage refers to a selected list of character inner code in a specific order. for earlier single-byte inCode languages, the internal code order in codepage allows the system to give one-to-one internal codes based on the input values of the keyboard according to this list. For multi-byte internal codes, the corresponding table from MultiByte to Unicode is provided, so that the characters stored in Unicode form can be converted into corresponding character internal codes; or vice versa.

Set the default codepage of the FAT partition to cp936, while cp936 is an internal code sequence table in simplified Chinese. In addition, Linux only supports UTF-8 encoding. Now I understand why we need to set these two options? The setting of these two options is directly related to the display of all Chinese characters in the partition after the FAT partition is mounted.

"NTFS file system support" is used to set the Linux read/write function for NTFS partitions. it can be set according to the actual situation. I have integrated my WINDOWS partition into FAT32.

Set Native Language Srpport (NLS)

  1. File systems --->
  2. Native Language Support --> <*> Simplified Chinese CHARSET (cp936, GB2312) <*> NLS UTF-8

In the previous article, the internal code of the FAT partition has been set to cp936. here we need to specify the corresponding font set. otherwise, many small boxes will appear when Chinese characters are displayed. Likewise, the utf8 character set also corresponds to the NLS UTF-8.

After setting the options related to kernel compilation and installation, you can save them as the. config file in the "/usr/src/linux" directory.

Kernel Compilation and installation commands:

# Cd/usr/src/linux

# Make & make modules_install

# Cp arch/i386/boot/bzImage/boot/kernel-2.6.21-gentoobzImage is the compiled kernel compression document, located in "/usr/src/linux/arch/i386/boot/bzImage ", the kernel must be placed in the/boot partition before it can be restarted and loaded.

My system is Gentoo, so I eventually copied the kernel to "/boot/kernel-2.6.21-gentoo ".

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.