{"id":20912904,"url":"https://github.com/chgen/hdparm-trimmer-scripts","last_synced_at":"2026-05-08T03:02:55.185Z","repository":{"id":134711400,"uuid":"315079737","full_name":"ChGen/hdparm-trimmer-scripts","owner":"ChGen","description":"ssd trimming (kind of) with hdparm ","archived":false,"fork":false,"pushed_at":"2020-11-22T16:25:43.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T15:51:55.621Z","etag":null,"topics":["linux","macos","ssd","trim"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ChGen.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":"2020-11-22T16:19:48.000Z","updated_at":"2022-11-16T12:58:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"10367f1c-6a76-4eba-a7fc-4067abc32ac7","html_url":"https://github.com/ChGen/hdparm-trimmer-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2Fhdparm-trimmer-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2Fhdparm-trimmer-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2Fhdparm-trimmer-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2Fhdparm-trimmer-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChGen","download_url":"https://codeload.github.com/ChGen/hdparm-trimmer-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243307334,"owners_count":20270256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["linux","macos","ssd","trim"],"created_at":"2024-11-18T14:34:00.559Z","updated_at":"2025-12-30T04:15:56.307Z","avatar_url":"https://github.com/ChGen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hdparm-trimmer-scripts\n\nssd trimming (kind of) with hdparm \n\nSSD trimmer enploys hdparm --trim-sector-ranges command, \nwhen regular SATA TRIM not available in FS driver (for example in USB enclosure).\nIn this situation hdparm usually still works, and allows to send TRIM commands to disk \"manually\".\n\nCreating (allocating) big file without extra writes on Linux:\n\n`sudo hdparm --fallocate 1000 temp_file`\n\nCreating (allocating) big file without extra writes on macOS:\nCompile resize-mac.c\n\n`gcc resize-mac.c -o resize-mac`\n`./resize-mac /path/to/big_file 1000`\n\nRun trimmer script:\n\n`sudo ./trimmer.sh /path/to/trim_file /path/to/trim_dev`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgen%2Fhdparm-trimmer-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchgen%2Fhdparm-trimmer-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgen%2Fhdparm-trimmer-scripts/lists"}