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

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

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

用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.
欢迎关注我们学派吧。

主题测试文章,只做测试使用。发布者:云大使,转转请注明出处:https://www.xp8.net/server/3265.html

(0)
打赏 微信扫一扫 微信扫一扫
云大使的头像云大使
上一篇 2019年2月23日 下午9:45
下一篇 2019年3月10日 下午10:55

相关推荐

发表回复

登录后才能评论
联系我们

联系我们

18838889666

在线咨询: QQ交谈

邮件:xinyun@88.com

工作时间:周一至周五,9:30-18:30,节假日休息

添加微信
添加微信
分享本页
返回顶部
---------官方优惠叠加渠道折扣:通过我们购买腾讯云/阿里云,价格更低,服务更优。更有专业配置指导与服务。微信同步:18838889666----