LINUX Visit Windows Hard Disk Partition

xiaoxiao2021-03-06  65

LINUX Visit Windows Hard Disk Partition

The hard disk partition that accesses the Windows system under Red Hat Linux is simple. Because Red Hat Linux provides support for almost all file systems, it can read and write partitions of the Windows system. When installing Red Hat Linux, you can indicate the location of the Windows partition existing in your computer, and specify where you want to load them into the Linux file system.

Typically, put the contents of the C disk in the Windows system into the directory / MNT / C under the Linux system, and you can look at the C drive like a directory in the Linux file system. We can read and write the files, or create a new file or directory therein. If you do not specify the location of the Windows partition when installing, or if you can't see the contents of the system Windows partition C disk in / mnt / c directory, you can use the following command to manually load the partition:

#mount -t vfat / dev / hdal / mnt / c

This command can load the device name / dev / hda1 (can be any actual partition device name) to directory / MNT / C, parameter "-t vfat" indicates that the loaded file system type is vfat . With a similar mount command, you can also load the floppy disk file system, but the floppy file system device name is usually "/ dev / floopy" or "/ DEV / FD0H1440". To be unified, it can be loaded into the directory / mnt / floopy.

Red Hat Linux also provides a system configuration script file for a file system, and automatically loads other non-Linux file systems required by modifying it to automatically load required for Linux. This script is file / etc / fstab, and a typical example of it is as follows:

/ dev / hda3 / ext2 defaults 1 1 / dev / hda4 swap swap defaults 0 0 / dev / fd0 / mnt / floppy ext2 noauto 0 0 0 / dev / cdrom / mnt / cdrom iso9660 Noauto, R0 0 0 None / Proc Proc PROC 0 0 none / dev / pts devpts mode = 0622 0 0 / DEV / HDA1 / MNT / C vfat auto, RW 0 0 / DEV / HDA5 / MNT / E VFAT AUTO, RW 0 0 This file records a system automatic The information of the file system is loaded, and the meaning of each column is the device name, load directory, file system type, load parameters (automatic, reading, writing, mode, etc.), marker bits. As can be seen from this file, the first line is Linux itself file system, third, fourth line represents the floppy drive and disc drive, which are not automatically loaded, and the last two lines represent two Windows that need to be loaded automatically. Partition.

It is worth noting that for a floppy disk, the storage medium of the disc is usually used with the "NOAUTO" parameter. If the above is like this, they have records in the FSTAB file, inserted into the floppy disk, or the disc, just run the command "Mount / MNT / FLOOPY" or "Mount / MNT / CDROM" to load it into the Linux system. Before removing the floppy disk or disc, you must run the command "unmount / mnt / floopy" or "Unmount / MNT / CDROM" to cancel them. Otherwise, the Linux system locks the drive even if the hardware button cannot be removed.

Red Hat Linux This identifier of other file systems will greatly use the computer, which can treat data in the Windows partition as to treat their own data. For example, while practicing various commands in Linux, you can also access Linux hard drive partitions under Windows.

The Windows system is still in handling various file systems, and it is not convenient as Red Hat Linux. Therefore, you need to view the contents of the Linux partition, you need to use other software tools. Below I recommend a current popular, functionally stable tool software FSDext2.

FSDext2 software provides features that read Linux partitions under Windows systems. After obtaining the compressed package of FSDext2, then unfix it and then run the command install. This installation command copies several VXD files required for FSDext2 to the Windows system directory.

Use the mount commands provided by FSDext2 to load the EXT2 file system under the Windows system. The parameter of the mount command is the device name of the Linux partition (the naming rule is the same as Linux). The FSDext2 then automatically looks for an unassigned drive representative Linux partition. This way, we can access the Linux partition like accessing a Windows partition.

转载请注明原文地址:https://www.9cbs.com/read-119446.html

New Post(0)