Portable Ubuntu System
- Prepare partitions as follows using Gparted.
partition | file system | flags | |
---|---|---|---|
/dev/sda1 | fat32 | boot,esp | |
/ | /dev/sda2 | ext4 | |
/home | /dev/sda3 | ext4 | |
SWAP | /dev/sda3 |
-
Install Ubuntu by selecting Something Else and according to the partition table above.
-
Install GRUB on ESP parition
sudo mount /dev/sda1 /mnt/boot/efi
sudo mount -B /dev /mnt/dev
sudo mount -B /dev/pts /mnt/dev/pts
sudo mount -B /proc /mnt/proc
sudo mount -B /sys /mnt/sys
sudo chroot /mnt
grub-install --removable /dev/sda
Reference :
Dual-Booting Linux Messed Up Windows Time? Here’s How to Fix It
sudo timedatectl set-local-rtc 1
Paring Keyboard for Dualboot
This thread best explains the steps to follow. Basically we need to store same paring key for both Operating Systems as the MAC address stays the same for the hardware when a device connects.