www.knoppix.net
 Permission to use these pages kindly granted by www.knoppix.net.
 These pages are a static version of those available at www.knoppix.net. Please check there for the latest information. Converted on 9/5/2003.
 Thanks to the many contributors to www.knoppix.net!

 Persistent Home How To

Deutsch: Knoppix Persistent Home (original -old- version)


This is a draft-translation of the German Knoppix Persistent Home. I think the original Text is by the author of the Persistent Home scripts. (No, it's not, I wrote it but pasted in a lot from the readme file -- twm)

It's bedtime for me, if you like, please go one and correct my translation - rob

1 review, by:

  1. Henk Poley

Was ist Knoppix Persistent Home?

Knoppix Persistent Home ist eine Sammlung von Scripts, mit deren Hilfe kann das Home-Verzeichnis von knoppix auf einer Festplatte, einem ZIP-Laufwerk, einem USB- Speicherstift, etc gespeichern kann. So bleiben auch nach einem Reboot die Einstellungen automatisch erhalten.

In Knoppix 3.2 ist dieses Funktion integriert, so dass man diese Skripte nicht mehr benoetigt. Allerdings funktioniert sie in Knoppix 3.2 etwas anders als in dieser Anleitung beschrieben.

What is Knoppix Persistent Home?

Knoppix Persistent Home is a collection of scripts for putting the /home directory on a harddisk, ZIP-drive, USB-stick, etc. So your configuration changes will be restored after a reboot. Persistent Home will be (is) a built-in feature of Knoppix 3.2, so you won't need to download the scripts with this version of Knoppix. But beware that the implementation in Knoppix 3.2 is slightly different from what is described here.

Download Persistent Home for Knoppix 3.1: httphttp://www.centernetworx.de/knx_persistent_home_0.4.zip


Wie funktioniert es?

  1. Das Script "knx_persistent_home" schreibt ein File names ".knoppix" auf die angegebene Partition.
  2. Anschließend wird ein ext2-Filesystem in diesem File angelegt.
  3. Beim Booten muss der Parameter floppyconf angegeben werden, dann wird knoppix.sh auf der eingelegten Diskette ausgefuehrt, welches sämtliche Partitionen nach dem ".knoppix"-File durchsucht (dazu werden die Partitionen temporär readonly gemountet).

Wird das File gefunden, wird es über ein Loopdevice unter /home/knoppix gemountet. Man kann sich die Eingabe des Parameters und die Diskette sparen, wenn man die Knoppix-CD entsprechend abaendert. (siehe unten)

How does it work?

  1. The script "knx_persistent_home" will create a file named ".knoppix" on the partition you chose.
  2. An ext2-filesystem will be created inside this file.
  3. At boot-time you must give the CheatCode "floppyconf".

Knoppix will then run knoppix.sh from the inserted floppy. This script will scan all partitions for the ".knoppix"-file (partitions will temporarily be mounted readonly for this). When the file is found, it will be mounted to /home/knoppix (with -o loop).

You don't have to create a bootfloppy and can skip the input of the CheatCode when you modify your Knoppix-CD (see below). This is not needed with Knoppix 3.2, since it's already built-in.


Bekannte Probleme

Die Anleitung (readme) enthaelt einen Fehler:

Known Problems

Readme contains one mistake:


Persistent Home ohne Diskette

Es ist moeglich, die Knoppix CD so zu modifizieren, dass man auch ohne eine zusaetzliche Diskette ein Persistent Home hat. Dazu ist kein komplettes Remastering notwendig (fuer alle, die jetzt an die Anforderungen dafuer denken: 1 Gig Ram+Swap und 3 Gig Plattenplatz), sondern man muss lediglich das Skript knoppix.sh aus dem Persistent Home Archiv in das Verzeichnis KNOPPIX auf der CD kopieren....

Ok, CDs sind normalerweise nicht beschreibbar. ;-)

Also geht man wie folgt vor (Voraussetzung: Ein gebootetes Linux System, bitte frage mich keiner, wie man das unter Windows macht, das wissen andere sicher besser.):

  1. Kopiere den Inhalt der Knoppix CD in ein Verzeichnis (z.B. /home/ich/knoppix).
  2. Kopiere die Date knoppix.sh in das Verzeichnis KNOPPIX (-> /home/ich/knoppix/KNOPPIX)
  3. Optional: Kopiere die Datei knx_persistent_home ebenfalls dorthin. Dies ist sinnvoll, wenn man sein Persistent Home erst noch anlegen will, sonst muesste man diese Datei immer auf Diskette dabei haben.
  4. Erzeuge mit mkisofs eine neue ISO-Datei auf der Basis dieses Verzeichnisses, dabei muss boot.img als El Torito Bootimage angegeben werden z.B.:

mkisofs -r -o neues_iso.iso -b KNOPPIX/boot.img /home/ich/knoppix

  1. Brenne das neue iso-Image auf eine CD

Persistent Home without floppy

The Knoppix 3.2 CD has already got the "floppyconf" scripts on-board, so you don't need these steps on a 3.2 CD.

It is possible to modify the Knoppix-CD so that it will use the Persistent Home scripts without an additional floppydisk. You won't need to do a complete Remaster (If think about doing a remaster anyways, you'll need 1 Gig Ram+Swap and 3 Gig free hd space). You only need to copy the script knoppix.sh from the Persistent Home ZIP-file into the directory /KNOPPIX on the CD..

OK, normaly CDs are not writable. ;-)

How to do this (You must have a running GNU/Linux system. Please don't ask me how to do this under Windows - maybe someone else is be able to tell you.):

  1. Copy the content of the Knoppix CD into one directory (f.e. /home/foo/knoppix).
  2. Copy the file knoppix.sh into the dir KNOPPIX (-> /home/foo/knoppix/KNOPPIX)
  3. Optional: Also copy the file knx_persistent_home. If it's not on the CD you will have to put it on a floppy when you want to create a (new) Persistent Home.
  4. Create a new ISO-file with mkisofs from these directories, you must mention boot-en.img as an "El Torito" Bootimage. Ex:

mkisofs -r -o new_iso.iso -b KNOPPIX/boot.img /home/foo/knoppix

  1. Write/Burn this new ISO-image onto a CD-R(W).

Changelog

Änderungen seit der Alpha version (für die die sie getestet haben): Changings since the Alpha verson (for all who have test it):

I don't think that this is relevant, today.


Fragen und Antworten

F: Gibt es ausser einer modifizierten CD eine Moeglichkeit, ein persistent Home auf einem USB-Stick zu haben, wenn der Rechner kein Diskettenlaufwerk hat?

A: ???

Question and Answers

Q: Is it possible -- beside a modified CD -- to use Persistent Home on a USB-stick, when the PC has no floppy-drive?

A: ???


Last edited on April 16, 2003 5:37 am.