Product Documentation

Introduction

This guide provides steps to burn a Rocky Linux ISO to a USB.

Environment

Prerequisites 

  • Download the Rocky 9 Kickstart ISO using the link provided by StrongKey.

Steps

  1. Get a USB flash drive with a capacity of at least 16GB.

  2. Plug the USB flash drive in a computer running Linux.

  3. Identify the name of the flash drive as the OS sees it by running the following command

    $ lsblk

    You will get an output similar to the screenshot below:

  4. In this case its sdb. Use the dd command to copy the ISO to the USB flash drive by running the following command:

    $ sudo dd if=<path-to-iso>/<rocky-93-kickstart>.iso of=/dev/sdb bs=4M status=progress
  5. After the dd command is done running you will see an output similar to the screenshot below:

  6. Use the lsblk command again to view the partitions on the USB drive you will see the output similar to the screenshot below:


    You will see two partitions on the drive. We will mount the smaller partition to view/edit files in there. Run the following command to mount the partition:

    $ sudo mount /dev/sdb2 /mnt/
  1. Inside the mount point open the grub.cfg to edit the GRUB menu by running the following command.

    $ vi /mnt/EFI/BOOT/grub.cfg
  2. Add another boot entry to the config file appending the inst.ks directive:

    menuentry 'Kickstart Install Rocky Linux 9.3' --class fedora --class gnu-linux --class gnu --class os {
    			linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Rocky-9-3-x86_64-dvd quiet inst.ks=hd:LABEL=Rocky-9-3-x86_64-dvd:/ks.cfg
    			initrdefi /images/pxeboot/initrd.img
    		}
  1. Unmount the partition from the computer:

    $ sudo umount /mnt/