Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use non default storage size? #8

Open
zoeyronain opened this issue Jun 19, 2022 · 2 comments
Open

Add ability to use non default storage size? #8

zoeyronain opened this issue Jun 19, 2022 · 2 comments
Assignees

Comments

@zoeyronain
Copy link

Screwing around with the VM I managed to run out of space compiling Firefox, is there a way to ideally add more space to the current VM or do I need to nuke it and change something in the xcode project itself?
CleanShot 2022-06-18 at 20 36 07

@lucyllewy
Copy link
Owner

I discovered yesterday that the Ubuntu Server installation routine doesn't allocate the whole disk space to the root partition. So while the disk is set to 64GB the Ubuntu system only has a root partition of 30GB. You should be able to resize the root partition with the following:

sudo lvextend +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

I'll make a note to somehow provide a knob to twiddle to change the size of the disk (keep this issue open until I have added it ☺️)

@lucyllewy lucyllewy self-assigned this Jun 19, 2022
@MAPReiff
Copy link

sudo lvextend +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

The first command should include the -l flag and be sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants