Reading and Writing the Original NTFS Data Disks after Reinstall

Last Updated At: 2025-11-26 11:31:02

Overview

Windows file systems usually use NTFS or FAT32 formats, while Linux file systems usually use EXT series formats. When the CVM operating system is reinstalled from Windows to Linux, the type of operating system has changed, but the data disk in the CVM remains in the format used by the original system. Therefore, after the system is reinstalled, the CVM may be unable to access the data disk file system. This document guides you to read data from the original Windows system's data disk on the CVM reinstalled with the Linux system.

Directions

Configuring Linux System to Support NTFS

  1. Log in to the CVM reinstalled with the Linux system.

  2. Run the following command to install the ntfsprogs software so that the Linux CVM can access the NTFS file system.

    yum install ntfsprogs
    

Mounting Data Disks from Windows CVM to Linux CVM

Note:

If the data disks in your Windows CVM have been mounted to the Linux CVM, you can skip this step.

  1. Log in to the CVM console.

  2. In the left sidebar, click Cloud Block Storage to enter the Cloud Block Storage Management page.

  3. Select the Windows data disk to be mounted, and click More > Mount.

  4. In the pop-up Mount to Instance window, select the Linux CVM that the data disk is to be mounted to and click OK.

  5. Log in to the Linux CVM with the Windows data disks mounted.

  6. Run the following command to view the data disks mounted from the Windows CVM.

      parted -l
    

    Information resembles the following is returned:

      Model: Virtio Block Device (virtblk)
      Disk /dev/vdb: 53.7GB
      Sector size (logical/physical): 512B/512B
      Partition Table: gpt
      Disk Flags: 
      Number  Start   End     Size    File system  Name                          Flags
       1      17.4kB  134MB   134MB                Microsoft reserved partition  msftres
       2      135MB   53.7GB  53.6GB  ntfs         Basic data partition
    
  7. Run the following command to mount the data disk.

    mount -t ntfs-3g Data Disk Path Mount Point
    

    For example, if you need to mount the data disk under the path /dev/vdb1 to path /mnt, execute the following command:

    mount -t ntfs-3g /dev/vdb1 /mnt
    

    Since the file system is now recognizable, the mounted data disk can be directly read and written by the Linux system.