edit-icon download-icon

Re-mount the data disk after initializing the Linux instance

Last Updated: Dec 15, 2017

Initialzing a system disk does not delete the data on any data disk. But all the data disks are unmounted. So you have to mount the data disks again.

To mount a data disk after a system disk is initialized, follow these steps:

  1. Run the mount command to view the data disk mount status.

  2. Run the fdisk -l command to view partitioned data disks, such as /dev/xvdb1 in this example. For more information about how to partition and format a newly purchased data disk, see Linux Format and Mount Data Disk.


  3. Run the mount /dev/xvdb1/ directory command to mount a data disk, such as the /alidata1 directory in this example.

  4. Run the mount command, and you will see that the data disk has been mounted and the format is ext4.


  5. Modify /etc/fstab to mount files automatically and increase the number of mounted data disk entries. Partition types include ext3 and ext4. The partition type matches the result shown after you run the mount command, such as ext4 in this example.


  6. Run the umount command to unmount the disk.

  7. Run the mount -a command to view whether the disk can be automatically mounted.


Thank you! We've received your feedback.