Legacy Boot Ubuntu 21.04

Did my regular Ubuntu install with a 1 MB unformatted partition at the beginning of the hard drive with a GPT partition table. The 1 MB partition should have the flag bios_grub.

After the regular install, I ran


grub-install --target=i386-pc /dev/vda

Then I boot up in both secure UEFI mode and a legacy boot using the MBR format.

Upgrading Ubuntu, but what about my old pacakges?

I’ve upgraded Ubuntu a lot over the years, and often times I’ll start off with a fresh new install, but I really want a list of the old applications I used. Well, ask ubuntu had the answer for me.

https://askubuntu.com/questions/2389/generating-list-of-manually-installed-packages-and-querying-individual-packages


comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)

Now I can sort through the old package installs to see if I need or want all of my old packages.

Legacy Boot Ubuntu 20.10

Did my regular Ubuntu install with a 1 MB unformatted partition at the beginning of the hard drive with a GPT partition table. The 1 MB partition should have the flag bios_grub.

After the regular install, I ran


grub-install --target=i386-pc /dev/vda

Then I boot up in both secure UEFI mode and a legacy boot using the MBR format.