Skip to content

Instantly share code, notes, and snippets.

@RiFi2k
Created August 5, 2017 09:42
Show Gist options
  • Save RiFi2k/1009fef5b5efcec0877a8a9272c42f9d to your computer and use it in GitHub Desktop.
Save RiFi2k/1009fef5b5efcec0877a8a9272c42f9d to your computer and use it in GitHub Desktop.
# https://www.parrotsec.org/doc/persistence.fx
# For persistence: (File Name=parrot-rw, Volume Name=persistence) <<< NOT casper-rw !!!!!!
# 1. Click 'Create ext2/3/4 fs' in RMPrepUSB
# 2. Set the FILENAME to parrot-rw
# 3. Set the VOLUME LABEL to persistence <------ VERY IMPORTANT: DO NOT CHANGE
# 4. Set amount of space you would like allowed to persist
# 5. Choose ext4
# The persistent 'volume' needs the persistence.conf file in it!
# Boot to parrot first boot menu option (do NOT use the parrot Encrypted Persistence menu entry!)
# and then type following 5 lines to enable persistence - then reboot
# su (password=toor)
# mkdir -p /mnt/usb
# ls /dev/ (to see which is the USB device - normally sdb - or use df command)
# mount /dev/sdb3 /mnt/usb (will always be sdx3 for 3rd partition)
# echo "/ union" > /mnt/usb/persistence.conf
# umount /mnt/usb
#
# Now reboot and use Persistence menu entry
# OR...
# FOR LUKS Encryption use (replace /dev/sdb3 with USB drive name - always ends in 3)
# su (password=toor)
# cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3
# cryptsetup luksOpen /dev/sdb3 my_usb
# mkfs.ext3 -L persistence /dev/mapper/my_usb
# e2label /dev/mapper/my_usb persistence
# mkdir -p /mnt/my_usb
# mount /dev/mapper/my_usb /mnt/my_usb
# echo "/ union" > /mnt/my_usb/persistence.conf
# umount /dev/mapper/my_usb
# cryptsetup luksClose /dev/mapper/my_usb
#
# Now reboot and choose Live Mode with Encrypted Persistence menu entry if LUKS used (use passphrase to unlock)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment