挂载隐藏硬盘,查看需要挂载盘的命令:fdisk -l
Disk /dev/vda: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000cdd7e
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 2099199 1048576 83 Linux
/dev/vda2 2099200 104857566 51379183+ 83 Linux
Disk /dev/vdb: 100 GB, 536870912000 bytes, 1048576000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
挂载/dev/vdb到/data下面,直接执行出现错误:
# mount /dev/vdb /data
mount: /dev/vdb is write-protected, mounting read-only
mount: unknown filesystem type '(null)'
需要创建ext4系统:
mkfs.ext4 /dev/vdb
或者 mkf.ext4 /dev/vdb
接着执行,成功了:
mount /dev/vdb /data
最后通过执行df -h
查看是否挂载成功
/dev/vdb 93G 73M 67G 1% /data
一部分信息来源于: https://blog.csdn.net/hezuijiudexiaobai/article/details/120953156