resize/increase root filesystem

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
donaldUNDdonald
Posts: 4
Joined: 2022-03-27 11:31

resize/increase root filesystem

#1 Post by donaldUNDdonald »

I have pop os 22.04 with ext4 running as a guest in virtmanager.
The root filesystem is too small and should be enlarged. In virtmanager I increased the guests IDE from 20 GB to 40 GB.
I formatted these additional 20 GB in pop os with disks as a separate partition.

How can I now combine the new partition and the existing root partition?
With the resize option I can only free up space.

Aki
Global Moderator
Global Moderator
Posts: 3698
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 100 times
Been thanked: 486 times

Re: resize/increase root filesystem

#2 Post by Aki »

Hello,
donaldUNDdonald wrote: 2024-08-25 09:57 I have pop os 22.04 with ext4 running as a guest in virtmanager.
Discussions moved to "Off-Topic" sub-forum.
donaldUNDdonald wrote: 2024-08-25 09:57 The root filesystem is too small and should be enlarged. In virtmanager I increased the guests IDE from 20 GB to 40 GB.
I formatted these additional 20 GB in pop os with disks as a separate partition.
How can I now combine the new partition and the existing root partition?
You can't, unless the boot partition uses a LVM manager.
donaldUNDdonald wrote: 2024-08-25 09:57 With the resize option I can only free up space.
If you are booting from a Debian Live ISO image, you can delete the new partition and extend the root filesystem you want to extend. You can use the gparted utility to do this.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

donaldUNDdonald
Posts: 4
Joined: 2022-03-27 11:31

Re: resize/increase root filesystem

#3 Post by donaldUNDdonald »

Thanks a lot

the debian 10.10.0 live image somehow did not have the gparted tool installed and i could not install it live. But with the gparted live image everything worked out fine.

Would you recommend LVM as standard for new installations?

Aki
Global Moderator
Global Moderator
Posts: 3698
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 100 times
Been thanked: 486 times

Re: resize/increase root filesystem

#4 Post by Aki »

Hello,
donaldUNDdonald wrote: 2024-08-28 13:54 Thanks a lot

the debian 10.10.0 live image somehow did not have the gparted tool installed and i could not install it live. But with the gparted live image everything worked out fine.
I'm glad you sorted it out.
donaldUNDdonald wrote: 2024-08-28 13:54 Would you recommend LVM as standard for new installations?
I would only recommend LVM to experienced users and if it is strictly necessary for storage needs (i.e. frequent increase/decrease in storage size over time).

Please, remember to mark the discussion as "[Solved]".
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

lindi
Debian Developer
Debian Developer
Posts: 531
Joined: 2022-07-12 14:10
Has thanked: 2 times
Been thanked: 101 times

Re: resize/increase root filesystem

#5 Post by lindi »

For future reference, consider using the "virt-resize" command. It works very nicely with libvirt VMs.

Post Reply