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:
Run the
mount
command to view the data disk mount status.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.Run the
mount /dev/xvdb1/ directory
command to mount a data disk, such as the/alidata1
directory in this example.Run the
mount
command, and you will see that the data disk has been mounted and the format is ext4.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 asext4
in this example.Run the
umount
command to unmount the disk.Run the
mount -a
command to view whether the disk can be automatically mounted.