Skip to main content

Adding Persistent Storage to Live-Boot Images

Hardware Configuration

  • Memory: Assigned as needed
  • Hard Disk: Add an extra hard disk to the live-boot VM, sized as needd
  • CD / DVD: Live Boot .iso file
  • NIC: Select desired network / VLAN

Boot Order

  1. .iso file
  2. Hard disk
  3. NIC
  4. Etc.

Procedure

Partition and Format Disk

Assumes disk is mapped to /dev/sda

  1. Log into live-boot session
  2. Run lsblk to find dev mapping of disk (e.g. /dev/sda)
  3. Run sudo fdisk /dev/sda to partition the disk
    • Press npenter > enter > enter w to create the primary partition
  4. Run sudo mkfs.ext4 -L persistence /dev/sda1 to format as ext4 and assign the label "persistence"
  5. Finally, make the storage congruent with the live-boot overlay
sudo mount /dev/sda1 /mnt
echo "/ union" | sudo tee /mnt/persistence.conf
sudo umount /mnt
sudo poweroff

 

Edit Grub

  1. Power on the VM and boot from .iso image
  2. Select the LIVE environment and press the TAB key to edit Grub
  3. Edit so that quiet reads persistence quiet
  4. Press Enter to boot into live session