How to mount a windows Disk in LINUX

Source: Internet
Author: User
1: dual-system is installed on a hard disk. the Linux system recognizes Windows partitions, which are not automatically loaded by default. But sometimes in Linux, you need to swap files with Windows partitions, which requires loading it. We can use different loading methods based on different switching needs. ...

1: for a dual system installed on a hard disk:
Linux recognizes Windows partitions, which are not automatically loaded by default. But sometimes in Linux, you need to swap files with Windows partitions, which requires loading it. We can use different loading methods based on different switching needs. The following uses the simplified Chinese version of RedHat Linux 7.3 as an example.
I. manual loading
This method can be used if you only occasionally exchange some files and prefer to play tricks in the simulation terminal.
Assume that the partition to be loaded is a G disk in Windows. you can create a g directory in the/mnt directory of Linux, /mnt is a Linux directory dedicated to loading various storage devices. by default, there are two directories: floppy (soft Drive) and cdrom (optical drive, next, let's estimate the number of devices in Linux. the method is: Linux marks the first partition of the first hard disk as hda1, and the first partition of the extended partition as hda5, that is, D is hda5, then, the G disk is hda8, and the rest are pushed accordingly.
After entering the KDE desktop, open the simulation terminal and enter the "mount-o iocharset = cp936/dev/hda8/mnt/g" command (without quotation marks). press enter to complete the operation. Go to the/mnt/g directory and have a look. what should I do? All the content of the G disk is in it.
"Mount" is the command for loading partitions, and "-o iocharset = cp936" is the parameter. with this parameter, after loading a partition, we can not only read and write files, you can also display long Chinese file names. "Dev/hda8" is the name of the G disk in Linux. it is put as a device in the/dev directory, "/mnt/g" is the target directory for loading the G disk. The entire command means to mount the "dev/hda8" (G disk) to the "/mnt/g" directory, and display the long Chinese file name, can read and write files.
 
Go to the/mnt/g directory and you will be able to see the contents of all the files after the mounting.
 
Note: Use fdisk-l to view all hard disks that can be recognized by the system. Linux only recognizes files with the fat32 structure. if you want to identify ntfs files, it will take a long time.
Df-h: view the usage of all drive letters in the current system.
Which disk is more like which disk is mounted?
 
 
III. Automatic loading
If you often perform file exchanges and want to load specific partitions as soon as you enter Linux, and want to mount this partition to a fixed directory, you can use this method.
Open the fstab file in the/ect directory in any text editor and add "/dev/hda8/mnt/g vfat defaults, iocharset = cp936 0 0" to the end of the last line, save and exit. The G disk will be automatically loaded every time the system is restarted. Note: "vfat" indicates that the FAT32 file system is loaded, "msdos" indicates that the FAT16 file system is loaded, and "ntfs" indicates that the NTFS file system of NT is loaded.

The following method can be used for 9.0 of systems: other disks can be attached in the same way. try multiple times in NTFS format. FAT32 is successful with the following methods.
Mount/dev/had1/m nt/c



Author chengyue2007

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.