Access Windows hard drive partitions in Linux

Source: Internet
Author: User
Access Windows hard drive partitions in Linux
In Red Hat Linux, it is very easy to access the hard disk partition of the Windows system. Because Red Hat Linux supports almost all file systems, it can directly read and write Windows System partitions. When installing Red Hat Linux, you can point out the location of Windows partitions in the computer and specify the location where you want to load them to the Linux File System.

 

Generally, the content of drive C in Windows is loaded into the directory/mnt/C in Linux. Then, you can view the drive C like a directory in a Linux File System. We can read and write the files or create a new file or directory. If the location of the Windows partition is not specified during installation, or the/mnt/C directory cannot see the content of the C disk of the Windows partition for other reasons, you can use the following command to manually load the partition:

# Mount-T vfat/dev/hdal/mnt/C

This command can load the Windows partition named/dev/hda1 (which can be the name of any actually existing partition device) to the/mnt/C directory, the-T vfat parameter indicates that the type of the file system to be loaded is vfat. A similar mount command can also be used to load the disk file system, except that the disk file system device name is usually "/dev/Floopy" or "/dev/fd0h1440 ". For uniformity, you can load it into the/mnt/Floopy directory.

Red Hat Linux also provides a file system configuration script file that allows Linux to automatically load other non-Linux file systems at startup. This script is a file/etc/fstab. A typical example is as follows:

/Dev/hda3/ext2 defaults 1 1
/Dev/hda4 swap defaults 0 0
/Dev/fd0/mnt/floppy ext2 noauto 0 0
/Dev/cdrom/mnt/cdrom iso9660 noauto, r0 0 0
None/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 each line in the file records the information of a file system automatically loaded by the system, the meanings of each column are device name, loading directory, file system type, loading parameters (automatic, read/write, mode, etc.), and tag bit. From this file, we can see that the first line is the Linux File System, and the third and fourth lines represent the floppy disk drive and the disc drive. They are not automatically loaded, the last two lines represent two Windows partitions to be automatically loaded.

It is worth noting that the "noauto" parameter is usually used for storage media such as floppy disks and CDs. If they are recorded in the fstab file like the above example, after a floppy disk or a CD is inserted, you only need to run the command "mount/mnt/floopy" or "mount/mnt/cdrom" to load it to the Linux system. Before removing a floppy disk or CD, run the command "unmount/mnt/floopy" or "unmount/mnt/cdrom" to cancel the loading. Otherwise, the Linux system locks the drive and cannot retrieve it even if you press the hardware button.

Red Hat Linux, which recognizes other file systems, makes it much easier to use computers. in Linux, you can treat data in Windows partitions like your own data. For example, you can also

Access Linux hard disk partitions in Windows

Windows is not as convenient as Red Hat Linux in processing various file systems. Therefore, you need to use other software tools to view the content in the Linux partition.

Below I recommend a popular and stable tool software fsdext2.

The fsdext2 software allows you to read Linux partitions in Windows. Obtain the fsdext2 compression package, decompress it, and then run the command install. This installation Command copies the vxd files required by fsdext2 to the Windows System directory.

Use the mount command provided by fsdext2 to load the ext2 File System to Windows. The parameter of the mount command is the device name of the Linux partition (the naming rules are the same as those in Linux ). Then fsdext2 will automatically find an unallocated drive letter representing the Linux partition. In this way, we can access Linux partitions just like accessing a Windows partition.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.