Bootable Linux USB stick: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 15: Line 15:
# it is a good idea to give easy root access to the one user you create because certainly some packages will have to be installed or updated when the stick is in use
# it is a good idea to give easy root access to the one user you create because certainly some packages will have to be installed or updated when the stick is in use
# it is a good idea to save an image of the stick whenever you made a successful change; otherwise you might need to start from scratch if you mess something up.
# it is a good idea to save an image of the stick whenever you made a successful change; otherwise you might need to start from scratch if you mess something up.
# (if the installation not already does it for you) '''you should label the partitions and use the labels for mounting the partitions in /etc/fstab; don't use /dev/sda1 or the like because depending on the hardware it is booted on, after booting the stick, and depending on the actual hardware, the stick may be /dev/sdb or /dev/sdc or ... !'''
# (if the installation not already does it for you) '''you should label the partitions and use the labels for mounting the partitions in /etc/fstab, alternatively use UUID's; don't use /dev/sda1 or the like because depending on the hardware it is booted on, after booting the stick, and depending on the actual hardware, the stick may be /dev/sdb or /dev/sdc or ... !'''




Line 37: Line 37:
For performance, make sure that the big partitions are aligned to 8192-sector boundaries; gdisk default is 2048-sector boundaries - the default can be adjusted. If you use the above sizes and the + sign for specifying them, this happens to work out automatically.
For performance, make sure that the big partitions are aligned to 8192-sector boundaries; gdisk default is 2048-sector boundaries - the default can be adjusted. If you use the above sizes and the + sign for specifying them, this happens to work out automatically.


=== Install Fedora23 on an UEFI machine (UEFI enabled ; LegacyBoot / CSM disabled) ===
=== install Fedora23 on an UEFI machine (UEFI enabled ; LegacyBoot / CSM disabled) ===
Whenever you see a ?, you must fill in the appropriate drive letter (e.g. c or d).  
Whenever you see a ?, you must fill in the appropriate drive letter (e.g. c or d).  
  sd?3: efi         /boot/efi
  sd?3: efi         /boot/efi
Line 71: Line 71:
  dosfslabel /dev/sd?1 VFAT
  dosfslabel /dev/sd?1 VFAT


shutdown or reboot
shutdown or reboot:
  exit
  exit
  systemctl poweroff (or reboot for testing)
  systemctl poweroff (or reboot for testing)