Linux下如何查看U盘擦除块大小?

Linux下如何查看U盘擦除块大小?

Linux下如何查看USB闪存的擦除块大小?

有人说 /proc/mtd 可能会有帮助,而对于我的 Centos7 服务器,没有这样的文件。

提前致谢。

2016 年 1 月 28 日更新:

下面是我的flashbench输出,有人能确认我的擦除块大小是否为4M吗? (实际上,我的sdb是金士顿DTSE9G2 128G USB闪存。)

# ./flashbench -a /dev/sdb
sched_setscheduler: Operation not permitted
align 34359738368   pre 461µs   on 584µs    post 443µs  diff 132µs
align 17179869184   pre 468µs   on 598µs    post 463µs  diff 133µs
align 8589934592    pre 473µs   on 598µs    post 467µs  diff 128µs
align 4294967296    pre 476µs   on 602µs    post 470µs  diff 129µs
align 2147483648    pre 473µs   on 599µs    post 462µs  diff 131µs
align 1073741824    pre 463µs   on 601µs    post 465µs  diff 137µs
align 536870912 pre 463µs   on 595µs    post 469µs  diff 129µs
align 268435456 pre 463µs   on 581µs    post 452µs  diff 124µs
align 134217728 pre 467µs   on 585µs    post 454µs  diff 125µs
align 67108864  pre 452µs   on 580µs    post 458µs  diff 125µs
align 33554432  pre 471µs   on 604µs    post 463µs  diff 137µs
align 16777216  pre 457µs   on 588µs    post 473µs  diff 123µs
align 8388608   pre 459µs   on 603µs    post 471µs  diff 138µs
align 4194304   pre 465µs   on 569µs    post 465µs  diff 104µs
align 2097152   pre 467µs   on 584µs    post 473µs  diff 114µs
align 1048576   pre 450µs   on 579µs    post 474µs  diff 118µs
align 524288    pre 472µs   on 581µs    post 454µs  diff 117µs
align 262144    pre 465µs   on 581µs    post 462µs  diff 117µs
align 131072    pre 461µs   on 583µs    post 471µs  diff 117µs
align 65536 pre 453µs   on 573µs    post 465µs  diff 114µs
align 32768 pre 453µs   on 561µs    post 454µs  diff 107µs

答案1

你可以看看闪存测试台工具。我认为设备不能可靠地导出这种属性。

相关内容