Bootable Linux USB stick: Difference between revisions

Jump to navigation Jump to search
Line 84: Line 84:
=== Install grub2 for BIOS boot (from chroot environment) ===
=== Install grub2 for BIOS boot (from chroot environment) ===


Next, change the BIOS to allow non-UEFI (legacy) boot.
Next, add the files to allow non-UEFI (legacy) boot: boot Fedora Live DVD and enter in a terminal:
 
Then, boot Fedora Live DVD and enter in a terminal:
  mount /dev/sdX4 /mnt
  mount /dev/sdX4 /mnt
  mount -o bind /dev /mnt/dev
  mount -o bind /dev /mnt/dev
Line 94: Line 92:


install grub2 for BIOS boot and configure it:
install grub2 for BIOS boot and configure it:
dnf -y install grub2
  rm /boot/grub2/grubenv
  rm /boot/grub2/grubenv
  grub2-install /dev/sdX
  grub2-install /dev/sdX
  grub2-mkconfig -o /etc/grub2.cfg
  grub2-mkconfig -o /etc/grub2.cfg
(on UEFI systems, /boot/grub2/grubenv is a symlink to /boot/efi/EFI/fedora/grubenv (from package grub2-efi.rpm). The symlink has to be removed before grub2-install can finish successfully, it automatically creates a new file /boot/grub2/grubenv (as in package grub2.rpm)
explanation: on UEFI systems, /boot/grub2/grubenv is a symlink to /boot/efi/EFI/fedora/grubenv created by package grub2-efi. The symlink has to be removed before grub2-install can finish successfully; it automatically creates a new file /boot/grub2/grubenv.


check /etc/grub2.cfg and if needed, change at all positions:
The following is probably not necessary: check /etc/grub2.cfg and if needed, change at all positions:
“linuxefi” to “linux16”, and
“linuxefi” to “linux16”, and
“intrdefi” to “intrd16”
“initrdefi” to “initrd16”


=== generating images and copies of the stick ===
=== generating images and copies of the stick ===
1,330

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu