We are all using computers, but do we know how computers work? An operating system is essential to a computer. Today we will talk about how to use Windows partitions in Linux. I hope you will remember how to use Windows partitions in Linux. Linux supports many file systems, including Windows fat32 and ntfs.
The support for fat32 is very good and can be used directly, but the support for ntfs is not very good and can only be read, while writing is extremely dangerous, and the support for ntfs is not the default, in other words, if you want to use ntfs, you need to re-compile the kernel.
In view of the complexity of re-encoding the kernel for beginners, here we will only explain how to use the fat32 partition. The following two solutions are provided: 1. to select a mount point for a partition, you can create several mount points, such as/mnt/c and/mnt/d, then select your Windows fat32 partition and mount them to the mount point created earlier. Note: As mentioned above, you cannot mount an ntfs partition to a mount point here. It should be not supported by ntfs by default .) In this way, you can directly use your Windows fat32 partition after installing the system.
For example, if you mount/dev/hda1 in a Linux c drive to/mnt/c, then you can find all the data in your drive c in the/mnt/c directory. 2. If you do not mount your fat32 partition as described in solution 1 when installing the system, you can still easily solve this problem. First, use a text editor such as vi) to open/etc/fstab and add lines similar to the following at the end of the file
/Dev/hda1/mnt/c vfat default 0 0
Change/dev/hda1 to the device number of the fat32 partition to be mounted in the Linux operating system, and change/mnt/c to the corresponding mount point. Note that the mount point is a directory, which must be created in advance. For example, I have three fat32 partitions: c, d, and E disks in Windows. The device numbers in the Linux operating system are/dev/hda1,/dev/hda5, respectively, /dev/hda6. Then we need to first create three mount points, such as/mnt/c,/mnt/d,/mnt/e, and then add these lines in/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, after you restart the machine, you can directly use the c, d, and e Windows partitions in fat32 format, so that you can use Windows partitions in the Linux operating system.
- Red Hat announced that Enterprise Linux 6 will no longer support Cert
- How to handle common emergencies in Linux
- Why Linux certification?
- In Linux, what is Windows?
- Analyze the future of the Linux Mobile Software Industry