book/install-hyperbola/usb-booteable.md

934 B

MBR

It's easy:

$ dd if=hyperbola-milky-way-v0.2.1-dual.iso of=/dev/sdb bs=1M status=progress && sync

GPT

  1. Create one partition entry in GPT

    parted

    (parted) mktable GPT

    (parted) mkpart primary fat32 1MiB -1

    (parted) quit

  2. Create a FAT32 filesystem on such partition and setup a label.

    mkfs.vfat -F 32 -n

  3. Mount target filesystem.

    mount

  4. Extract ISO image on target filesystem.

    bsdtar -x --exclude=isolinux/ --exclude=EFI/hyperiso/ --exclude=hyperbola/boot/syslinux/ -f -C

  5. Unmount target filesystem.

    umount

Notes

  • <FS-LABEL>: HYPER_v031 for example
  • <DEV-TARGET>: /dev/sdc for example
  • <DEV-TARGET-N>: /dev/sdc1 for example
  • <MNT-TARGET-N>: /mnt for example
  • <ISO-SOURCE>: $HOME/Downloads/hyperbola.iso for example