{"id":49416651,"url":"https://github.com/nsevent/expand_virtualbox_storage","last_synced_at":"2026-04-29T03:10:58.255Z","repository":{"id":106548070,"uuid":"203279736","full_name":"NSEvent/expand_virtualbox_storage","owner":"NSEvent","description":"A guide to expand storage in a VirtualBox VM with a Windows host and a Linux client","archived":false,"fork":false,"pushed_at":"2019-08-20T02:19:40.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-09-29T12:57:06.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/NSEvent.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}},"created_at":"2019-08-20T01:52:44.000Z","updated_at":"2023-09-29T12:57:12.833Z","dependencies_parsed_at":null,"dependency_job_id":"901b26d6-67b0-4f4e-b6d8-7b23c21667fe","html_url":"https://github.com/NSEvent/expand_virtualbox_storage","commit_stats":null,"previous_names":["nsevent/expand_virtualbox_storage"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/NSEvent/expand_virtualbox_storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fexpand_virtualbox_storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fexpand_virtualbox_storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fexpand_virtualbox_storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fexpand_virtualbox_storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSEvent","download_url":"https://codeload.github.com/NSEvent/expand_virtualbox_storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEvent%2Fexpand_virtualbox_storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32408555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T02:37:21.628Z","status":"ssl_error","status_checked_at":"2026-04-29T02:36:50.947Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-29T03:10:57.683Z","updated_at":"2026-04-29T03:10:58.239Z","avatar_url":"https://github.com/NSEvent.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expand usable VirtualBox storage (for ext4 filesystems)\nThis guide details how to expand your VirtualBox VM's storage with a Windows host and a Linux client\n\nWritten by Kevin Tang\n\n## IN WINDOWS (HOST)\n### 1. Locate the VM's vdi file\nMine was in \"C:\\Users\\kvntng\\VirtualBox VMs\\Ubuntu 18.04.2 LTS\\Ubuntu 18.04.2 LTS.vdi\"\n\n### 2. Make a copy of the vdi before proceeding\n\n### 3. Go to VirtualBox directory in Windows Command Prompt\n```\ncd “C:\\Program Files\\Oracle\\VirtualBox”\n```\n\n### 4. Resize the virtual disk to a desired size\nThe following command will resize to 80 GB\n```\nVBoxManage modifyhd \"C:\\Users\\kvntng\\VirtualBox VMs\\Ubuntu 18.04.2 LTS\\Ubuntu 18.04.2 LTS.vdi\" --resize 81920\n```\n\n### 5. Open VirtualBox. VirtualBox should now detect the change in disk size\n\n## IN LINUX (CLIENT) \n\n### 1. Use gparted to expand the disk space (physical volume)\n```\ngparted\n```\nUse the slider to adjust the space expanded\n\n### 2. Find the name of the filesystem\n```\ndf -h\n```\nHere the name is \"/dev/ubuntu-vg/root\" mounted on \"/\"\n\n### Resize logical volume\nThis will expand the logical volume to 100% of the physical volume\n```\nsudo lvresize -r -l 100%VG /dev/mapper/ubuntu--vg-root\n```\n### Resize filesystem\nThis will resize the filesystem to the full size of the logical volume\n```\nsudo resize2fs /dev/mapper/ubuntu--vg-root\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsevent%2Fexpand_virtualbox_storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsevent%2Fexpand_virtualbox_storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsevent%2Fexpand_virtualbox_storage/lists"}