Translation(s): English - Fran├žais


The next step will allow you to get a debian live usb with persistence:

Get the iso

Download an iso-hybrid of debian: https://www.debian.org/CD/live/.

Format the drive

We can use:

Prepare the files

Lets copy files to newly created partitions.

Boot

We have to mount the FAT partition, lets admit /dev/sdd1 to /mnt. Then unarchive the iso to /mnt.

# mount /dev/sdd1 /mnt
# cd /mnt
# 7z x /home/user/iso/debian-live.iso

We need some changes on the files.

# mv isolinux syslinux
# for f in $( grep -FRil "splash quiet" ); do echo $f; LANG=C sed 's/splash quiet/persistence /;s/quiet splash/persistence /' -i $f; done;
# cd syslinux
# rename "s/iso/sys/" iso*
# cd ~
# sync
# umount /dev/sdd1

Persistence

We need to put a conf on the persistence partition.

# mount /dev/sdd2 /mnt
# cd /mnt
# echo "/ union" > persistence.conf 
# sync
# umount /dev/sdd2