How to Mount Cloud disks and cloud Disks
1. Disable the server and add a new hard disk.
2. Start the server and log on as the root user.
3. View hard disk Information
# Fdisk-l
4. Create a New Hard Disk Partition
Fdisk can use the m command to view the internal command of the fdisk command;
A: The command specifies the start partition;
D: Command to delete an existing partition;
L: The command displays the list of partition ID numbers;
M: view the fdisk Command help;
N: Create a New partition;
P: Command to display the partition list;
T: Command to modify the ID number of the partition type;
W: The command is used to modify and save the partition table.
Switch root permissions
Sudo su-
Fdisk/dev/sdb
Input
N p 1 1 Press ENTER wq
5. format the partition.
Mkfs. ext4/dev/vdb1
6. Create the/data1 directory:
Mkdir/data1
7. Mount the partition:
Mount/dev/sdb1/data1
8. Configure Automatic mounting upon startup
Vi/etc/fstab
Add in the last line
/Dev/vdb1/data1 ext4 defaults 0 0
9. restart the system
Reboot