Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: An alternative to re-mastering for CD-size Knoppix flash disks.

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

    An alternative to re-mastering for CD-size Knoppix flash disks.

    .
    Greetings, Knoppix LiveUSB fans.

    Attached please find two png screen snapshots to introduce you to
    a script to manage Knoppix compressed image updates and persistence
    files. The snapshots show two menus the script stackimu uses to
    control the 'management' processes. The script is provided in
    gzipped format.

    If you are interested, I hope you will find or prepare a clone of a
    recent Knoppix LiveUSB with persistence and try it out. Preferably
    a LiveUSB derived from a Knoppix 7+ LiveCD, since that's what I use
    all the time.

    If you don't know what this is all about, you might first read a rambly
    'Draft' within the Stacked.Images folder. You can read this 'Draft'
    with leafpad alone if you wish, or with stackimu.

    To get the whole picture you will need a working LiveUSB clone of Knoppix 7+
    with a persistence file containing some added program material you would
    like to safeguard by turning it into a compressed image update.

    To do so, download the Stacked.Images.####.tar.gz file to your clone's
    /home/knoppix directory, unzip it there with the command tar xvfz *.gz,
    cd into your new Stacked.Images folder and there execute stackimu as knoppix
    user with the command ./stackimu.

    If you want to check the *tar.gz download, use the command,
    echo "5e7142945d562c186cfe6c37683ee878 Stacked.Images.1106.tar.gz" | md5sum -c
    and, note there must be exactly TWO spaces between the checksum and the filename.

    As knoppix user examine stackimu's menus and text files and find out what
    it is designed to do. After studying this material, if you want to try it
    out more seriously, quit as knoppix user and begin again as root with the
    command sudo ./stackimu.

    I've used this technique myself for some time now on a LiveUSB made from
    a Knoppix LiveCD built on a 2 Gb SDHC USB device and it suits my needs.
    I hope you will find it useful as well. I would not be surprised to hear
    that it may fail in some DVD-size situations, and certainly for any case
    that a cloop tries to exceed 2 Gb.

    Preview post does not clearly confirm *tar.gz upload, but here goes.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    If you are a cut-and-paste person, the previous should have read:

    Code:
    If you want to check the *tar.gz download, use the command,
    echo "5e7142945d562c186cfe6c37683ee878  Stacked.Images.1106.tar.gz" | md5sum -c
    and, note there must be exactly TWO spaces between the checksum and the filename.
    Forum editor eats extra whitespace, you know.

  3. #3
    Member Blacksimon's Avatar
    Join Date
    Oct 2011
    Location
    Italy
    Posts
    93
    Hi utu,
    you're doing a great job.
    Stackimu only works for cd-size knoppix ? if I try with dvd-size could happen some kind of error ?

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

    I'm no expert and don't use the DVD version very much, but I think
    the problem is in the way cloops and iso9660 work together that makes
    for complications with cloops larger than 2 Gb.

    My program doesn't have the fine structure necessary to handle the DVD
    case, but I think if one stays with CD-size Knoppix that no problems
    will arise. The DVD complexity is what defines the generalized
    remastering case.

    From what I've read, the 'failure' which occurs with cloops larger
    than 2 Gb is that file locations beyond a certain number 'wrap around'
    and make inappropriate references. KK suggests you have to do a
    file-by-file md5sum check to see this sometimes, the errors are
    subtle, but deadly.

    If you really want to work with DVD-size situations, I think you
    might get into some serious trouble using stackimu.

    I think stackimu makes it a virtue out of having ONLY a 2 to 4 GB
    USB to work with, since I think (at least hope) this implicitly
    gets around the filesize/cloop size considerations by its very
    nature.

  5. #5
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    In my opinion it isn't useful to save the software device (the file knoppix-data.img). You have to store the content of this device, the folders and files within this.

    For example: you have a persistent memory of 4GB and and the used size within this is 300 MB. Why store the whole knoppix-data.img and not only the content within this?

    "knoppix-data.img" looks like a file, but it isnt't a file, it is a device with folders and files within it.

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

    You should read some of the text in 'Draft', Werner.
    As I point out, I only save the .img long enough to make sure the Knoppix[n]
    replacement is doing its thing.
    You may, and I do, get rid of the .img when I'm confident it went ok.
    I don't find it convenient to compress the .img, either, and may delete
    this option in some upgrade.

    I am not clear on your insistence on .img as a 'device'.
    I thought the notion of unix was that everything might be thought of as a file.
    Please be more explicit on why you make this distinction.
    Otherwise this comes across as simply a cavil.

  7. #7
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    You should read some of the text in 'Draft', Werner.
    I studied it carefully.

    I am not clear on your insistence on .img as a 'device'.
    Creating a persistent memory includes three steps:

    1. make a file of max 4 GB (knoppix-data.img)
    2. format it with ext2 filesystem
    3. mount this device (/dev/loop0) on /KNOPPIX-DATA

    In my example (CD flash installation on a 4 GB USB stick and 3.1 GB persistent memory) you can see, this device (persistent memory) works like a drive; within this drive 479 MB are used and 2.6 GB are available.

    Why, for Heaven's sake, shall I save the whole 3.1 GB device and not only the content of 479 MB of this drive? Apart from doing so, there is no space left on the USB stick to go your way. And last but not least, it doesn't make sense, not to store a backup on a different medium.
    Attached Images Attached Images

  8. #8
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Quote Originally Posted by Werner P. Schulz View Post
    Why, for Heaven's sake
    Greetings, Werner.

    I would worry about the 479 Mb of persistent store that you have, should
    your knoppix-data become corrupted. In that case you will probably
    lose whatever the difference is between that 479 Mb and whatever you
    have in your backup. I don't make daily backups, myself. Perhaps you do.
    I just 'Install to flash disk' after a compressed image update and make a
    clone after my last compressed image update. I do not operate with 479 Mb
    of stuff in 'temporary' condition. Also, there would be, for me, an
    un-necessary overhead in time on mounting 3 Gb persistence on every boot.

    Whenever I have a 'significant' amount in persistent store, I prefer
    to convert that to a compressed image equivalent which is less likely
    to get written-over, and which can be recalled faster on boot. Much less
    un-necessary re-writes to USB if you care about that. I'm not sure there
    is a 'wear problem' for these re-writes.

    Here's my stuff for comparison. I can tell I have 8.4 Mb diffence between
    my last backup and the present. My 'backup' is in KNOPPIX1,2,3. I have a
    clone as well. When I boot, it takes less time to bring in 485 Mb
    persistent store, than for 3 Gb which I'd never use if I had it. I also know
    the 8.4 Mb is mostly .mozilla cache stuff which I don't worry about.

    Thanks for the nice comparison. I like what I've got better.
    stackimu only costs 20-30 Kb to make this possible.
    Attached Images Attached Images

  9. #9
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Incidentally,
    df over-reports the contents of /KNOPPIX-DATA by a factor of two or more relative to du in my case.
    I think du is correct.
    Last edited by utu; 11-11-2012 at 05:51 PM.

  10. #10
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    I would worry about the 479 Mb of persistent store that you have, should
    your knoppix-data become corrupted.
    No, there is nothing corrupted!

    The size of the persistent memory is 3.1 GB and not 479 MB! 479 MB is the value of the used space within this drive. With
    Code:
    du -sh /KNOPPIX-DATA/
    I get the value of 465 MB.


    Also, there would be, for me, an
    un-necessary overhead in time on mounting 3 Gb persistence on every boot.
    In my case

    • boot with persistent memory of 3.1 GB: 1min 4 sec
    • boot without persistent memory 58 sec

Page 1 of 2 12 LastLast

Posting Permissions

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


Mixed Brands 8GB PC4-2666V-S DDR4 SODIMM Laptop RAM (Lot of 50) picture

Mixed Brands 8GB PC4-2666V-S DDR4 SODIMM Laptop RAM (Lot of 50)

$925.00



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP

$38.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC picture

Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC

$19.95



CORSAIR Vengeance RGB Pro 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3600 (PC4 28800) picture

CORSAIR Vengeance RGB Pro 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3600 (PC4 28800)

$79.95



Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM picture

Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM

$21.33



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$14.85



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



HyperX FURY DDR4 64GB (4x16GB) 3200MHz PC4-25600 Desktop RAM Memory DIMM 288PIN picture

HyperX FURY DDR4 64GB (4x16GB) 3200MHz PC4-25600 Desktop RAM Memory DIMM 288PIN

$129.95