All Products
Search
Document Center

:How do I move an NTFS disk between a Linux instance and a Windows instance?

Last Updated:Apr 24, 2023

This topic describes how to move a disk that uses the New Technology File System (NTFS) between a Linux instance and a Windows instance without changing the file system type of the disk. XFS, EXT3, and EXT4 file systems are commonly used in Linux. NTFS and FAT32 file systems are commonly used in Windows.

Procedure

Scenario 1: Detach an NTFS disk from a Windows instance and then attach the disk to a Linux instance

  1. In the ECS console, detach an NTFS disk from a Windows instance.

    For more information, see Detach a data disk.

  2. Attach the disk to a Linux instance.

    For more information, see Attach a data disk.

  3. Connect to the Linux instance.

    For more information, see Connect to a Linux instance by using a password or key.

  4. To make the Linux instance support NTFS, run the following command to install required components on the Linux instance:

    yum -y install ntfs-3g

    A command output similar to the following one is displayed. image

  5. Run the following command to mount the disk:

    mount -t ntfs-3g /dev/vdb1 /mnt/
  6. Run the following command to check whether the disk is mounted:

    df -T

    A command output similar to the following one is displayed.

    image..png
  7. Run the following command to check whether the test data that was written to the Windows instance exists on the disk:

    ls /mnt/

    A command output similar to the following one is displayed.

    image..png

Scenario 2: Detach an NTFS disk from a Linux instance and then attach the disk to a Windows instance

  1. In the ECS console, detach an NTFS disk from a Linux instance.

    For more information, see Detach a data disk.

  2. Attach the disk to a Windows instance.

    For more information, see Attach a data disk.

  3. Connect to the Windows instance.

    For more information, see Connect to a Windows instance by using a password or key.

  4. Choose the Start icon > Windows Administrative Tools > Computer Management.

  5. Choose Storage > Disk Management and convert the disk into a dynamic disk.

  6. Check that the test data written to the Linux instance exists on the disk. Then, rewrite the test data to the Windows instance to check whether data can be written to the Windows instance as expected.