【Linux】挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!)

用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.

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

姜太小白

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值