Linux confirms that the data disk has been uninstalled and a new custom image can be created

Linux confirms that the data disk has been uninstalled and a new custom image can be created

Custom Image FAQ

How to view the data disk?

You can use the df command to view the usage of the data disk and the location where the file system is mounted. For example: df –lh

You can use the fdisk command to obtain the partition status of the data disk. For example: fdisk -l

How to unmount and delete the data in the disk table?

Assuming /dev/hda5 is mounted on /mnt/hda5, you can use any of the following commands to unmount the mounted file system:

umount /dev/hda5
umount /mnt/hda5
umount /dev/hda5 /mnt/hda5

/etc/fstab is an important configuration file in Linux system, which contains detailed information of file systems and storage devices mounted when the system starts.

If you do not want to mount a specified partition when starting an instance, you need to delete the corresponding statement line in the current file. For example, removing the following statement will disconnect xvdb1 on startup:

/dev/xvdb1 /leejd ext4 defaults 0 0

How can I confirm that the data disk has been unmounted and that a new custom image can be created?

Confirm that the corresponding automatic mounting data disk partition statement line in the /etc/fstab file has been deleted.

Use the mount command to view the mount information of all devices and confirm that the execution result does not contain the corresponding data disk partition information.

After the instance is released, does the custom image still exist?

exist.

After the instance is released, does the snapshot still exist?

Manual snapshots are retained, and automatic snapshots are cleared when the instance is released. For more details, see the Automatic Snapshot FAQ.

Will the created custom image be affected if the instance used to create the custom image expires or releases data? Are instances provisioned using custom images affected?

None are affected.

Can I change the operating system of an instance created using a custom image? Can the original custom image still be used after changing the system?

Can. After the replacement, the original custom image can still be used.

When replacing the system disk and selecting another operating system, can I use a custom image?

Can.

Note: After the system disk is replaced with a custom image, the original data will be completely overwritten.

Can a created custom image be used to replace the system disk data of another ECS?

Can. However, please note that the custom image will overwrite all data on the server system disk. Please refer to Creating an ECS Instance Using an Image.

Can I upgrade the CPU, memory, bandwidth, hard disk, etc. of the ECS cloud server enabled with a custom image ?

All can be upgraded.

Can I use a custom image across regions?

Can't. Custom images can only be used in the same region. For example, a custom image created in an instance in the East China 1 region cannot be used to provision an ECS instance in the North China 1 region.

If you need to use a custom image across regions, you can copy the image to achieve this. For details, see Copy an image.

Can custom images of subscription instances be used to create pay-as-you-go ECS servers?

Can. The custom image function does not distinguish between the payment methods of the instance, that is, it does not distinguish whether it is a yearly or monthly subscription or pay-as-you-go subscription.

You may also be interested in:
  • Historical Linux image processing and repair solutions
  • How to use the "DD" command in Linux/OSX to create an ISO image operating system installation USB disk
  • Linux learning first virtual machine and image file installation and configuration
  • How to permanently modify the pip mirror source in Windows and Linux environments
  • Rsync Chinese manual: Using rsync to implement website mirroring and backup linux
  • Example analysis to fix problems in historical Linux images

<<:  MySQL updates a field in a table to be equal to the value of a field in another table

>>:  JavaScript jigsaw puzzle game

Recommend

Detailed tutorial on installing mysql 8.0.13 (rpm) on Centos7

yum or rpm? The yum installation method is very c...

Analysis of 2 Token Reasons and Sample Code in Web Project Development

Table of contents question: There are 2 tokens in...

About MySQL 8.0.13 zip package installation method

MySQL 8.0.13 has a data folder by default. This f...

Installation of Docker CE on Ubuntu

This article is used to record the installation o...

Four categories of CSS selectors: basic, combination, attribute, pseudo-class

What is a selector? The role of the selector is t...

MySQL learning notes: data engine

View the engines supported by the current databas...

Vue+Bootstrap realizes a simple student management system

I used vue and bootstrap to make a relatively sim...

Solve the problems encountered when installing MySQL 8.0 on Win10 system

The problems and solutions encountered when insta...

JavaScript explains the encapsulation and use of slow-motion animation

Implementing process analysis (1) How to call rep...

Why can't my tomcat start?

Table of contents Phenomenon: Port usage: Spellin...

The whole process of installing mysql5.7.22 under ARM64 architecture

MySQL download address: https://obs.cn-north-4.my...

Definition and usage of MySQL cursor

Creating a Cursor First, create a data table in M...

About WSL configuration and modification issues in Docker

https://docs.microsoft.com/en-us/windows/wsl/wsl-...

MySQL 8.0.15 installation and configuration method graphic tutorial

This article records the installation and configu...

Summary of 4 ways to add users to groups in Linux

Preface Linux groups are organizational units use...