掛載硬盤出錯;或者是在執行格式化分區的時候也會出現的問題解決
/dev/sdb1 is apparently in use by the system; will not make a 文件系統 here!
格式化磁盤分區報錯
[[email protected] ~]# mke2fs -t ext4 /dev/sdb1mke2fs 1.42.9 (28-Dec-2013) /dev/sdb1 is apparently in use by the system; will not make a 文件系統 here!
執行 dmsetup status,顯示有lvm 邏輯卷
[[email protected] ~]# dmsetup statusvg1-lv1: 0 204800 linear
執行dmsetup remove_all
[[email protected] ~]# dmsetup remove_all
再次執行 mke2fs -t ext4 /dev/sdb1,格式化磁盤分區成功
[[email protected] ~]# mke2fs -t ext4 /dev/sdb1mke2fs 1.42.9 (28-Dec-2013) 文件系統標簽= OS type: Linux 塊大小=4096 (log=2) 分塊大小=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks65536 inodes, 262144 blocks13107 blocks (5.00%) reserved for the super user第一個數據塊=0Maximum filesystem blocks=2684354568 block groups32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks: 32768, 98304, 163840, 229376Allocating group tables: 完成 正在寫入inode表: 完成 Creating journal (8192 blocks): 完成 Writing superblocks and filesystem accounting information: 完成 [[email protected]
掛載硬盤出錯;或者是在執行格式化分區的時候也會出現的問題解決