WIP Possibly depreceated

How to configure a persistent USB device.

You can follow these guidelines for how to create a boot device

Remember you have to create two partitions, the first containing only the system, so it has to be as great as the ISO image.

The best way to create this first partition is to use the dd method.

The second step is to create a second partition formatted in ext4 with persistence as label, this second partition

has to contain a persistence.conf file containing the following text: / union

but let's go further First Step

Once you’ve downloaded your Parrot ISO file, you can use dd to copy it over to your USB stick as follows:

WARNING. Although the process of imaging Parrot on a USB stick is quite easy, we recommend you go through it only once you’ve mastered each and every step of the process: a simple mistake in the “dd” procedure can result in the destruction of arbitrary partitions. You’ve been warned.

Plug your USB device into your Linux computer’s USB port.

Check the device path of your USB storage with dmesg or with ls /dev | grep sd.

Carefully proceed with the imaging of the Parrot ISO file on the USB device:

dd if=Parrot.iso of=/dev/sdb

wait until the process ends. Second Step With Gparted

Open Gparted and select the pendrive device

You will find a first unrecognized partition followed by an empty space

Create a new ext4 partition in the following empty space, it has to be as great as the persistence space you want to give to your Parrot USB drive.

Give this new partition the label “persistence”

Confirm and wait everything is done

Then mount the persistence partiton and create the persistence.conf file in it

Open the file with a simple text editor, type / union and save the file.

It's done, now your Parrot USB drive can boot with persistence if you boot it using the persistence label in the boot menu. From Terminal

Create and format an additional partition on the USB stick. In our example, we create a 2 GB persistent partition and create a persistence.conf file on it.

size=2gb iso=Parrot.iso read bytes _ < <(du -bcm $iso |tail -1); echo $bytes parted /dev/sdb mkpart primary $bytes $size mkfs.ext4 -L persistence /dev/sdb2 e2label /dev/sdb2 persistence mkdir -p /mnt/parrot_usb mount /dev/sdb2 /mnt/parrot_usb echo “/ union” > /mnt/parrot_usb/persistence.conf umount /dev/sdb2

Written by José "TeraBreik" Gatica


Using Parrot | Troubleshooting | Linux Beginner Guide | Home