I'm trying to update the SSD on my desktop to a larger one. The computer was originally built around 2011 and has the ubuntu version upgraded over the years (currently on 18.04; I believe started on 12.04); it also dual-boots Windows through GRUB.
I booted into a live flash drive and pulled up GParted expecting to be able to just copy the partition(s) from the old drive to the new one and be good to go. Unfortunately past me wanted to have fun with the new thing at the time of creating this computer and so I found the partitions on my old SSD are the following:
/dev/sda1: Fat32 filesystem; 190MiB; 974KiB Used; flags: boot, esp
/dev/sda2: EXT2 filesystem; 244MiB; 141.03MiB used; flags: msftdata
/dev/sda3: LVM2 filesystem; 111.37GiB; "0.00 B" used; flags: lvm
I followed the instructions on this post to copy the data on the /dev/sda3
partition to a new LVM partition on the new SSD (/dev/sdb3
) and copied the other two partitions over as well so the new SSD looks like:
/dev/sdb1: Fat32 filesystem; 190MiB; 974KiB Used; flags: NONE
/dev/sdb2: EXT2 filesystem; 244MiB; 141.03MiB used; flags: NONE
/dev/sdb3: LVM2 filesystem; 931.9Gib; 111.37 Gib used; flags: lvm
I know I need to at least get the boot flag back on the /dev/sdb1
partition but I'm having trouble understanding why there are what appear to be two "boot" partitions here (/dev/sdb1
only has single folder EFI
whereas /dev/sdb2
has efi
, extlinux
, grub
, and a few files that all end with -generic
) and how to go about setting the proper flag(s) on them to make sure the system boots correctly again.
Main questions:
- What are these two "boot" partitions doing and how do they work (I'm assuming together)?
1.a. Why is one Fat32?
- Which of the flags on the
/dev/sda
partitions are important and how do I set those?
- Is there anything else I'm missing to make the system boot from the new SSD? I've seen many references to things like
grub-update
and such but I don't know enough about how that works to know what changes/commands are needed in this specific case.
Thanks a ton for any help or suggestions of things to research!
P.S. I also tried searching for an explication of this partitioning scheme but it seems my Google-fu is not up to the task.