Differences between revisions 4 and 5
Revision 4 as of 2021-07-25 11:18:40
Size: 1521
Editor: ?Lier0
Comment:
Revision 5 as of 2021-07-25 11:31:29
Size: 1521
Editor: ?Lier0
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * Get an iso
 * Format the drive
 * Prepare the files
 * Get an iso.
 * Format the drive.
 * Prepare the files.
Line 18: Line 18:
You can use: We can use:
Line 26: Line 26:
You have to mount the FAT partition, lets admit to `/dev/sdd1` to `/mnt`. Then unarchive the iso to /mnt. We have to mount the FAT partition, lets admit `/dev/sdd1` to `/mnt`. Then unarchive the iso to `/mnt`.

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