首页
产品
价格
支持
关于我们
联系
简体中文登录注册
  • Product Overview
  • Instance Overview
  • Mount/Unmount Disk
  • Snapshot
  • Public IP
  • Security Group Overview
  • SSH key

Mount/Unmount Disk

Operation scenario

After the cloud server is successfully created, if you find that the disk is insufficient or the current disk does not meet the requirements, you can mount the existing cloud hard disk to the cloud server, or purchase a new disk and then mount it to the cloud server.

If you no longer need to use the data disk, or need to mount the data disk to other instances in the same region, you need to uninstall the data disk first.

Constraints and Limitations

The system disk is created with the instance and does not support unmounting/mounting operations.
A maximum of 16 cloud hard disks can be mounted under one instance.
Cloud hard disks can only be mounted to cloud servers in the same region.

Mounting cloud disk

1. In the cloud disk list, click Mount in the Operation column.

2. In the pop-up window, select Mount Instance and click OK.

Note: Mounting is not supported when the instance is in the startup, shutdown, reboot, or expired state.

If the cloud disk is a package product, you can only mount the instance of the package.

Linux instance:

Note: After a new data disk is mounted to an instance, it cannot directly store data. Usually, you need to perform initialization operations such as partitioning the data disk, formatting the file system, and mounting the file system before the system can read and write data.

In this example, the newly added disk device number is /dev/sdb and the size is 10G. The disk has automatically completed the partition (/dev/sdb1) and file system (ext4) settings.

Check the device number of the newly added disk: fdisk -l

The create partition command:fdisk /dev/sdb, Follow the prompts to complete configuration.

Creating a file system for a partition:mkfs -t ext4 /dev/sdb1

Mount command:

mount <disk partition name> <partition mount point>
<disk partition name> Query by df -h command.
<partition mount point> The partition mount point can be an existing directory, or a new directory can be created by executing the mkdir <partition mount point> command as needed.

For example, if we mount the newly added partition /dev/sdb1 to the /data directory, first create the directory manually and then execute the mount.

1 . Creating a partition mount point:mkdir /data

2. Mounting Partition:mount /dev/sdb1 /data/

3. View mounted partitions: df -h

Windows instance:

Note: A brand-new Windows data disk mounted to the instance is not ready for storing data directly. Usually you need to complete initialization operations such as disk online, new partition, formatting, and so on, before it is available for the system to read and write data.

1. On the Windows Server desktop, right-click the start icon, and then click Disk Management.

2. Locate the data disk to be initialized (disk 1 in this example), which is offline.

3. Right-click the blank area of Disk 1, select Online, and after completing Online, the status of Disk 1 is displayed as Not Initialized.

4. Right-click the blank area of Disk 1 and select Initialize Disk from the pop-up menu.

5. Right-click the unallocated area of Disk 1, select New Simple Volume, and follow the wizard to complete the initialization.

Unmount Disk

1. Unmount the disk on the instance first

Linux instance:

Uninstalling a Partition:umount /dev/sdb1

Windows instance:

On the Windows Server desktop, right-click the Start icon, then click Disk Management, right-click the target disk, and then select Offline.

2. Uninstall disk in the console

Log in to the console on the disk management page or instance management page, and click the uninstall button. If the status changes to pending mount, it indicates that you have successfully uninstalled the disk.


Operation scenarioConstraints and LimitationsMounting cloud diskUnmount Disk
Copyright © 2025 Easylink All Rights Reserved.
  • 产品
  • 云服务器
  • 专用服务器
  • CDN
  • 资源
  • 价格
  • 帮助文档
  • 常见问题
  • 公司
  • 关于我们
  • 法律声明