{"id":50779828,"url":"https://github.com/dy-sh/wsl-mount-manager","last_synced_at":"2026-06-12T02:04:40.348Z","repository":{"id":361047177,"uuid":"1252862758","full_name":"dy-sh/wsl-mount-manager","owner":"dy-sh","description":"Keyboard-driven terminal UI (TUI) to mount Linux disk partitions into WSL2 on Windows","archived":false,"fork":false,"pushed_at":"2026-05-29T02:01:46.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T02:24:01.740Z","etag":null,"topics":["disk-mount","ext4","python","terminal","textual","tui","windows","wsl","wsl2"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/dy-sh.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T00:21:15.000Z","updated_at":"2026-05-29T02:01:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dy-sh/wsl-mount-manager","commit_stats":null,"previous_names":["dy-sh/wsl-mount-manager"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dy-sh/wsl-mount-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy-sh%2Fwsl-mount-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy-sh%2Fwsl-mount-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy-sh%2Fwsl-mount-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy-sh%2Fwsl-mount-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy-sh","download_url":"https://codeload.github.com/dy-sh/wsl-mount-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy-sh%2Fwsl-mount-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34225384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["disk-mount","ext4","python","terminal","textual","tui","windows","wsl","wsl2"],"created_at":"2026-06-12T02:04:39.634Z","updated_at":"2026-06-12T02:04:40.340Z","avatar_url":"https://github.com/dy-sh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WSL Mount Manager\n\n![License: MIT](https://img.shields.io/badge/license-MIT-yellow)\n![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue)\n![Platform: Windows + WSL2](https://img.shields.io/badge/platform-Windows%20%2B%20WSL2-0078D6)\n![Built with Textual](https://img.shields.io/badge/built%20with-Textual-5a3fd6)\n\nA fast, keyboard-driven terminal UI for mounting Linux disk partitions into **WSL2**\non Windows. Single Python file, one dependency.\n\n![WSL Mount Manager screenshot](screenshot.svg)\n\n## Why\n\nWSL can mount real Linux partitions with `wsl --mount`, but doing it by hand means\njuggling `Get-CimInstance`, `wsl --mount --bare`, `lsblk`, partition numbers and\nfilesystem types in an elevated shell. This wraps all of that in a TUI: pick a disk,\npick a partition, press Enter.\n\n## Features\n\n- **Any filesystem lsblk recognizes** — ext4/ext3/btrfs/xfs/vfat/…, not just ext4.\n- **Mount many at once** — several disks *and* several partitions of the same disk\n  can be mounted simultaneously, each under its own `/mnt/wsl/\u003cname\u003e`.\n- **Select, then act** — moving to / clicking a partition only selects it; the\n  footer then highlights the available action (Mount / Unmount). Enter or the\n  footer key performs it. Up, down, Enter, done.\n- **Named profiles** — save a disk + partition + mount-name combo and remount it with\n  a single keystroke.\n- **Live status** — see what is mounted under `/mnt/wsl/`, auto-refreshed.\n- **One-key actions** — open a mount in Windows Explorer or a WSL terminal.\n- **Command palette \u0026 menu** — `Ctrl+P` fuzzy-searches the actions valid for the\n  focused panel; `Ctrl+O` opens a menu (theme · keys · screenshot · quit).\n- **Many built-in themes** — a custom near-black `mounter-dark` plus a dozen popular\n  themes (Tokyo Night, Gruvbox, Everforest, Kanagawa, Ayu, Night Owl, GitHub,\n  Material, Synthwave '84, Cobalt2, …). A live-preview picker (`Ctrl+T`) re-themes\n  the whole app as you scroll the list, and your choice is remembered.\n- **Auto-elevation** — requests UAC and relaunches itself; no need to open an admin\n  shell first.\n\n## Requirements\n\n- Windows 10/11 with **WSL2** and at least one distro installed.\n- **Python 3.9+**.\n- **[textual](https://github.com/Textualize/textual)** (`pip install textual`).\n- Administrator privileges (handled automatically via UAC).\n\n## Install \u0026 run\n\n```powershell\npip install textual\npython mounter.py\n```\n\nThat's all — it's a single self-contained file.\n\n## Keys\n\n| Key      | Action                                                        |\n| -------- | ------------------------------------------------------------- |\n| ↑ / ↓    | Move through the disks → partitions tree                      |\n| Enter    | On a disk: expand. On a partition: mount it (or unmount if mounted) |\n| Tab      | Switch focus: tree / Mounted / Profiles                       |\n| `m`      | Mount the selected partition                                  |\n| `u`      | Unmount the selected mount                                    |\n| `e`      | Open the selected mount in Windows Explorer                   |\n| `t`      | Open a WSL terminal at the selected mount                     |\n| `p`      | Save the selected partition *or* mounted entry as a profile   |\n| `d`      | Delete the selected profile (focus the Profiles panel first)  |\n| `r`      | Refresh                                                       |\n| `+` / `-`| Maximize / restore the focused panel                          |\n| `?`      | Toggle the keys / help panel                                  |\n| `Ctrl+T` | Theme picker (live preview, remembered)                       |\n| `Ctrl+S` | Save a screenshot (SVG)                                        |\n| `Ctrl+O` | Menu (theme · keys · screenshot · quit)                       |\n| `Ctrl+P` | Command palette (fuzzy-search the focused panel's actions)    |\n| `q`      | Quit                                                          |\n\nThe **Mount name** field sets the folder name under `/mnt/wsl/`; it is prefilled from\nthe partition label.\n\n## How it works\n\n- Lists physical disks via `Win32_DiskDrive` (PowerShell).\n- `wsl --mount --bare` + `lsblk -OJ` enumerate a disk's partitions and filesystems.\n- A partition is mounted by attaching its disk once (`wsl --mount --bare`) and then\n  mounting it inside WSL as root (`mount /dev/\u003cpart\u003e /mnt/wsl/\u003cname\u003e`); unmounting is\n  a plain `umount`. This is what lets multiple partitions of one disk coexist.\n- State (last selection, profiles, and each active mount's disk/partition) lives in\n  `~/.wsl-mount-manager/`.\n\n## Notes\n\n- Unmounting needs the Windows disk id. The app knows it only for mounts it created\n  (tracked in `~/.wsl-mount-manager/active.json`). For mounts made elsewhere, unmount\n  manually: `wsl --unmount \u003cDeviceID\u003e`.\n- `wsl --mount` attaches whole physical disks to WSL; a disk in active use by Windows\n  (e.g. with a mounted NTFS volume) or the system disk cannot be bare-mounted.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy-sh%2Fwsl-mount-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy-sh%2Fwsl-mount-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy-sh%2Fwsl-mount-manager/lists"}