mkfs.vfat -c
对坏块进行简单检查。badblocks
以不同的模式运行多个传递,从而检测mkfs.vfat -c
不会捕捉到的间歇性错误。
mkfs.vfat -l filename
可以从badblocks
读取带有坏块的文件。但是,我一直无法找到一个示例,说明如何使用坏块生成文件。
我猜它很简单,就像:
badblocks -w /dev/sde1 > filename
mkfs.vfat -l filename /dev/sde1
但我一直无法证实这一点。是否有权威来源可以证实这一点或解释如何使用badblocks
为mkfs.vfat -l filename
生成输入?
发布于 2015-11-17 22:28:47
来自man badblocks
:
-o output_file
Write the list of bad blocks to the specified file. Without
this option, badblocks displays the list on its standard output.
The format of this file is suitable for use by the -l option in
e2fsck(8) or mke2fs(8).
所以正确的方法是:
badblocks -o filename /dev/sde1
mkfs.vfat -l filename /dev/sde1
https://unix.stackexchange.com/questions/243719
复制相似问题