Is there any way to make ubuntu really portable? (installing without dualboot) [duplicate]
I want to know how to install the full version of Ubuntu on my external drive. So I can run system on any other devices I have 297GB hard disk,I want to be running the same system on multiple devices.
Solution 1:
Simplified Full Install of Ubuntu 20.04 to USB that Boots BIOS and UEFI Mode
Many computers today boot in UEFI mode while older computers boot in BIOS mode. It is possible to create a Full install USB device that boots Ubuntu in either BIOS or UEFI. You just need to start with a boot partition for each.
-
Download BIOS/UEFI Template: https://phillw.net/isos/linux-tools/uefi-n-bios/dd_grub-boot-template-for-uefi-n-bios.img.xz
-
Flash image to target USB using Win32DiskImager, Rufus, mkusb, balenaEtcher, etc.
-
It is recommended to unplug any internal drives especially when installing in UEFI mode. Creating while booted in BIOS mode saves a few steps.
-
Boot Live Installer USB, and insert Target USB.
-
Start install process, select: Language, Keyboard, Wireless, Updates and Something Else.
-
When the "Something Else" option opens select Target USB for Bootloader installation. This is important.
-
(Optional Data Partition), Select the empty space on the Target drive and click the plus sign to create a FAT32 partition with mount point "/Windows". Leave at least 6GB up to 100GB empty space for root partition.
-
Select the empty space on the Target drive and click the plus sign to create an ext4 partition with mount point "/".
-
Select Install now, confirm partition to be formatted, enter location, name and password.
-
When install is complete copy /boot/grub/grub.cfg from the root partition to overwrite /boot/grub/grub.cfg on boot,esp partition.
-
If the Target USB was created using Rufus/Etcher or in UEFI mode reinstall GRUB for BIOS boot:
sudo mount /dev/sdx3 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdx
Thanks to Sudodus for the mkusb based BIOS/UEFI Template