Skip to content

Instantly share code, notes, and snippets.

@pgjean
Last active July 12, 2023 22:01
Show Gist options
  • Save pgjean/ed4093c437588edd7b4158d42fa531da to your computer and use it in GitHub Desktop.
Save pgjean/ed4093c437588edd7b4158d42fa531da to your computer and use it in GitHub Desktop.
Making a Kali Linux Bootable USB Drive

How to create a Kali Linux Bootable USB Drive

What You’ll Need

Creating a Bootable Kali USB Drive

the easyest way to create your usb drive is by using Etcher

  1. Plug your USB drive into an USB port
  2. Choose the Kali Linux ISO file to be imaged
  3. Click the “Flash!” button once ready

Etcher procedure

Adding Persistence to a Kali Linux "Live" USB Drive

Boot into Kali Linux

  1. Restart the Mac
  2. Hold down the Option key when you hear the chime
  3. Select EFI as the startup disk
  4. Select Kali Linux (persistence)

Create a new persistent partition

  1. Start gparted from the terminal

  2. Select the USB disk

  3. Select the `Unallocated partition

  4. Create a new partition (by default this will fill the free space on the USB)

    • Partition -> New
    • Create as: Primary Partition
    • File system: ext3
    • Label: persistence
  5. Apply the operations

    • Edit -> Apply All Operations
    • Confirm this action
  6. Exit gparted

Combine the new partition with Kali Linux, persistently

Create a mount point for the persistence particion, and mount it

$ mkdir -p /mnt/my_usb
$ mount <DISK> /mnt/my_usb

Create a partition.conf file. This will enable the persistent storage on USB startup

$ echo "/ union" > /mnt/my_usb/persistence.conf
$ umount <DISK>

Check the persistent partition

  1. Restart the Mac
  2. Hold down the Option key when you hear the chime
  3. Select `EFI as the startup disk Select Kali Linux (persistence) At the terminal:
    • df -h will bring up a list of mounted drives. There should be a mountpoint /lib/live/mount/persistence/<DISK> pointing to your new persistent partition
    • ls -ltrh /lib/live/mount/persistence/<DISK> should show four entries: lost+found, persistence.conf, rw, and work. The rw directory is a persistent link to /.

ref: https://gist.github.com/pgjean/0199e5654e3acf439297b7c03be271b8

@ilyasseonly
Copy link

ls
cd
pwd
ls -lt

@ilyasseonly
Copy link

Hello World_

@ilyasseonly
Copy link

  1. @
  • [ Lists]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment