Differences between revisions 5 and 6
Revision 5 as of 2021-07-25 11:31:29
Size: 1521
Editor: ?Lier0
Comment:
Revision 6 as of 2021-07-25 11:33:41
Size: 1520
Editor: ?Lier0
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
Download an iso-hybrid of debian : [[https://www.debian.org/CD/live/]]. Download an iso-hybrid of debian: [[https://www.debian.org/CD/live/]].

Translation(s): English - Français


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

  • Get an iso.
  • Format the drive.
  • Prepare the files.

Get the iso

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

Format the drive

We can use:

  • FAT partition with boot flag,
  • ext4 partition with label persistence. The label "persistence" is mandatory.

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