{"id":31715062,"url":"https://github.com/chmodshubham/harddisk-data-recovery","last_synced_at":"2026-02-16T16:32:45.059Z","repository":{"id":184318027,"uuid":"671672415","full_name":"chmodshubham/harddisk-data-recovery","owner":"chmodshubham","description":"Recover deleted files from the harddisk/SSD.","archived":false,"fork":false,"pushed_at":"2023-07-28T06:22:58.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-16T04:13:11.071Z","etag":null,"topics":["harddisk","recovery","ssd"],"latest_commit_sha":null,"homepage":"","language":null,"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/chmodshubham.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}},"created_at":"2023-07-27T21:45:20.000Z","updated_at":"2024-04-01T10:10:31.000Z","dependencies_parsed_at":"2023-07-27T23:24:30.580Z","dependency_job_id":"983dd995-e598-4767-8302-0e3b63569fa7","html_url":"https://github.com/chmodshubham/harddisk-data-recovery","commit_stats":null,"previous_names":["shubhamkumar89/hard-drive-backup","shubhamkumar89/data-recover-harddisk","chmodshubham/harddisk-data-recovery"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chmodshubham/harddisk-data-recovery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fharddisk-data-recovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fharddisk-data-recovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fharddisk-data-recovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fharddisk-data-recovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmodshubham","download_url":"https://codeload.github.com/chmodshubham/harddisk-data-recovery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmodshubham%2Fharddisk-data-recovery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000704,"owners_count":26082894,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","recovery","ssd"],"created_at":"2025-10-09T01:50:43.525Z","updated_at":"2025-10-09T01:51:25.944Z","avatar_url":"https://github.com/chmodshubham.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Recovery from SSD/Harddisk\n\nRecovering deleted files or folders from a server can be a complex task, especially if the server is not set up with a trash or recycle bin system. Here are some general steps you can follow:\n\nIf the files are deleted using `rm -rf` then forget about them and focus on not repeating the mistake.\n\n#### 1. Stop using the system\n\nAs soon as you realize that you've deleted a file or folder, stop using the system. When a file is deleted, the space it occupied is marked as free and can be overwritten by other data. By continuing to use the system, you risk overwriting the deleted files and making them unrecoverable.\n\n#### 2. Use a File Recovery Tool\n\nThere are several file recovery tools available for Linux systems. One of the most popular is `extundelete`.\n\nTo install `extundelete`, use `sudo apt-get install extundelete`\n\n##### Identify the correct device\n\nUse the `lsblk` or `df` command to identify the device identifier of the hard disk or SSD.\n\n##### Unmount the device\n\nUse the `umount` command to unmount the device. This is to prevent any further changes to the data on the device while we are trying to recover the deleted files.\n\n```bash\n# Replace /dev/sdb2 with your actual device if it's different.\numount /dev/sdb2\n```\n\n![image](https://github.com/ShubhamKumar89/hard-drive-backup/assets/97805339/15347b0b-85c4-4230-84a5-6e19755cf22f)\n\n##### Filesystem Corruption Check\n\nRun `fsck` on the filesystem with `sudo fsck /dev/sdb2` to fix any issues that `fsck` finds.\n\n##### Recover the data\n\n Use this command to recover a deleted directory:\n\n ```bash\nsudo extundelete --restore-directory /path/to/deleted/directory /dev/sdb2\n```\n \nThis option will attempt to recover all deleted files from the filesystem. Be aware that this could recover a large number of files and take a long time.\n\n```bash\nsudo extundelete --restore-all /dev/sdb2\n```\n\n![image](https://github.com/ShubhamKumar89/hard-drive-backup/assets/97805339/f8711c18-f5e7-4775-a673-39de85381bbf)\n\n![image](https://github.com/ShubhamKumar89/hard-drive-backup/assets/97805339/3d2faccd-58a9-460e-a922-c0db77f1070f)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmodshubham%2Fharddisk-data-recovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmodshubham%2Fharddisk-data-recovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmodshubham%2Fharddisk-data-recovery/lists"}