• 学派吧-由新云网络独家赞助-https://www.sq9.cn。

挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 解决方法

unix admin 5年前 (2019-03-10) 7282次浏览 已收录 0个评论 扫描二维码

最近碰到一个挂载的问题、研究了一会才整明白。现在整理发布下。
如果您有服务器咨询问题、购买问题、可以联系我们客服 7271895 690624
商祺云-阿里代理、景安代理、西部代理

用fdisk给新磁盘分区后。然后要创建文件系统

[root@cuizhipeng ~]# mkfs.ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!

提示、dev/sdb1正在被使用。

[root@cuizhipeng new]# dmsetup status
vgdate-lvdata1: 0 1024000 linear
vg_cuizhipeng-lv_swap: 0 4194304 linear
vg_cuizhipeng-lv_root: 0 36716544 linear

[root@cuizhipeng new]# dmsetup remove_all

[root@cuizhipeng new]# dmsetup status
vg_cuizhipeng-lv_swap: 0 4194304 linear
vg_cuizhipeng-lv_root: 0 36716544 linear

[root@cuizhipeng new]# mke2fs -t ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
文件系统标签=
操作系统:Linux
块大小=4096 (log=2)
分块大小=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
146880 inodes, 586372 blocks
29318 blocks (5.00%) reserved for the super user
第一个数据块=0
Maximum filesystem blocks=603979776
18 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

正在写入inode表: 完成
Creating journal (16384 blocks): 完成
Writing superblocks and filesystem accounting information: 完成

This filesystem will be automatically checked every 34 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
欢迎关注我们学派吧。


学派吧 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 解决方法
喜欢 (5)
[pay@sq9.cn]
分享 (0)
关于作者:
腾讯云-运维运维 QQ 690624
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址