Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: a new & improved, self-contained Knoppix personal backup

  1. #11
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Quote Originally Posted by Werner P. Schulz View Post
    If you boot Knoppix with cheatcode "noimage" you can only see persistent memory in the (compressed) file '/mnt-system/KNOPPIX/knoppix-data.img'. If you boot without this cheatcode you can also see the persistent memory in the (decompressed) directory '/KNOPPIX-DATA/'.
    I would not have expected this to be the case.

    I would expect the cheatcode noimage to suppress the un-compressed .img file which has both the errors and the new program material in it, leaving you with just the initially installed compressed KNOPPIX file.

    The .img file is not compressed. That would take up too much time on shut-down, for one thing.
    I can see that the cheatcode noimage may indeed serve a useful purpose, but I'd not describe it the way you have.
    And, if the .img is ok, I don't want to change it.
    Last edited by utu; 10-01-2011 at 07:00 PM.

  2. #12
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    The file 'knoppix-data.img' or in case of encryption 'knoppix-data.aes' is always compressed! Have a look at it with midnightcommander.

    If you boot Knoppix, it is mounted (and decompressed) via '/dev/loop0' to '/KNOPPIX-DATA'. If you boot with cheatcode "noimage" nothing happens with '..img' or '..aes'

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD with Knoppix (Knoppix V6.7.1 remaster)

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

    since I can't just delete my prior post...

    .
    I've re-considered the exact terms of my comments, noting the following:

    My KNOPPIX-DATA is about........ 385 Mb
    My knoppix-data.img is about..... 943.7 Mb
    My original CD's KNOPPIX is........ 722.4 Mb.

    I think the CD's KNOPPIX is compressed; KNOPPIX-DATA is un-compressed; and

    I expect that knoppix-data.img must be some combination of the two not requiring
    any wholesale compression of the entire uncompressed UNION at shutdown.

  4. #14
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    The size of 'knoppix-data.img' remains always as big as the size of persistent memory you created once upon a time. The size of '/KNOPPIX-DATA' depends of all your work within your flash-disk Installation with persistent memory and changes with each action.
    I think the CD's KNOPPIX is compressed; KNOPPIX-DATA is un-compressed;
    If you boot Knoppix, the (compressed) file '/mnt-system/KNOPPIX/KNOPPIX' is mounted (and decompressed) via '/dev/cloop' to '/KNOPPIX' - readonly.

    Now you have
    a) '/KNOPPIX-DATA', the persistent memory - read- and writeable
    b) '/KNOPPIX', the filesystem image - only readable.

    UNIONFS lays this two parts one over the other and you think, you have only one filesystem. Because you can not write to '/KNOPPIX' all your changes are written to '/KNOPPIX-DATA'.

    If you install a program, the files of this program are now in '/KNOPPIX-DATA/usr/'; if you purge a program you find a deletion item in '/KNOPPIX-DATA/usr/'. And all of '/KNOPPIX-DATA' is stored via '/dev/loop0' in 'knoppix-data.img'. In 'knoppix-data.img' is nothing of '/KNOPPIX'.

  5. #15
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by Werner P. Schulz View Post
    The file 'knoppix-data.img' or in case of encryption 'knoppix-data.aes' is always compressed! Have a look at it with midnightcommander.

    If you boot Knoppix, it is mounted (and decompressed) via '/dev/loop0' to '/KNOPPIX-DATA'. If you boot with cheatcode "noimage" nothing happens with '..img' or '..aes'
    Sorry to intrude into this discussion. All other things do not interest me, but knoppix-data.img or knoppix-data.aes is always ***UNCOMPRESSED***. I don't use midnightcommander, but if midnightcommander tells you that it is compressed, then throw midnightcommander away ! Knoppix-data.img is just a normal EXT2/3/4 file system, which can mount it yourself using /dev/loop0 and it is read-write. Again, a perfectly usual read/write EXT file system ! There is nothing unusual about knoppix-data.img.

    If it is compressed, it is not so easily becoming writable !

  6. #16
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    I am trying to put some distance between making a simple backup and
    purging the persistent store. Most of the time, one can make a little backup
    and not even think about re-doing persistence.

    I'm glad to learn there are other ways to go about re-doing persistence, but
    I don't have to do that very often. So here's my take on knoppix-data.img,
    but I consider this somewhat a distraction from the thread itself.

    To purge a failed knoppix-data.img, it must be un-mounted first, then deleted.

    One way to achieve this is to launch another working linux system, such as your
    LiveCD and to delete the knoppix-data.img on an inert LiveUSB.

    The cheatcode 'noimage' used in launching a LiveUSB must keep its knoppix-data.img
    from being mounted, allowing one to delete it by means of the LiveUSB, without
    recourse to another linux system for this purpose. I've not used it, but I can
    (now) appreciate its usefulness.

    In either case, the purged LiveUSB should provide the opportunity to (re)establish
    a persistent file at each boot, until such time as one has in fact been
    established. However, re-establishing persistence in this way purges ALL
    changes inherent in the purged knoppix-data.img, both personal material and
    other material not contained in home/, root/, etc/ and syslinux.cfg.

    The personal backup will re-instate only the personal material. Other material
    must be additionally re-constituted. The original backup program cited earlier
    backs up ALL of KNOPPIX-DATA, not just the personal material if that is desired.
    The storage overhead for this is considerably more, and to my mind not as efficient
    a use of resources as this later 'personal version'.

    So long as the LiveUSB seems to be properly functioning, there is no need to
    purge-and-replace knoppix-data.img. Personal backups may be performed over and over
    without recourse to purging and re-establishing persistence so long as
    the OS seems to be performing as it should.

  7. #17
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Sorry to intrude into this discussion. All other things do not interest me, but knoppix-data.img or knoppix-data.aes is always ***UNCOMPRESSED***.
    Thank you for the correction, you are right. (And I thought, nobody else read this thread.)
    Last edited by Werner P. Schulz; 10-02-2011 at 09:07 AM.

  8. #18
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Personal backups may be performed over and over
    without recourse to purging and re-establishing persistence so long as
    the OS seems to be performing as it should.
    Full acknowledge. Therefore my proposal to insert a date-item
    update$(date +'%m%d%y').tar.gz

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

    Not to belabor the point, but if the system sees a file is to be
    saved with the same name as one already 'in situ' it asks if you
    want to 'write over' the earlier file. I first became aware of
    this when it seemed to spoil my status prompts.

    Your idea allows making backups unique wrt DAYs. Making several
    in a given day I still observe this phenomenon. I might prefer
    to swap YEAR for HOUR, retaining the same brevity but allowing
    for more changes per DAY of the medium.

  10. #20
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    ... no problem
    Code:
    STOR=update$(date +'%m%d%H').tar.gz
    or
    STOR=update$(date +'%m%d-%H%M').tar.gz

