HOW: Force VDI increase of existing dynamic storage

Discussions related to using VirtualBox on Linux hosts.
Post Reply
MikeInGenSan
Posts: 9
Joined: 15. Mar 2020, 09:48
Primary OS: Debian Sid
VBox Version: OSE Debian
Guest OSses: Debain 12, Windows 11
Location: Geneal Santos City, Philippines

HOW: Force VDI increase of existing dynamic storage

Post by MikeInGenSan »

I have a Linux VB running on a Linux host.
The original VDI was set to 8GB normal with 6.98 used.
I used the "Tools/Hard disks" menu option in the VB manager to increase the size to 16GB.
The 'settings/storage" reports" the 16GB

Yet, when I boot the client and run df I get:

Code: Select all

mike@whitebox:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
...
[b]tmpfs             813644    3172    810472   1% /run/user/1000[/b]
What am I doing wrong?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: HOW: Force VDI increase of existing dynamic storage

Post by mpack »

MikeInGenSan
Posts: 9
Joined: 15. Mar 2020, 09:48
Primary OS: Debian Sid
VBox Version: OSE Debian
Guest OSses: Debain 12, Windows 11
Location: Geneal Santos City, Philippines

Re: HOW: Force VDI increase of existing dynamic storage

Post by MikeInGenSan »

Thanks. I missed step #2. However gparted does not seem to offer what I needed. The 16GB of drive looks like this:
[dev/sda1 7.04GB] -- [ dev/sda2 extended (975MB) dev/sda5 linux-swap (same 975MB)] -- [unallocated 8.23GB]

I can't move the sda2/sda5 swap partition to the end and if blocks the sda1 from extending to the unallocated.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: HOW: Force VDI increase of existing dynamic storage

Post by mpack »

You should Google for how to move the swap partition.

Had it been me I would not started where you are now. I would have done the original resize using CloneVDI, which has a function to move the swap partition aside (see readme notes).
MikeInGenSan
Posts: 9
Joined: 15. Mar 2020, 09:48
Primary OS: Debian Sid
VBox Version: OSE Debian
Guest OSses: Debain 12, Windows 11
Location: Geneal Santos City, Philippines

Re: HOW: Force VDI increase of existing dynamic storage

Post by MikeInGenSan »

Yes, but I was following the instructions in the comment:
See step 2 in FAQ: How to resize a Virtual Drive.
Anyway. I just decided to create a new guest and blow off the old one once the new one was up and running. Ends up being pretty much less of a hassle.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: HOW: Force VDI increase of existing dynamic storage

Post by scottgus1 »

MikeInGenSan wrote: 21. Aug 2023, 04:06 I was following the instructions in the comment:
See step 2 in FAQ: How to resize a Virtual Drive.
Step 2 says:
The only step that VirtualBox is concerned with is step 1. After that you need to seek additional information on the partition manager you wish to use from the vendor of the partition manager.
So how to use the position manager is not discussed in step 2. That needs to be a web search.

A quick spot of web searching showed me very quickly how to move a swap position in Gparted.
Post Reply