Swap after upgrading from F32 to F33

Ah okay!
So to summary:

  1. sudo -e /etc/default/grub /etc/fstab
  2. delete swap entry in /etc/fstab
  3. delete "resume=UUID=<…>" entry in /etc/default/grub
  4. sudo grub2-mkconfig -o /etc/grub2$(test -d /sys/firmware/efi && echo -efi).cfg
  5. sudo dracut -f --regenerate-all
  6. sudo swapoff /dev/sda5
  7. sudo parted /dev/sda rm 5
  8. sudo parted /dev/sda resizepart 4 100%
  9. sudo resize2fs /dev/sda4

Am i right?

1 Like

How can i undo:

sudo parted /dev/sda resizepart 4 100%

Is this command for resizing sda4 to maximum disk capacity?
If I have home on sda3, will the sda3 partition get deleted by this command?
Because it says:

$ sudo parted /dev/sda resizepart 4 100%
Warning: Partition /dev/sda4 is being used. Are you sure you want to continue?
Yes/No? y                                                                 
End?  [116GB]?                                                            
Information: You may need to update /etc/fstab.

Type this:


sorry but what is this command are for? is it for maximizing sda4 till the end of the disk?

1 Like

Parted said this after every command. Should I generate grub and fstab again with these commands again or just reboot?

No need, the UUIDs have not changed.

1 Like