mkfs + 任何解决“无法读取块”或更换磁盘的解决方案

mkfs + 任何解决“无法读取块”或更换磁盘的解决方案

我们mkfs在磁盘上执行sda以下操作

mkfs.ext4  -j -m 0 /dev/sda -F



mke2fs 1.42.9 (28-Dec-2013)
Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
122101760 inodes, 488378646 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2636120064
14905 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848

 

Allocating group tables: done
Warning: could not read block 0: Attempt to read block from filesystem resulted in short read
Warning: could not erase sector 0: Attempt to write block to filesystem resulted in short write
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:     0/14905
Warning, had trouble writing out superblocks.

实际上文件系统并未创建,我们可以从中看到lsblk -f

lsblk -f
NAME               FSTYPE      LABEL UUID                                   MOUNTPOINT
sda

因此来自 m​​kfs 的警告是

Allocating group tables: done
Warning: could not read block 0: Attempt to read block from filesystem resulted in short read
Warning: could not erase sector 0: Attempt to write block to filesystem resulted in short write
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:     0/14905
Warning, had trouble writing out superblocks.

 

是否有机会采取一些旁路或变通方法以便在sda磁盘上创建文件系统?

相关内容