Linux and Windows hard disk resource Exchange _unix Linux

Source: Internet
Author: User
Tags naming convention

At present, many of the PC users are using the Windows system, but also installed the Linux system, so how to implement Linux or Windows hard disk resource Exchange is very important. Access Windows hard disk partitions under Linux

The hard disk partitions that access Windows systems under Red Hat Linux are 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, loading the contents of C in a Windows system into a directory/mnt/c under a Linux system makes it possible to look at the C disk as a directory in the Linux file system. We can read and write to the files in it, or create a new file or directory in it. If the location of the Windows partition is not specified at installation, or if the contents of the system Windows partition C disk are not visible under the/MNT/C directory for other reasons, you can manually load the partition with the following command:

#mount-T VFAT/DEV/HDAL/MNT/C

This command can load a 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 loaded file system type is VFAT. With a similar mount command, you can also load the floppy file system, except that the file system device name of the floppy disk is usually "/dev/floopy" or "/dev/fd0h1440". For the sake of uniformity, it can be loaded into the directory/mnt/floopy.

red Hat Linux also provides a filesystem configuration script file that can be modified to allow Linux to automatically load other non-Linux file systems when it is started. This script is a typical example of file/etc/fstab, which 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 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 in the file records a system automatically loaded with information about the file system, the meaning of each column is the device name, load directory, file system type, load parameters (automatic, read-write, mode, etc.), tag bit. As you can see from this file, the first line is Linux's own file system, the third and fourth lines represent floppy disk drives and optical drives, none of which are automatically loaded, and the last two lines represent two windows partitions that need to be automatically loaded.

It is worth noting that for floppy disks, optical disks, these storage media usually use the "Noauto" parameter. If, as in the example above, they have records in the Fstab file, insert a floppy disk or a disc, they can be loaded into the Linux system simply by running the command "Mount/mnt/floopy" or "Mount/mnt/cdrom". Before removing floppy disks or discs, you must run the command "Unmount/mnt/floopy" or "Unmount/mnt/cdrom" to cancel their loading. Otherwise, the Linux system will lock the drive, even if you press the hardware button to remove it.

red Hat Linux This ability to identify other file systems will greatly facilitate the use of computers that can treat data in Windows partitions just as they do with their own data. For example, when you practice various commands under Linux, you can also
£
Access Linux hard disk partitions under windows

The windows system is not as handy as Red Hat Linux in dealing with a variety of file systems. Therefore, looking at the contents of the Linux partition requires the help of other software tools.

I recommend a currently popular, functional and stable tool software fsdext2.

The FSDEXT2 software provides the ability to read Linux partitions under Windows systems. After you get the FSDEXT2 compression package, unzip it first, and then 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 parameter of the Mount command is the device name for the Linux partition (the naming convention is the same as under Linux). FSDEXT2 will then automatically look for an unassigned disk character to represent the Linux partition. In this way, we can access the Linux partition as we would access a Windows partition. (Source: Pconline)
Related Article

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.