Differences between revisions 3 and 4
Revision 3 as of 2021-07-25 11:17:07
Size: 1538
Editor: ?Lier0
Comment:
Revision 4 as of 2021-07-25 11:18:40
Size: 1521
Editor: ?Lier0
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
The next step will allow you to get a debian live usb with persistence, in few steps :  The next step will allow you to get a debian live usb with persistence:
Line 18: Line 18:
You can use : You can use:

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

You 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

You have to mount the FAT partition, lets admit to /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