We all use computers, but do we know how computers work? The essential thing in a computer is the operating system. Today we will talk about using Windows partitions in Linux operating systems. I hope you remember that Windows partitions are used in Linux operating systems. The Linux operating system supports many file systems, including Windows fat32 and ntfs.
The support for fat32 is already very good and can be used directly, but the support for ntfs is not very good, it can only be read, and writing is extremely dangerous, and the support for ntfs is not the default, which means you want to use ntfs If so, you need to recompile the kernel.
In view of the complexity of reprogramming the kernel for novices, here we only explain the method of using fat32 partitions. Here are two solutions to the above problems: 1. When installing the system (Linux operating system) and selecting the mount point for the partition, you You can create several mount points, such as /mnt/c, /mnt/d, etc., then select your Windows fat32 partition and mount them to the previously established mount points. (Note, as mentioned before, you cannot mount an ntfs partition to a mount point here, because ntfs is not supported by default.) In this way, you can use your Windows fat32 partition directly after installing the system.
For example, if you mount the Windows c drive (/dev/hda1 in the Linux operating system) to /mnt/c, then you can find all the data in your c drive in the /mnt/c directory. 2. If you did not mount your fat32 partition as mentioned in Solution 1 when installing the system, it doesn't matter, you can still solve this problem easily. First, open /etc/fstab with a text editor (such as vi) and add a few lines similar to the following at the end of the file
/dev/hda1 /mnt/c vfat default 0 0
The modification you need to make is to change /dev/hda1 to the device number of the fat32 partition you want to mount in the Linux operating system, and change /mnt/c to the corresponding mount point. Note that the mount point is a directory, and this directory must be created in advance. For example, I have three fat32 partitions. In Windows, they are disk c, d, and e. In the Linux operating system, the device numbers are /dev/hda1, /dev/hda5, and /dev/hda6 respectively. Then I need to create 3 mount points first, such as /mnt/c, /mnt/d, /mnt/e, and then add these lines to /etc/fstab:
/dev/hda1 /mnt/c vfat default 0 0
/dev/hda5 /mnt/d vfat default 0 0
/dev/hda6 /mnt/e vfat default 0 0
Save and exit the editor. In this way, you can directly use the three fat32 format Windows partitions of c, d, and e after restarting the machine. In this way, you will complete the use of Windows partitions in the Linux operating system.