Differences

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

Link to this comparison view

persistency [2015/02/10 08:50]
mika fixed debian live manual URL [mika]
persistency [2017/10/03 18:12] (current)
zugschlus clarify the wording, confirm that 2017.05 works as described, check whether bug still applies (it doesn't, bug reference removed)
Line 2: Line 2:
  
 It's possible to use so called (root) persistency on Grml. It's possible to use so called (root) persistency on Grml.
 +
 This means you can store (all) your settings and reuse them on reboot, without having to remaster/re-generate the ISO by storing all the changes on an external media (like a USB device). This means you can store (all) your settings and reuse them on reboot, without having to remaster/re-generate the ISO by storing all the changes on an external media (like a USB device).
 +
 +This has been tried last with grml 2017.05
  
 ==== Partition layout ==== ==== Partition layout ====
  
 For a partition to be considered for persistence use, it has to have the filesystem label "persistence". For a partition to be considered for persistence use, it has to have the filesystem label "persistence".
 +
 You can override this with the "persistence-label" boot-option like "persistence-label=something" (remember the 16 character limit on volume labels ext2/3/4), which might be handy if you want to use the same device with different Grml versions. You can override this with the "persistence-label" boot-option like "persistence-label=something" (remember the 16 character limit on volume labels ext2/3/4), which might be handy if you want to use the same device with different Grml versions.
  
Line 27: Line 31:
  
 To boot Grml in persistence mode you have to use the "persistence" boot option. To boot Grml in persistence mode you have to use the "persistence" boot option.
 +
 There is an appropriate entry in the default boot menu of the ISO. There is an appropriate entry in the default boot menu of the ISO.
 +
 Alternatively, you can pass `--bootoptions="persistence"` to `grml2usb` or `grml2iso` when creating your own media. Alternatively, you can pass `--bootoptions="persistence"` to `grml2usb` or `grml2iso` when creating your own media.
  
-==== Step by step ====+==== Step by step example for a single USB stick ====
  
 Create two partitions on your medium, one vfat (about the size of the ISO(s) you want to boot) and one ext2/3/4 for your persistent data. Give the later the label "persistence" (either by passing "-L persistence" to mkfs.ext3 or tune2fs). Create two partitions on your medium, one vfat (about the size of the ISO(s) you want to boot) and one ext2/3/4 for your persistent data. Give the later the label "persistence" (either by passing "-L persistence" to mkfs.ext3 or tune2fs).
Line 49: Line 55:
  
 Boot and enjoy your new system! Boot and enjoy your new system!
 +
 +The same will work with a CD and an arbitrary additional writeable block device.
  
 ==== Encryption ==== ==== Encryption ====
  
-Encryption may be done with grml-crypt creating the LUKS partition and then creating an ext2/3/4 labeled partition with a label like "persluks". Using this requires the following options at boot:+Encryption may be done with grml-crypt creating the LUKS partition and then creating an ext2/3/4 labeled partition with a label like "persistence", as in the unencrypted case. Using this requires the following options at boot:
  
 <code> <code>
-persistence persistence-encryption=luks persistence-label=persluks+persistence persistence-encryption=luks
 </code> </code>
  
-NOTE: This feature might be brokensee [[http://bts.grml.org/grml/issue1292|issue1292]].+If you happen to know how grml chooses the LUKS device to unlock or whether it blindly unlocks any LUKS devices it happens to find at bootplease insert this information hereIn practice, the code works as advertised, but it is not clear to the writer of this paragraph how it works.
  
 ==== Persistent /etc/network/interfaces ==== ==== Persistent /etc/network/interfaces ====
  
 Grml generates /etc/network/interfaces in the boot sequence. Grml generates /etc/network/interfaces in the boot sequence.
 +
 If you want to preserve your changes in the /etc/network/interfaces in persistence mode then boot Grml with the "nonetworking" boot-option. If you want to preserve your changes in the /etc/network/interfaces in persistence mode then boot Grml with the "nonetworking" boot-option.
 +
 Have a look at [[http://grml.org/cheatcodes|grml-cheatcodes.txt]] for additional boot-options. Have a look at [[http://grml.org/cheatcodes|grml-cheatcodes.txt]] for additional boot-options.
  
 
persistency.txt · Last modified: 2017/10/03 18:12 by zugschlus
 
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Grml homepage Driven by DokuWiki