Page 2 of 3 FirstFirst 123 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
  •  


Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24 picture

Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24

$117.00



GENUINE CISCO DS-SFP-FC32G-SW SFP NEW SEALED SEE PHOTOS SHIPS FREE picture

GENUINE CISCO DS-SFP-FC32G-SW SFP NEW SEALED SEE PHOTOS SHIPS FREE

$74.99



GENUINE CISCO 25G Base Active Optical SFP cable 3M SFP-25G-AOC3M NEW SHIPS FREE picture

GENUINE CISCO 25G Base Active Optical SFP cable 3M SFP-25G-AOC3M NEW SHIPS FREE

$65.99



Sonicwall 02-SSC-1874 Compatible 10GBASE-T Copper SFP+ RJ-45 30M Transceiver-876 picture

Sonicwall 02-SSC-1874 Compatible 10GBASE-T Copper SFP+ RJ-45 30M Transceiver-876

$189.05



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



For Cisco SFP-10G-T, Ubiquiti UF-RJ45-10G Module 10G SFP+ to RJ45 10GBase-T picture

For Cisco SFP-10G-T, Ubiquiti UF-RJ45-10G Module 10G SFP+ to RJ45 10GBase-T

$48.59



NEW Sealed Cisco SFP-10G-SR-S 10G SR SFP+ Module 850nmMM *US Shipping* picture

NEW Sealed Cisco SFP-10G-SR-S 10G SR SFP+ Module 850nmMM *US Shipping*

$15.00



GENUINE Cisco SFP-GE-T EXT 30-1421-01 USA 1000BASE-T RJ45 SFP Transceiver picture

GENUINE Cisco SFP-GE-T EXT 30-1421-01 USA 1000BASE-T RJ45 SFP Transceiver

$9.99



10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module picture

10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module

$85.00



NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping* picture

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*

$18.00