The Linux kernel supports reading and writing fat, NTFS, vfat, FAT32, HFS, and other file systems (at least read). Therefore, Windows is more accessible in Linux than Linux, you can directly use Linux commands without using special software. Linux accesses windows partitions in fat/FAT32 partitions Linux regards all devices in the system as files, so it is very convenient to access windows partitions in Linux. You only need to use the mount command to mount Windows partitions into a folder in Linux. The format of the mount command is (you must log on as the root user ): Mount [-affhnrvvm] [-| <tag>] [-O <option>] [-T <file system>] [device name] [mount point] To mount a partition (such as a drive D) in windows to the/mnt/win directory in Linux, create a win folder in/MNT, start the console terminal mode, enter the command "Mount/dev/hda5/mnt/win", and then enter the/mnt/win directory. Then you can see the content of drive D in windows. Some may ask, why do you need to enter the above command, especially what is/dev/hda5? This is a representation of partitions in Linux. in Linux, the Windows partition is generally: hda1 is drive C, hda5 is drive D, hda6 is drive E, and so on... However, after using the above method to load windows partitions, another troublesome thing is that all Chinese file names and folder names in windows are displayed as question marks, but English is displayed normally, this computer also has ethnic discrimination! To combat this type of discrimination, we must make full use of our weapons and add some parameters to the mount command to make it correctly display Chinese characters. In this case, you only need to change the above command to "Mount-T vfat-O iocharset = cp936/dev/hda5/mnt/win" and run it. When this partition is loaded, we can also detach it when it is not in use, and the command for detaching is umoun. If you detach the partition, just enter "umount/mnt/win. In addition, we can also enable Linux to automatically load partitions at startup, so that you do not have to input commands to load partitions every time you use Windows partitions. First, Log On As A root user. after entering the graphic interface, find the fstab file under the/etc directory in the File Manager of Linux, right-click and choose a text editing software to open the file, add the command "/dev/hda5/mnt/win vfat codePage = 936, iocharset = cp936 1 1" at the bottom of the content, and create the win folder under the/mnt directory, after restarting the computer, access the/mnt/win directory again. Windows partition content. You can also load multiple partitions using this method, and you can also use the VI editor in the command line mode during editing. Linux accesses windows partitions during NTFS partitioning. If you use Mandrake or red-flag Linux and the hard disk already has NTFS partitions during installation, you can access the hard disk NTFS partition without re-compiling the kernel after installation; if there is no NTFS partition in the hard disk during installation, or the RedHat Linux is used, you must re-compile the kernel and add the NTFS module to access the NTFS partition normally. First, log on to the root user, and then insert the second installation disk of RedHat Linux into the optical drive, find the kernel-source-2.4.xx-x.i386.rpm in the/RedHat/RPMS directory (here X represents a number) file, if the graphic interface, double-click the installation directly. If it is a command line, enter the rpm-IVH kernel-source-2.4.xx-x.i386.rpm command. And then enter the/usr/src/linux-2.4.xx-x/configs directory, here there are many need to compile the kernel cultivation file, generally choose "kernel-source-2.4.xx-x.i686.config. Copy the file to the/usr/src/linux2.4.xx-X Directory, open it in a text editor, and change the line "# config_ntfs_fs is not set" to "config_ntfs_fs = m ". In terminal mode, enter the/usr/src/linux-2.4.xx-3 directory, run the "make modules" command to compile the desired NTFS module, in the compilation process do not need to care about the NTFS module, in the compilation process does not need to care about the content irrelevant to NTFS, after the compilation is complete, in the/usr/src/linux-2.4.xx-x/fs/NTF directory can find a NTFS. o file, copy it to/lib/modules/2.4.xx-x/kernel/fs Directory, then go back to the/usr/src/linux-2.4.xx-3 directory and enter the command:
The remaining work is the same as that in the previous fat/FAT32 partition when Linux accesses the Windows partition. 2. Access Linux partitions in Windows I have mentioned many articles about how to access FAT32 and NTFS partitions in Linux, but there are still some articles that guide windows to access ext2 and reiserfs partitions, today, I have sorted out the tools for accessing Linux partitions in windows and explained how to use them (the following software does not indicate that both the Chinese version and the Chinese version are in English version, the test environment is Windows XP SP2 ). Let's pick a good example. 1. Release e2fs 1.00 pre 6B in Chinese : Http://www.newhua.com/soft/19613.htm After downloading and decompressing, execute unzip e2fs.exe. The program will automatically search for the ext2 and ext3 partitions, as shown in the following figure: Use the advanced resource manager total commander and ext2 + Reiser plug-ins to implement read-only access to ext2 and Reiser FS partitions Total Commander 6.55 green Simplified Chinese version : Http://www.newhua.com/soft/5690.htm Ext2 + Reiser plugin download : Http://ghisler.fileburst.com/fsplugins/ex2fs.zip The http://www.ghisler.com/plugins.htm has many plug-ins that can be downloaded for use. Download and install total commander, download and decompress the output directory in ext2 + Reiser plug-in to the installation directory of total commander (or other fixed locations on the hard disk, You cannot delete it if you want to use it ), run total commander, select Configuration-plug-in-File System plug-in-configuration-add-find ex2fs. WFX and add, and "OK" plug-in added successfully. Now under Linux ext2, ext3, ext4 and so on, in the selection of plug-ins, I chose diskinternals_reader.wfx, In the http://www.ghisler.com/plugins.htm Can be downloaded. Reference: http://hi.baidu.com/forrestyx/blog/item/7503464e6f7e313caec3ab66.html |