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

How to operate the check box in HTML page

Checkboxes are very common on web pages. Whether ...

CSS implements a pop-up window effect with a mask layer that can be closed

Pop-up windows are often used in actual developme...

The pitfalls and solutions caused by the default value of sql_mode in MySQL 5.7

During normal project development, if the MySQL v...

Ubuntu 20.04 connects to wifi (2 methods)

I recently installed Ubuntu 20.04 and found that ...

Vue implements weather forecast function

This article shares the specific code of Vue to r...

HTML table markup tutorial (48): CSS modified table

<br />Now let's take a look at how to cl...

HTML+CSS to achieve surround reflection loading effect

This article mainly introduces the implementation...

mysql three tables connected to create a view

Three tables are connected. Field a of table A co...

Several ways to use v-bind binding with Class and Style in Vue

Adding/removing classes to elements is a very com...

Analysis of uniapp entry-level nvue climbing pit record

Table of contents Preface Hello World image Set b...

MySQL case when group by example

A mysql-like php switch case statement. select xx...

Detailed explanation of the use of MySQL select cache mechanism

MySQL Query Cache is on by default. To some exten...

Recommend a cool interactive website made by a front-end engineer

Website link: http://strml.net/ By Samuel Reed Ti...