User Tools

Site Tools


general:linux:debian_live_with_persistence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
general:linux:debian_live_with_persistence [2023/01/17 07:19] – created sunkangeneral:linux:debian_live_with_persistence [2023/01/17 09:17] (current) sunkan
Line 12: Line 12:
 </code> </code>
  
 +Copy to USB drive
 +<code>
 +dd oflag=direct conv=fsync bs=8M status=progress if=debian-live-11.6.0-amd64-standard+nonfree-persist.iso of=/dev/<usbdrive>
 +</code>
 +
 +Create new partition for the persistence (will occupy the rest of the drive)
 +<code>
 +fdisk --wipe never /dev/<usbdrive> <<<$'n\np\n\n\n\nw'
 +</code>
 +
 +Create filesystem on new partition and configure persistence \\
 +More info [[https://live-team.pages.debian.net/live-manual/html/live-manual/customizing-run-time-behaviours.en.html#556|Here]]
 +<code>
 +mkfs.ext4 -m 0 -L persistence /dev/<usbdrive>3
 +mount /dev/<usbdrive>3 /mnt
 +echo '/ union' > /mnt/persistence.conf
 +umount /mnt
 +</code>
 +
 +For automatic start add a timeout for grub
 +<code>
 +mount /dev/<usbdrive>2 /mnt
 +echo 'set timeout=5' >> /mnt/efi/debian/grub.cfg
 +umount /mnt
 +</code>
 +
 +===== Further tweaks =====
 +You may want to configure journald.conf to use Storage=volatile and possibly disable rsyslogd. \\
 +So that you limit the amount of writes to the USB drive.
 +
 +Also sysstat might be good do disable in case it has been enabled.
general/linux/debian_live_with_persistence.1673939967.txt.gz · Last modified: 2023/01/17 07:19 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki