toremagnet.blogg.se

Unmount disk in linux
Unmount disk in linux












unmount disk in linux
  1. #UNMOUNT DISK IN LINUX HOW TO#
  2. #UNMOUNT DISK IN LINUX CODE#

UUID: 1234b7a7-68ff-4f48-a88c-8943f27f1234Ĭhoose a method to extend partitions or file systemsĬhoose an extend method based on the partition format and the file system type. If an error is returned in the command output, troubleshoot the issue. found 114688 bytes used err is 0 indicates that the file system works as expected.

#UNMOUNT DISK IN LINUX CODE#

The following code provides a sample command output for a btrfs file system.Warning: skipping journal recovery because doing a read-only filesystem check. If clean is not returned, troubleshoot the issue.

unmount disk in linux

If the file system works as expected, clean is returned in the command output.

  • The following code provides a sample command output for an ext or xfs file system.
  • Run the following command to check the partition format of the data disk:ĭifferent command outputs are returned for different types of file systems.
  • Check the partition format and the file system type
  • Operating system of the instance: Alibaba Cloud Linux 2.1903 LTS 64-bit public imageĪdjust the commands or parameter settings based on the actual operating system and device name of your data disk.
  • If the data disk is not resized, perform the operations that are described in Step 1: Resize a disk to extend its capacity to resize the data disk by extending its capacity.įor more information about connection methods, see Connection methods.īackground informationIn the examples of this topic, the following configurations are used:
  • The data disk is resized in the ECS console.
  • For more information, see Create a snapshot of a disk. To prevent data loss caused by accidental changes, we recommend that you create a snapshot to back up your data.

    unmount disk in linux

    A snapshot is created for a data disk of a Linux instance.

    #UNMOUNT DISK IN LINUX HOW TO#

    This topic describes how to offline extend partitions and file systems on a data disk of a Linux instance. A disk is online when it is in the Mount state, and is offline when it is in the Umount state. In this case, you must extend the disk partitions and file systems offline in the instance operating systems. In specific early versions of Linux operating systems, partitions and file systems on disks cannot be extended online by using tools such as growpart. After you resize disks of Linux instances by extending disk capacity in the Elastic Compute Service (ECS) console, you must extend partitions and file systems on the disks in the instance operating systems for the new disk capacity to take effect.














    Unmount disk in linux