Results 1 to 3 of 3

Thread: Using Overlay Updates in Knoppix 7.2 LiveUSBs

  1. #1
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631

    Using Overlay Updates in Knoppix 7.2 LiveUSBs

    .
    Given a working Knoppix 7.2 LiveUSB with reiserfs persistence to begin-with,
    and unused space in /mnt-system/ equal to or greater than 40% the size of the
    contents of current /KNOPPIX-DATA, my overlay update process is as follows:

    1. Accumulate a group of changes in the persistence partition, /KNOPPIX-DATA.

    2. Survey the contents of /KNOPPIX-DATA to see if some elements may be omitted
    in preparing a compressed image overlay to replace the contents of /KNOPPPIX-DATA.
    Compress the net group of changes and store the resultant compressed, read-only
    KNOPPIX[n] file temporarily in /mnt-system.

    3. Examine KNOPPIX[n] and determine that its size is (usually) <= 40% the
    size of the net contents of /KNOPPIX-DATA, and that there is no file of this name
    already in /mnt-system/KNOPPIX/. If so, then move KNOPPIX[n] into /mnt-system/KNOPPIX/
    and reboot with noimage cheatcode.

    4. If KNOPPIX[n] seems to correctly represent the now-off-line /KNOPPIX-DATA,
    then use GParted to reformat the reiserfs partition and henceforth boot without
    the noimage cheatcode. Reformatting should provide a new 'empty' persistence file
    to allow further, un-compressed read/write storage of additional system changes.

    I have added a function MakeOverlay to my /etc/profile with root:root privileges;
    this function currently suppresses any files with cache or Cache in its name.
    For example, to make KNOPPIX3 and store it in /mnt-system/, I use a command line
    in a root lxterminal and enter the command, MakeOverlay 3. MakeOverlay is
    defined as follows:

    MakeOverlay() { # Cloop-compress & save /KNOPPIX-DATA as /mnt-system/KNOPPIX$1
    ISO=KNOPPIX$1; ISODIR=/mnt-system/; ISOSRC=KNOPPIX-DATA
    echo -e "Creating "$ISO"; patience, this may take some time..."
    cd /; sudo mkisofs -x *[Cc]ache* -R -U \
    $ISOSRC | create_compressed_fs -B 131072 -m - - > $ISODIR$ISO
    echo ".done; "$ISO" additions from $ISOSRC saved to "$ISODIR"."
    }

    Relevant notes concerning this 'update' process:

    An initially-CD-size Knoppix 7.2 LiveUSB may have up to seven such overlays added.
    However, a single well-planned overlay may be entirely adequate to adapt a
    standard Knoppix to one's own preferences.

    Aside from the sizes of the two partitions, there is effectively no filesize limit
    on the reiserfs partition, but one should be mindful that on /mnt-system
    using Fat32, all files including each KNOPPIX[n] can be, at most, 4 Gb in size.

    One may hesitate indefinitely after a step 2, retaining the most recent KNOPPIX[n]
    merely as a compressed backup of a current /KNOPPIX-DATA, while deferring steps
    3 and 4, the actual implementation of an immediate overlay update. I follow this
    course as a means of recovering from a corrupted persistence file, should that
    occur, and/or as a means to allow ajustments in the current /KNOPPIX-DATA before its
    eventual compression and replacement.

    Copyright TJ Hoye 2013, License GPL Version 2

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631

    My adaptation of Knoppix 7.2 on 2 Gb SanDisk LiveUSB

    .
    Made LiveCD from downloaded iso.
    Made LiveUSB with reiserfs persistence from LiveCD.

    Added own programs to Fat32 partition including Hiroshige, ChezHoye, HiddenGems,
    ...StackedImages and numerous text files.
    Added Geany, Chromium & Gnome-system-log via Synaptic.
    Added ttf-mscorefonts and flashplugin-nonfree via Knoppix>Install Components.
    Added select bookmarks, and logins to IceWeasel.

    Modified rc.local to fine tune wifi parameters.
    Modified profile to define several unique command line utilities.
    Modified syslog-knoppix.conf to allow re-establishment of syslog.
    Tweaked Log-file-viewer to correct some peculiarities.
    Modified syslinux.cfg to define tz=localtime & to make desktop time show correctly.
    Modified desktop background to Hiroshige print.
    Modified lxpanel apps definitions & adjusted lxpanel apps selection.
    Modified backgrounds, frame sizes and fonts of lxterminals & leafpad.
    Modified frame titles of lxterminals knoppix & root.

    Converted all these changes to KNOPPIX1 & reformatted reiserfs partition.

    Modified sound level via alsamixer gui.
    Added TV Guide channel, grid & isp selections.
    Puzzled whether screensaver does or does not save changed selections.
    Attached Images Attached Images
    Last edited by utu; 07-29-2013 at 07:34 PM.

  3. #3
    Very interesting utu, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell Poweredge R630 2x Xeon E5-2670 v3 2.3ghz 24-Cores  32gb  180GB SSD  495w picture

Dell Poweredge R630 2x Xeon E5-2670 v3 2.3ghz 24-Cores 32gb 180GB SSD 495w

$169.99



HP Z840 Workstation 2x Xeon E5-2620v3 2.4GHz 28GB RAM 256GB SSD W10P Nvidia picture

HP Z840 Workstation 2x Xeon E5-2620v3 2.4GHz 28GB RAM 256GB SSD W10P Nvidia

$320.00



Dell Poweredge R730 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 128gb / H730 / 8x Trays picture

Dell Poweredge R730 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 128gb / H730 / 8x Trays

$274.99



HP ProLiant DL380 Gen10 8SFF Server - Intel Xeon Gold 6142 - 32 Cores- 128GB Ram picture

HP ProLiant DL380 Gen10 8SFF Server - Intel Xeon Gold 6142 - 32 Cores- 128GB Ram

$499.00



Intel Xeon E5-2697 V2 2.7GHz 12 Core 30M LGA2011 130W SR19H CPU Processor picture

Intel Xeon E5-2697 V2 2.7GHz 12 Core 30M LGA2011 130W SR19H CPU Processor

$24.99



Intel SR2N7 Xeon E5-2680V4 2.40Ghz 14-Core Socket 2011 CPU Processor Broadwell picture

Intel SR2N7 Xeon E5-2680V4 2.40Ghz 14-Core Socket 2011 CPU Processor Broadwell

$15.00



Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor  ** LOT AVAILABLE ** picture

Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor ** LOT AVAILABLE **

$26.24



Intel Xeon E5-2667 V4 3.20GHz SR2P5 Socket LGA2011 Server CPU picture

Intel Xeon E5-2667 V4 3.20GHz SR2P5 Socket LGA2011 Server CPU

$17.00



Intel Xeon Gold 6248 SRF90 2.5GHz 20-Core 28MB CPU Processor C5 picture

Intel Xeon Gold 6248 SRF90 2.5GHz 20-Core 28MB CPU Processor C5

$139.49



Matched Pair Intel Xeon E5-2697 V2 E5-2690 V2 E5-2680 V2 E5-2670 V2 LGA2011 CPU picture

Matched Pair Intel Xeon E5-2697 V2 E5-2690 V2 E5-2680 V2 E5-2670 V2 LGA2011 CPU

$29.99