Several ways to load Windows partitions

  

Computer store news: Linux system can recognize Windows partition, it is not automatically loaded by default. But sometimes in Linux you need to swap files with the Windows partition, which requires loading it. Depending on the exchange needs, we can use different loading methods. The following is an example of RedHat Linux 7.3 Simplified Chinese version. First, manual loading If you only occasionally do some file exchange, and like to drum in the emulation terminal, you can use this method. Assuming that the partition to be loaded is a G drive in Windows, you can create a g directory under the Linux /mnt directory. /mnt is a directory for Linux to load various storage devices. By default, there is floppy (floppy drive). ) and cdrom (optical drive) two directories, and then calculate it is the first device in Linux, the method is: Linux marks the first partition of the first hard disk as hda1, the first partition of the extended partition is marked hda5, In other words, the D drive is hda5, then the G drive is hda8, and so on. After entering the KDE desktop, open the emulation terminal and enter the “mount -o iocharset=cp936 /dev/hda8 /mnt/g” (without the quotes) command, and press Enter to get it. Go to the /mnt/g directory and see what happens? All the contents of the G drive are inside. Explain, "mount" is the command to load the partition, "-o iocharset=cp936" is a parameter. With this parameter, we can not only read and write files, but also display Chinese long file names after loading a partition. . & ldquo; dev /hda8 & rdquo; is the name of the G drive under Linux, it is placed as a device in the /dev directory, " /mnt /g & rdquo; is the target directory for loading G drive. The whole command means to attach “dev/hda8” (G disk) to the directory of “/mnt/g” and display the Chinese long file name, which can read and write files. Second, semi-automatic loading If you only occasionally exchange files and feel that it is too much trouble to enter commands in the emulation terminal, you can use this method with a click of the mouse. On the KDE 3.0 desktop, you can create a link to the application, we can use it to create a shortcut to the Mount command, click it to load the specified Windows partition. Still take the G disk as an example: Right click on the desktop, select “lds; application link” in the pop-up menu, enter your own name in the text input box of the “General” tab (eg “Load G drive”), switch to the “Execute” tab, enter “ld-o iocharset=cp936 /dev/hda8 /mnt/g” in the "command" input box, select “ Run the ” checkbox in the terminal and click "OK" to exit. Click the “Load G drive” icon on the desktop, the terminal window flashes, and the G drive can be loaded. Third, fully automatic loading If you are constantly switching files, you want to load a specific partition into Linux and want to attach this partition to a fixed directory, you can use this way. Use any text editor to open the fstab file in the /ect directory, add “/dev/hda8 /mnt/g vfat defaults, iocharset=cp936 0 0” to the end of the last line, save and exit. The G drive will be automatically loaded each time the system is rebooted. Description: “vfat” indicates that the FAT32 file system is loaded. If it is “msdos”, it is the FAT16 file system. “ntfs” is the NTFS file system of NT

Copyright © Windows knowledge All Rights Reserved