Linux and Windows dual-system hard drive visits

Source: Internet
Author: User

At present, many people in PC use Windows system, but also installed Linux system, so how to implement the hard disk resources in Linux or Windows Exchange visits is very important.

Access Windows hard disk partition under Linux

Accessing the hard disk partition of a Windows system under Red Hat Linux is simple. Because Red Hat Linux provides support for almost all file systems, it can read and write directly to the partitions of the Windows system. When you install red Hat Linux, you can indicate the location of the Windows partitions that exist on your computer and specify where you want to load them into the Linux file system.

In general, the contents of the C drive in Windows system are loaded into the directory/mnt/c under the Linux system, then you can look at the C drive as a directory in the Linux file system. We can read or write the files in it, or create a new file or directory in it. If you do not specify a location for the Windows partition during installation, or if the contents of the system Windows partition C drive are not visible under the/MNT/C directory for other reasons, you can manually load the partition by using the following command:

<ccid_code> #mount-T vfat/dev/hdal/mnt/c

This command can load the Windows partition with the device name/DEV/HDA1 (which can be any actual partition device name) into the directory/mnt/c, and the parameter "-T VFAT" indicates that the file system type being loaded is VFAT. With a similar mount command, the floppy file system can also be loaded, except that the file system device name of the floppy disk is usually "/dev/floopy" or "/dev/fd0h1440". For the sake of unification, it can be loaded into the directory/mnt/floopy.

Red Hat Linux also provides a system configuration script file for a file system that can be modified to automatically load other non-Linux file systems that are needed when Linux starts. This script is file/etc/fstab, a typical example of which is as follows

<ccid_code>/dev/hda3/ext2 defaults 1 1/dev/hda4 swap swap defaults 0 0/dev/fd0/mnt/floppy ext2 noauto 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

Each line of the file records a system automatically loaded file system information, the meaning of each column is the device name, loading directory, file system type, load parameters (automatic, read and write, mode, etc.), tag bits. As you can see from this file, the first line is the Linux own filesystem, and the third and fourth lines represent the floppy drive and the optical drive, they are not automatically loaded, and the last two lines represent two windows partitions that need to be loaded automatically.

It is important to note that for floppy disks, CD-ROM these storage media are usually "noauto" parameters. If, as in the example above, they are recorded in the Fstab file, after inserting a floppy disk or CD, simply run the command "Mount/mnt/floopy" or "mount/mnt/cdrom" to load it into the Linux system. Before removing the floppy disk or CD, you must run the command "Unmount/mnt/floopy" or "Unmount/mnt/cdrom" to cancel their loading. Otherwise, the Linux system locks the drive and cannot be pulled out even by pressing the hardware button.

Red Hat Linux's ability to identify other file systems makes it much easier to use a computer that treats data in a Windows partition like its own data. For example, you can always look up Linux electronic documents placed in a Windows partition while you are practicing various commands under Linux.

Accessing Linux hard disk partitions under Windows

Windows systems are not as convenient as Red Hat Linux in dealing with various file systems. Therefore, to view the contents of a Linux partition requires the use of other software tools.

Below I recommend a popular, functionally stable tool software Fsdext2. It is a free software that can download the latest version to Http://www.globalxs.nl/home/p/pvs.

The FSDEXT2 software provides the ability to read Linux partitions under Windows systems. After obtaining the FSDEXT2 compression package, unzip it and run the command install. This installation command copies several VxD files required by FSDEXT2 to the Windows system directory.

Use the Mount command provided by FSDEXT2 to load the Ext2 file system into the Windows system. The parameters of the Mount command are the device names for the Linux partition (the naming convention is the same as under Linux). Then FSDEXT2 will automatically look for an unassigned drive letter to represent the Linux partition. This way, we can access the Linux partition as if we were accessing a Windows partition.

Linux and Windows dual-system hard drive visits

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.