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

Summary of several implementations of returning to the top in HTML pages

Recently, I need to make a back-to-top button whe...

Implementation of react routing guard (routing interception)

React is different from Vue. It implements route ...

Some notes on mysql self-join deduplication

Let me briefly explain the functional scenario: T...

How to use VirtualBox to simulate a Linux cluster

1. Set up HOST on the host Macbook The previous d...

How to view mysql binlog (binary log)

For example, when you create a new table or updat...

How to add ansible service in alpine image

Use apk add ansible to add the ansible service to...

What hidden attributes in the form can be submitted with the form

The form elements with visibility=hidden and displ...

Detailed explanation of Java calling ffmpeg to convert video format to flv

Detailed explanation of Java calling ffmpeg to co...

How to implement the prototype pattern in JavaScript

Overview The prototype pattern refers to the type...

Facebook's nearly perfect redesign of all Internet services

<br />Original source: http://www.a-xuan.cn/...

K3s Getting Started Guide - Detailed Tutorial on Running K3s in Docker

What is k3d? k3d is a small program for running a...

MySQL 8.0 WITH query details

Table of contents Learning about WITH queries in ...

How to prevent hyperlink redirection using JavaScript (multiple ways of writing)

Through JavaScript, we can prevent hyperlinks fro...

Tutorial diagram of installing zabbix2.4 under centos6.5

The fixed IP address of the centos-DVD1 version s...