Expanding partition does not work

Hi, I’m trying to expand my dietpi disk on hyper-v and for some reason, the above command, systemctl enable dietpi-fs_partition_resize is not working.

I have increased the hyper-v disk size to 32GB (from 8GB) and fdisk -l /dev/sda recognizes the increased/new size.

But on reboot, /dev/sda1 which is my boot partition is not resized to take advantage of the new available space.

Thank you!

Do you get any response when using the command? Does it say it worked but actually it doesn’t work?

Hi, yes, it finished without any errors, but when I reboot, I don’t see any changes. This is the message at reboot.

What happens when you try to resize with dietpi-drive_manager?

I’m not sure that you are able to extend sda1 as its first partition and there are other partitions behind. I guess, you would need to move sda2 und sda5 first. :thinking:

Hi, yes, also tried that from the menu system and also does not work. Not sure if the info below will help? The fdisk shows that the system sees the expanded hyper-v disk of 32G.

Something is wrong, look at the starting sectors for sda2 and sda5, they are just a few sectors away and end on the same sector, which shouldn’t be possible for different partitions?!
Maybe you can deactivate the swap, try to extend sda2 again and reestablish the swap.

You can try to drop sda2 and sda5 if they are not needed.

Hi, thanks for the tips. I delete sda2 and sda5 and re-ran the resize from the dietpi menu. After rebooting, the resize seems to work, but also seeing a message with I/o error? Is there a way to fix that?

fd0 usually refers to a floppy drive. I guess there isn’t anything like this attached? Maybe you can check your configuration