general:linux:debian_live_with_persistence
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
general:linux:debian_live_with_persistence [2023/01/17 07:19] – created sunkan | general:linux:debian_live_with_persistence [2023/01/17 09:17] (current) – sunkan | ||
---|---|---|---|
Line 12: | Line 12: | ||
</ | </ | ||
+ | Copy to USB drive | ||
+ | < | ||
+ | dd oflag=direct conv=fsync bs=8M status=progress if=debian-live-11.6.0-amd64-standard+nonfree-persist.iso of=/ | ||
+ | </ | ||
+ | |||
+ | Create new partition for the persistence (will occupy the rest of the drive) | ||
+ | < | ||
+ | fdisk --wipe never / | ||
+ | </ | ||
+ | |||
+ | Create filesystem on new partition and configure persistence \\ | ||
+ | More info [[https:// | ||
+ | < | ||
+ | mkfs.ext4 -m 0 -L persistence / | ||
+ | mount / | ||
+ | echo '/ union' > / | ||
+ | umount /mnt | ||
+ | </ | ||
+ | |||
+ | For automatic start add a timeout for grub | ||
+ | < | ||
+ | mount / | ||
+ | echo 'set timeout=5' | ||
+ | umount /mnt | ||
+ | </ | ||
+ | |||
+ | ===== 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