I have a pc with Windows 10 64 bit and I'm fairly certain it's installed in legacy mode for booting. I heard somewhere that in order to install Ubuntu on my flash drive, I need to have it installed in the same boot mode as Windows. I want my Ubuntu installation to be 100% portable, so I want to have a partition for Ubuntu only and the rest for random files and stuff.
I tried doing the Ubuntu installation on my USB drive previously but the error stated that GRUB couldn't be installed so the OS can't boot. This is why I think I need legacy booting. I can very easily be wrong about this.
Edit: Forgot to mention I'm doing the installation via DVD so I want to use the DVD only if possible. If it isn't possible because of some special ISO I need then that's perfectly fine
TL;DR: I want a fully portable Ubuntu installation with legacy booting
If it's important, my specs are listed below:
-Ryzen 5 1500x
-16gb 2400 RAM
-Radeon R9 290x
-ASRock micro-atx motherboard
-2tb HDD
-500gb Samsung 850 EVO