I have a VirtualBox virtual machine running Debian Bookworm with a 20 GiB hard drive, ( I let the installer partition this drive ). After the last update it ran low on diskspace so I went into tools and made the drive 20 GiB larger. Then booted the GParted live CD to add the new space to sda1.
What I've ran into is that between sda1 and the new unallocated free space is sda2. Which is a 975 MiB extended partition that contains sda5 which is a 975 MiB swap.
No matter what I have tried, I cannot get sda2 to move. Whenever I try, all it wants to do is make sda2 20 GiB larger.
How do I move the dratted thing over so I can expand sda1 to encompass the new unallocated space?
I know in Mint a swap partition is no longer needed but I'm not sure Debian12 can run without one or not, so I'm not sure I can do without sda2 here.
Any thoughts? Suggestions?
What I've ran into is that between sda1 and the new unallocated free space is sda2. Which is a 975 MiB extended partition that contains sda5 which is a 975 MiB swap.
No matter what I have tried, I cannot get sda2 to move. Whenever I try, all it wants to do is make sda2 20 GiB larger.
How do I move the dratted thing over so I can expand sda1 to encompass the new unallocated space?
I know in Mint a swap partition is no longer needed but I'm not sure Debian12 can run without one or not, so I'm not sure I can do without sda2 here.
Any thoughts? Suggestions?

