Verified Commit 5832e6d6 authored by Abdullah's avatar Abdullah 🎨

Adding kalilinux persistence post

new post added, 'how to make kalilinux persistence on USB'
parent 74400c0b
title: "Kalilinux Persistence"
date: 2020-07-14T17:22:11+05:00
draft: false
author: "Abdullah"
toc: true
comments: true
layout: post
tags: ["kali linux", "kali linux persistence", "usb", "linux in usb", "bootable"]
description: ["How to make kali linux persistence in a USB"]
keywords: ["kali linux", "kali linux persistence", "kali linux in usb"]
## Getting Kalilinux image
Go to [Downloads]( and download latest live image. Make sure you don't download the installer image.
## Make USB bootable
Use `dd` to write the kali image to USB.
In linux environment:
# dd if=kali-linux-xxxx.x-live-amd64.iso of=/dev/sdX status=progress bs=4M
Replace `kali-linux-xxxx.x-live-amd64.iso` with downloaded iso iamge path and `/dev/sdX` with path of your USB device. You can find USB path by running `lsblk` in terminal. Make sure you don't select the existing linux installation drive.
## Create persistence partition
Create a primary partition with `fdisk`:
# fdisk /dev/sdx
Welcome to fdisk (util-linux 2.35.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The device contains 'iso9660' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
Command (m for help): n
Partition type
p primary (3 primary, 0 extended, 1 free)
e extended (container for logical partitions)
Select (default e):p
Selected partition 3
Press `n` to create a new partition. Type `p` to make it primary. Hit enter twice so all the remaining space would be allocated to new partition.
Type `w` to write changes to USB drive.
## Create filesystem
Create ext4 filesystem in new partition.
# mkfs.ext4 /dev/sdX3 -L persistence
# e2label /dev/sdX3 persistence
## Mount new partition
Mount the new created partition somewhere in your filesystem.
# mount /dev/sdX3 /mnt
## Create configuration
Create a configuration file in new partition which we mounted earlier at `/mnt`:
# echo "/ union" > /mnt/persistence.conf
## Un-mount the partition
Un-mount the partition.
# umount /dev/sdX3
## Reboot
Reboot and press your hardware dedicated button to boot from new created USB. Don't forget to select the persistence option from Kali menu.
Thanks for reading. :wink:
Subproject commit 48b423ccc103e3d469e08dca96efb04713e58b91
Subproject commit f2d374ca83a3ed31dfdf9926cc083b4f941adc49
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment