{"id":13474207,"url":"https://github.com/meithecatte/cursedfs","last_synced_at":"2025-04-07T07:06:43.335Z","repository":{"id":98788216,"uuid":"233951694","full_name":"meithecatte/cursedfs","owner":"meithecatte","description":"Make a disk image formatted with both ext2 and FAT at once","archived":false,"fork":false,"pushed_at":"2023-05-05T17:47:07.000Z","size":2,"stargazers_count":382,"open_issues_count":3,"forks_count":12,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-31T05:06:23.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meithecatte.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}},"created_at":"2020-01-14T22:53:14.000Z","updated_at":"2025-01-17T23:53:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c6b29d5-a7a6-4394-834b-cd18018aee40","html_url":"https://github.com/meithecatte/cursedfs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Fcursedfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Fcursedfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Fcursedfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Fcursedfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meithecatte","download_url":"https://codeload.github.com/meithecatte/cursedfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608151,"owners_count":20965952,"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":[],"created_at":"2024-07-31T16:01:10.335Z","updated_at":"2025-04-07T07:06:43.310Z","avatar_url":"https://github.com/meithecatte.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# cursedfs\n\nMake a disk image formatted with both ext2 and FAT, at once.\n\n```bash\n~/cursedfs% wget 'https://github.com/meithecatte/cursedfs/releases/download/v1.0/cursed.img'\n~/cursedfs% sudo mount -o loop -t ext2 cursed.img mountpoint/\n~/cursedfs% ls mountpoint/\nmkfs.cursed\n~/cursedfs% sudo umount mountpoint/\n~/cursedfs% sudo mount -o loop -t msdos cursed.img mountpoint/\n~/cursedfs% ls mountpoint/\ngudnuse.ogg\n```\n\n# Why?\n\n[I got nerd-sniped](https://twitter.com/Foone/status/1217162186130198529?s=20)\n\n# How?\n\nIt turns out this is surprisingly simple to do: just create a FAT volume with a\nlot of reserved sectors and put the ext2 into the reserved sectors. This works\nbecause the filesystems choose different places to put their superblock: FAT\nuses the very first sector, while ext2 leaves the first kilobyte unused.\n\n# Can I write to the filesystems?\n\nYes! When I first decided to do this, I thought writing to the image would\nsurely break everything, but as it turns out, the method I've found means\nthe filesystems don't conflict.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeithecatte%2Fcursedfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeithecatte%2Fcursedfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeithecatte%2Fcursedfs/lists"}