This document takes initializing a cloud disk newly mounted to a CVM, creating a file system, and writing a file named qcloud.txt
as an example to help you understand how to use CBS. For more information on initializing cloud disks, see Initialization Scenarios.
You have mounted the cloud disk, and the cloud disk status is Mounted.
The following Windows and Linux CVM OS systems are used:
- Windows Server 2008
- CentOS 7.5
To protect important data, please see Usage FAQs before performing any operation on your CBS cloud disks.
MBR (Main Boot Record) partition format supports a maximum disk capacity of 2 TB, and GPT (GUID Partition Table) supports a maximum disk capacity of 18 EB. If you need a disk capacity larger than 2 TB, please select the GPT partition format.
If the disk partition format is changed after the disk is put into use, the original data on the disk will be erased. Please select the partition format carefully when initializing the disk.
qcloud.txt
, enter the content you need, and select File > Save.
- This document takes EXT4 file system as an example.
- When Linux CVM restarts or starts up, data disks will not be automatically mounted. For more information, see Format and Mount Data Disks.
fdisk -l
If the returned result is similar to what is shown below, the current CVM has two disks, where /dev/vda
is the system disk and /dev/vdb
is the newly added data disk,/dev/vdb
:mkfs.ext4 /dev/vdb
/data
mount point.mount /dev/vdb /data
qcloud.txt
.cd /data
vi qcloud.txt
ls
command to view that the qcloud.txt
file has been written to the disk.
Was this page helpful?