First, view the SSD cloud disk
sudo fdisk-l
disk/dev/vda:42.9 GB, 42949672960 bytes, 83886080 sectors Units
= sectors of 1 * the bytes
sector size (logical/physical): bytes/512 bytes
I/o size (minimum/optimal): bytes/512 bytes
Disk LA Bel type:dos
Disk identifier:0x635e6c7d
Device Boot Start end Blocks Id System
/dev/ VDA1 2048 83886079 41942016 disk/dev/vdb:107.4
GB, 107374182400 bytes, 209715200 sectors
= Sectors of 1 * bytes =
sector size (logical/physical): bytes/512 bytes
You can see that the SSD system has been identified as/dev/vdb
Second, format the cloud disk
sudo mkfs.ext4/dev/vdb
mke2fs 1.42.9 (28-dec-2013)
filesystem label=
OS type:linux block
size=4096 ( log=2)
Fragment size=4096 (log=2) stride=0 blocks, stripe width=0 blocks 6553600 inodes
, 26214400 blocks
1310720 Blocks (5.00%) reserved for the super user---
c11/>800 block groups
32768 blocks/group, 32768 fragments per group
8192 inodes per group
superblock BA Ckups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624 , 11239424, 20480000, 23887872
allocating group Tables:done
writing inode tables:done
Creating Journal ( 32768 blocks): Done
writing superblocks and filesystem accounting Information:done
Third, Mount
Mount the cloud disk to the/OPT directory.
Four, configure the boot automatic mount
Modify/etc/fstab file, add at end of file
Five, restart check
Use
Gracefully reboot the system.
Use
sudo df-h
filesystem Size Used avail use% mounted on
/dev/vda1 40G 3.6G 34G 10%/
DEVTMPFS 1. 9G 0 1.9G 0%/dev
tmpfs 1.9G 0 1.9G 0%/dev/shm
tmpfs 1.9G 8.4M 1.9G 1%/run
tmpfs< c20/>1.9g 0 1.9G 0%/sys/fs/cgroup
/dev/vdb 99G 61M 94G 1%/opt
tmpfs 380M
You can see that the system has mounted an SSD cloud disk.
Summarize
Above is the Aliyun CentOS 7 Mount SSD method of all content, hope this article content to everyone's study or work can bring certain help, if there are questions you can message exchange.