{"id":15372992,"url":"https://github.com/vi/nbdserve","last_synced_at":"2025-12-26T17:55:18.124Z","repository":{"id":57643684,"uuid":"142224094","full_name":"vi/nbdserve","owner":"vi","description":"A simple NBD (network block device) server in Rust","archived":false,"fork":false,"pushed_at":"2023-08-26T02:51:49.000Z","size":11,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T16:44:36.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/vi.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":"2018-07-24T23:49:45.000Z","updated_at":"2023-10-14T19:06:49.000Z","dependencies_parsed_at":"2024-10-16T13:00:43.612Z","dependency_job_id":"3cf2a1e4-8622-4bce-b399-f6b358aafa29","html_url":"https://github.com/vi/nbdserve","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"7b43892525c8e2fa1cf0f623a31043e07d87bd48"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fnbdserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fnbdserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fnbdserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fnbdserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/nbdserve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249072250,"owners_count":21208145,"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-10-01T13:53:53.584Z","updated_at":"2025-12-26T17:55:18.046Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"nbdserve\n---\n\nSimple network block device server. Created because of usual nbd-server is tricky-ish to cross-compile. Also it typically requires config file, which is inconvenient for one-off use.\n\nThere are pre-built versions for Linux, Mac, Windows and Android on [releases page](https://github.com/vi/nbdserve/releases/).\n\nIPv6 is supported, use options like `-a [::1]`.\n\n```\nnbdserve 0.1.0\nVitaly \"_Vi\" Shukela \u003cvi0oss@gmail.com\u003e\nSimple network block device server\n\nUSAGE:\n    nbdserve [FLAGS] [OPTIONS] \u003cfile\u003e\n\nFLAGS:\n    -h, --help          Prints help information\n    -q, --quiet         Quiet mode, suppress non-error output\n    -r, --read-only     Read-only mode\n        --resize        Support RESIZE NBD extension (not implemented)\n        --rotational    Hint clients that elevator algorithm should be used\n        --trim          Convert TRIM operations to FALLOC_FL_PUNCH_HOLE or something (not implemented)\n    -V, --version       Prints version information\n\nOPTIONS:\n    -a, --addr \u003chost\u003e    Address to listen the port on [default: 127.0.0.1]\n    -p, --port \u003cport\u003e    TCP port to listen [default: 10809]\n    -s, --size \u003csize\u003e    \n\nARGS:\n    \u003cfile\u003e    File or device to be served\n```\n\n# Windows\nOn windows, you can use with physical drives like so:\n\nList physical drives:\n```\nwmic diskdrive list brief\n```\n\nBuild and run (note that physical drives seem to only work in read only mode):\n```\nwmic diskdrive list brief\ncargo build --release\n.\\target\\release\\nbdserve.exe --addr 0.0.0.0 \\\\.\\PHYSICALDRIVE0 --read-only\n```\n\nYou can use the [firewall-rule.ps1](firewall-rule.ps1) script to add the needed firewall rules to\nthe windows firewall.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fnbdserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Fnbdserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fnbdserve/lists"}