How to mount Windows partitions in Linux

Source: Internet
Author: User
<title></title>

Reprinted from:
Http://blog.sina.com.cn/s/blog_4e49f6a501000b66.html

LinuxSystem MountWindowsPartitioning Methods and Techniques

There are two ways to access the Windows XP system partition. You can enter Linux for manual configuration, or you can configure the system script. After each system is started, the Windows partition is automatically mounted, in this way, every time you enter Linux, you can directly see the windowxp partition.

I. Manual Configuration:

1. After Entering Linux, open the shell terminal, that is, the command line.

2. Specify a folder for the Windows partition to be mounted, because all system partitions are recorded and viewed as files in Linux. Therefore, Windows partition is a folder in Linux. We recommend that you create a partition folder in MNT, such as winf (Windows System f partition ).

You can right-click Create new folder in X-Windows, or configure it under the shell terminal.

 First, enter the MNT folder and run the following command:(Shell/mnt) # mkdir/mnt/winf

Your folder is created. Of course, the file name in Linux is case sensitive.

3. Run the mount command to mount a partition of Windows XP to Linux.

(Shell/root) # Mount (-afehnrvm) <-l (TAG)> <-O (option)> <-T (File System)> <Dev (device name)> <mount point>

Of course, the preceding parameters such as-afehnrvm can be definedMan MountCommand.

Take my system as an example: I want to mount the f partition of windowxp/Mnt/winfFolder, you can use the following command

(Shell/root) # Mount-TVfat/Dev/hda7/Mnt/winf

OK, so that you can access the f disk under Windows XP.

Explain this command.

MountMount command,-T Specify the next parameter as the file system parameter. The vfat file system is vfat. Currently, this parameter can be used in the FAT32 or FAT partition of the window, but the NTFS format cannot be used, this document describes how to mount NTFS partitions in Linux.Article. /Dev/hda7Why is f partition in windows?

There are two general IDE hard disks. Linux uses/HD to mark the IDE hard disk. If it is a SCSI hard disk, use/SD.

   The naming rules for Unix hard disk partitions are simple. The naming system is also suitable for any CDs that do not require direct connection to the sound card.
The first two letters of the name indicate the disk type: HD for a general IDE hard disk; SD for a SCSI hard disk
   The third letter is determined by the hard disk location. The first hard disk is specified as a, the second hard disk is specified as B, and so on. Change sentence
In other words, if the master controller is connected to two different physical IDE hard disks, the second disk (slave disk) is called HDB. On the contrary,
The SCSI hard disk letter corresponds to the specified ID number. For example, if there are two SCSL hard disks with IDs 0 and 1,If the ID is 0
The SCSI hard disk is called SDA, And the SCSI hard disk with ID 1 is called SDB. When it is named, the CD and DVD are also classified as hard disks.
   The fourth letter indicates how the disk is partitioned. Because you can have up to four primary partitions
 2, 3, 4. The first generated Logical Disk is located at Location 5, even if there is only one primary partition. So the hard disk of the window is/hda, and the hard disk of Area F is/hda7.

/Mnt/winfYou do not need to explain it. It is a folder mapped to Linux.

The preceding steps are to manually mount the hard disk partition and then access the Windows partition after entering the Linux system. The following describes how to automatically mount the partition.

Ii. Windows XP partitions are automatically mounted when the system starts.

The method is very simple. Modify the/etc/fstab file, which will be executed at system startup and mounted to the device defined in it. We only need to add the partition we need to attach to the file. refer to the following statement.

/Dev/hda5/Mnt/winfVfatUlts00

The first three parameters are not explained. You should understand.UltsThe mounting method for the root user. Such as auto and ults. First0Indicates readable and writable, the second0Indicates the boot sequence. 0 indicates the first hard disk partition to be mounted, including the LINUX partition, which is also defined here. The boot parameter is also 0, then, the system will mount and read the partition sequence defined in the file. In this file, you can also read the CDROM and floppy Mount definitions.


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.