Ubuntu Portable Setup

  • August 28, 2023
  • 1 min read

Portable Ubuntu System

  1. Prepare partitions as follows using Gparted.
partitionfile systemflags
/dev/sda1fat32boot,esp
//dev/sda2ext4
/home/dev/sda3ext4
SWAP/dev/sda3
  1. Install Ubuntu by selecting Something Else and according to the partition table above.

  2. 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 :

  1. Link

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.

(https://unix.stackexchange.com/questions/255509)