docs
udisk
Operating Guide
Format Cloud Disk
Linux

Linux

Notice:

Before performing the disk formatting operation, please confirm if there's data in the data disk, we recommend you to back it up first.
It is recommended that you do not partition the cloud disk on the cloud host to avoid affecting the expansion of the cloud disk.

Operating instructions:

  • The cloud disk data disk mount point in this example:
  • The version of the environment applied in this example:

Specific operations:

  • Connect the host instance via the console page or SSH tool, we use our own SSH tool in this example.
  • After logging in to the host instance, use the fdisk -l command to check the hard disk partition of the cloud host.

In this example, the mounting point of the cloud disk is /dev/vdb, please operate according to the actual situation. If you do not see the corresponding device, please check the mounting information and status of the cloud disk.

  • Create a file system, use the command mkfs.ext4 /dev/vdb.

This will format any existing data on this disk, before the operation, please confirm if there's data in the data disk and back it up first.

In this example, we use the ext4 file system, and you can choose the file system format as needed.

  • Check the execution result, using the command parted /dev/vdb.
  • Modify the /etc/fstab file to make the data disk mount automatically at system startup. Check UUID command. It is recommended to use UUID to configure the mounting information to avoid the potential disk symbol migration phenomenon in the Linux disk symbol allocation mechanism.

Use the command echo UUID="910d2922-38f2-4b16-b5cc-a55d2c60cb3c" /mnt ext4 defaults 0 0 >> /etc/fstab.

  • Use the mount command to mount the disk.
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved