mount: /dev/vdb is write-protected, mounting read-only

原创
2022/09/05 11:55
阅读数 69

挂载隐藏硬盘,查看需要挂载盘的命令: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

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部