{"id":23058083,"url":"https://github.com/samwhelp/tool-initramfs-extract","last_synced_at":"2026-02-09T21:10:10.016Z","repository":{"id":90412177,"uuid":"493637490","full_name":"samwhelp/tool-initramfs-extract","owner":"samwhelp","description":"tool-initramfs-extract","archived":false,"fork":false,"pushed_at":"2022-05-20T08:53:47.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-30T00:41:28.516Z","etag":null,"topics":["cpio","initramfs","initramfs-extract","initrd","microcode"],"latest_commit_sha":null,"homepage":"https://samwhelp.github.io/tool-initramfs-extract/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samwhelp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-05-18T11:40:08.000Z","updated_at":"2023-08-31T17:00:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c1f560e-83e9-4d23-9b96-cf012c614069","html_url":"https://github.com/samwhelp/tool-initramfs-extract","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samwhelp/tool-initramfs-extract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Ftool-initramfs-extract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Ftool-initramfs-extract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Ftool-initramfs-extract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Ftool-initramfs-extract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samwhelp","download_url":"https://codeload.github.com/samwhelp/tool-initramfs-extract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Ftool-initramfs-extract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271751926,"owners_count":24814707,"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-08-23T02:00:09.327Z","response_time":69,"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":["cpio","initramfs","initramfs-extract","initrd","microcode"],"created_at":"2024-12-16T02:14:22.272Z","updated_at":"2026-02-09T21:10:04.995Z","avatar_url":"https://github.com/samwhelp.png","language":"Shell","readme":"\n\n# tool-initramfs-extract\n\n* [tool-initramfs-extract](https://samwhelp.github.io/tool-initramfs-extract/) ([GitHub](https://github.com/samwhelp/tool-initramfs-extract))\n* [initramfs-extract](https://github.com/samwhelp/tool-initramfs-extract/blob/main/src/asset/bin/initramfs-extract)\n\n\n## Subject\n\n* [Prepare](#prepare)\n* [Manual Install](#manual-install)\n* [Usage](#usage)\n* [Link](#link)\n\n\n## Prepare\n\n``` sh\ngrep 'COMPRESS:' /etc/initramfs-tools/initramfs.conf\n```\n\nshow\n\n```\n# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz | zstd ]\n```\n\ninstall (de)compress utils\n\n\n``` sh\nsudo apt-get install cpio gzip bzip2 xz-utils zstd lz4 lzop\n```\n\n\n## Manual Install\n\ninstall [curl](https://packages.ubuntu.com/jammy/curl)\n\n``` sh\nsudo apt-get install curl\n```\n\ndownload [initramfs-extract](https://raw.githubusercontent.com/samwhelp/tool-initramfs-extract/main/src/asset/bin/initramfs-extract) to ~/.local/bin/initramfs-extract,\n\n``` sh\ncurl -fLo ~/.local/bin/initramfs-extract --create-dirs https://raw.githubusercontent.com/samwhelp/tool-initramfs-extract/main/src/asset/bin/initramfs-extract\nchmod 755 ~/.local/bin/initramfs-extract\n```\n\n\n## Usage\n\n### Extract /boot/initrd.img\n\nrun\n\n``` sh\ninitramfs-extract /boot/initrd.img initrd-root\n```\n\nor run\n\n``` sh\ninitramfs-extract \"/boot/initrd.img-$(uname -r)\" initrd-root\n```\n\n\u003e `unmkinitramfs -v /boot/initrd.img initramfs`\n\n\u003e `unmkinitramfs -v \"/boot/initrd.img-$(uname -r)\" initramfs`\n\n\n### Extract initrd (other compress format)\n\ncreate new initrd\n\n``` sh\nmkinitramfs -c bzip2 -o initrd.img\n```\n\nthen extract\n\n``` sh\ninitramfs-extract initrd.img initrd-root\n```\n\n\u003e More [case](https://github.com/samwhelp/tool-initramfs-extract/tree/main/src/asset/case)\n\n\u003e `unmkinitramfs -v initrd.img initramfs`\n\n\n## Link\n\n* [Why is it that my initrd only has one directory, namely, 'kernel'?](https://unix.stackexchange.com/questions/163346/why-is-it-that-my-initrd-only-has-one-directory-namely-kernel)\n* [How to extract initrd which contain microcode](https://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=362052#forumpost362052)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwhelp%2Ftool-initramfs-extract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamwhelp%2Ftool-initramfs-extract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwhelp%2Ftool-initramfs-extract/lists"}