{"id":15374609,"url":"https://github.com/ading2210/lklfuse-static","last_synced_at":"2025-07-30T17:05:28.500Z","repository":{"id":239384641,"uuid":"799374737","full_name":"ading2210/lklfuse-static","owner":"ading2210","description":"Scripts for building lklfuse as a single static binary. Mount any Linux filesystem without root.","archived":false,"fork":false,"pushed_at":"2024-05-12T10:51:44.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T14:46:58.075Z","etag":null,"topics":["fuse","linux","lkl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ading2210.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,"zenodo":null}},"created_at":"2024-05-12T00:11:49.000Z","updated_at":"2025-02-06T21:00:40.000Z","dependencies_parsed_at":"2024-05-12T02:25:05.831Z","dependency_job_id":"80076558-f624-418b-8412-5ac4bdd3d2a5","html_url":"https://github.com/ading2210/lklfuse-static","commit_stats":null,"previous_names":["ading2210/lklfuse-static"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ading2210/lklfuse-static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Flklfuse-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Flklfuse-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Flklfuse-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Flklfuse-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ading2210","download_url":"https://codeload.github.com/ading2210/lklfuse-static/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ading2210%2Flklfuse-static/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261217289,"owners_count":23126249,"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":["fuse","linux","lkl"],"created_at":"2024-10-01T13:59:10.105Z","updated_at":"2025-07-30T17:05:28.483Z","avatar_url":"https://github.com/ading2210.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lklfuse-static\n\nThis repository contains scripts for building [`lklfuse`](https://github.com/lkl/linux/blob/master/tools/lkl/lklfuse.c) as a single static binary. The final executable is only 4.1MB in size.\n\n`lklfuse` allows you to mount any filesystem supported by Linux (EXT4, BTRFS, XFS) as a FUSE mount, without needing root. Since `lklfuse` uses the Linux kernel's code directly, there is no need for a virtual machine (which is what `libguestfs` does).\n\n## Building:\n\n1. Run `sudo ./build.sh` as root. This will create an Alpine Linux chroot and run the build.\n2. Your static binaries are now located at `./lklfuse` and `./fusermount`. Copy these into `/usr/local/bin`. \n3. Optionally delete the Alpine chroot once you are done with `sudo alpine/destroy --remove`.\n\n## Usage:\nCreating and mounting an EXT4 partition on a disk image, without root:\n```\n$ fallocate -l 512MB /tmp/disk.img\n$ mkfs.ext4 /tmp/disk.img\nmke2fs 1.47.0 (5-Feb-2023)\nDiscarding device blocks: done                            \nCreating filesystem with 499713 1k blocks and 124928 inodes\nFilesystem UUID: 42c0a683-d6e9-49ac-a354-b62793ef670a\nSuperblock backups stored on blocks: \n        8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409\n\nAllocating group tables: done                            \nWriting inode tables: done                            \nCreating journal (8192 blocks): done\nWriting superblocks and filesystem accounting information: done \n\n$ mkdir /tmp/disk\n$ lklfuse /tmp/disk.img /tmp/disk/ -o type=ext4\n$ echo \"hi\" \u003e /tmp/disk/test.txt\n$ df -h /tmp/disk\nFilesystem      Size  Used Avail Use% Mounted on\nlklfuse         448M   15K  419M   1% /tmp/disk\n$ umount /tmp/disk\n```\n\n## Copyright:\nThis repository is licensed under the GNU GPL v3.\n\n```\nading2210/lklfuse-static: Scripts to compile lklfuse as a static binary\nCopyright (C) 2024 ading2210\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fading2210%2Flklfuse-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fading2210%2Flklfuse-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fading2210%2Flklfuse-static/lists"}