{"id":19751501,"url":"https://github.com/zanjie1999/fixbaddisk","last_synced_at":"2026-02-24T08:26:26.435Z","repository":{"id":44095089,"uuid":"333616159","full_name":"zanjie1999/fixBadDisk","owner":"zanjie1999","description":"一键 u盘/内存卡/硬盘 坏块屏蔽工具 防作弊测速工具","archived":false,"fork":false,"pushed_at":"2025-04-27T18:05:36.000Z","size":94,"stargazers_count":32,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T18:36:40.296Z","etag":null,"topics":["harddisk","python3","readwritetest","speedtest","ssd","usbdrive"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zanjie1999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-28T01:58:47.000Z","updated_at":"2025-04-27T18:04:41.000Z","dependencies_parsed_at":"2024-04-19T04:22:32.334Z","dependency_job_id":"72ba73c3-8444-4fc7-b145-3d19e849831a","html_url":"https://github.com/zanjie1999/fixBadDisk","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/zanjie1999/fixBadDisk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2FfixBadDisk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2FfixBadDisk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2FfixBadDisk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2FfixBadDisk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zanjie1999","download_url":"https://codeload.github.com/zanjie1999/fixBadDisk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanjie1999%2FfixBadDisk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28980159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T13:38:33.235Z","status":"ssl_error","status_checked_at":"2026-02-01T13:38:32.912Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["harddisk","python3","readwritetest","speedtest","ssd","usbdrive"],"created_at":"2024-11-12T02:44:23.911Z","updated_at":"2026-02-01T14:04:38.615Z","avatar_url":"https://github.com/zanjie1999.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 一键 u盘/内存卡/硬盘 坏块/坏道 维修工具 防作弊测速工具\n需要Python3 支持任意系统  \n原理很简单，全盘写满校验，坏掉的文件就留下占位，这样有用的数据就不会写到坏掉的地方  \n将此程序放到被维修盘内运行即可  \n可以随时ctrl+c或是关闭来暂停，下一次运行会继续上一次的进度继续填满\n\n### 使用本工具测速，可以避免设备对像AS SSD Benchmark或是CrystalDiskMark等跑分测速工具的神仙优化，测出最真实的速度，最接近实际使用体验，作弊だめ  \n如果写到一半或者读到一半，硬盘掉盘了，那么就会自动等待硬盘重连后继续写入和读取\n\n## 如何使用\n最简单的方式：直接运行，按提示操作  \n具体的使用方式你可以使用参数 `-h` 查看，可以一键指定占位文件大小以及进行更深入的测试  \n\n输出：  \nMin: 最小速度 Max: 最大速度 Avg: 平均速度  \n已写入/总容量 已用时间/剩余时间 (当前速度 当前用时)  \n\n当进行了完整的一轮读写，将会将成绩保存在 `fixBadDiskScore.txt` 中，追加保存，可保存多条测试记录，就像这样\n```\n2024-09-06 10:21:35\nWrite Speed:\nMin: 228.227M/s Max: 427.367M/s Avg: 388.251M/s\n673500.000M/674124.500M 00:28:55/00:00:01 (290.440M/s 1.721524s)\n10% Min: 312.884M/s Max: 580.421M/s Avg: 472.692M/s (379.871M/s 1.316235s)\n20% Min: 365.849M/s Max: 577.958M/s Avg: 491.050M/s (567.465M/s 0.881111s)\n30% Min: 287.466M/s Max: 577.064M/s Avg: 509.163M/s (488.670M/s 1.023185s)\n40% Min: 193.874M/s Max: 577.842M/s Avg: 512.067M/s (551.607M/s 0.906443s)\n50% Min: 194.225M/s Max: 551.892M/s Avg: 462.237M/s (314.351M/s 1.590581s)\n60% Min: 217.936M/s Max: 543.931M/s Avg: 422.448M/s (331.515M/s 1.508226s)\n70% Min: 237.320M/s Max: 376.872M/s Avg: 404.151M/s (368.651M/s 1.356297s)\n80% Min: 280.832M/s Max: 487.247M/s Avg: 397.823M/s (373.982M/s 1.336963s)\n90% Min: 270.119M/s Max: 567.407M/s Avg: 392.887M/s (343.492M/s 1.455638s)\nRead Speed:\nMin:794.465M/s Max:930.698M/s Avg:1015.926M/s\n2017000.000M/2017500.000M 00:33:05/00:00:00 (925.088M/s 0.540489s)\n10% Min: 814.392M/s Max: 931.317M/s Avg: 920.649M/s (921.121M/s 0.542817s)\n20% Min: 796.140M/s Max: 931.356M/s Avg: 922.105M/s (918.674M/s 0.544263s)\n30% Min: 801.091M/s Max: 931.564M/s Avg: 922.754M/s (925.966M/s 0.539977s)\n40% Min: 797.909M/s Max: 931.463M/s Avg: 923.080M/s (926.973M/s 0.539390s)\n50% Min: 796.250M/s Max: 931.212M/s Avg: 923.196M/s (929.593M/s 0.537870s)\n60% Min: 800.442M/s Max: 931.637M/s Avg: 964.980M/s (929.243M/s 0.005729s)\n70% Min: 803.660M/s Max: 931.923M/s Avg: 1061.286M/s (920.036M/s 0.543457s)\n80% Min: 801.829M/s Max: 931.433M/s Avg: 1042.240M/s (930.302M/s 0.537460s)\n90% Min: 699.337M/s Max: 1042.023M/s Avg: 1027.551M/s (924.844M/s 0.540632s)\n```\n可以快速的了解到空盘速度，半盘速度，以及快满时的速度，从而推测硬盘缓存大小，推荐在给ssd测速时文件大小使用`500`，在损坏的盘进行修复时使用`5`或者`10`\n\n### 进阶\n\nfixBadDisk [filesize] [r|w|rw] [maxsize]  \n  -h, --help: 显示当前帮助信息\n  filesize: 单个文件大小，fat32下最大为4096M，且最多33000个文件\n  w: 写入测试\n  t或r: 读测试\n  rw: 写满后马上读，可能出现误差，不建议非大容量机械硬盘使用\n  maxsize: 最大写入量，用于写入测速时指定大小\n\n举个例子，10m一个文件，写满后测试  \n`fixBadDisk 10`  \n\n再举个例子，只写满不测试  \n`fixBadDisk 10 w`  \n写的时候使用10m一个文件，读测试  \n`fixBadDisk 10 r`\n\n再再举个例子，4k一个文件，写1G测速  \n`fixBadDisk 0.004 w 1024`  \n写的时候使用4k一个文件，读测试  \n`fixBadDisk 0.004 r`\n\n其中前两个参数允许对调\n\nmac和linux系统自带Python3，上面绿色按钮下载或者 [右键另存为](https://github.com/zanjie1999/fixBadDisk/raw/main/fixBadDisk.py) ，把文件放在需要检测的盘，直接`python3 fixBadDisk.py`运行  \nWindows用户可以在 [这里](https://github.com/zanjie1999/fixBadDisk/releases) 下载fixBadDisk.exe，放到需要检测的盘直接点开运行  \n\n\n\n### 协议 咩License\n使用此项目视为您已阅读并同意遵守 [此LICENSE](https://github.com/zanjie1999/LICENSE)   \nUsing this project is deemed to indicate that you have read and agreed to abide by [this LICENSE](https://github.com/zanjie1999/LICENSE)   \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanjie1999%2Ffixbaddisk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzanjie1999%2Ffixbaddisk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanjie1999%2Ffixbaddisk/lists"}