Results 1 to 7 of 7

Thread: persistent image on dvd

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Personally I think your patch is the way to go. The 'tar' thingie does not seem right to me.
    This is rightfully "Remaster Knoppix without Remastering". I did not study the patch,
    perhaps if it could ( or already ) support multiple knoppix-data.img (one on read medium
    and one on readwrite medium currently ) that will be great.

  2. #2
    Junior Member
    Join Date
    Oct 2010
    Posts
    9
    by multiple knoppix-data.img do you mean at the same time (ie. on possibly different media)? if so then "no, not at this point." i am guessing this would require a cheatcode to work, as the user would need to specify a non-default location for the different image files (if for example you were using a dvd AND a flash chip at the same time).

    if by multiple knoppix-data.img you mean "will it support either a writeable OR a read-only image?" the answer is yes. it already does that.

    i hadn't thought of the use case of simultaneous writeable and non-writeable images when i wrote the patch. do you think there would be demand for that?

    it also does not support multiple image overlay images simultaneously at all. however i believe implementing that (all on the same media) would be relatively trivial.

    sincerely,
    proctor

  3. #3
    Junior Member
    Join Date
    Oct 2010
    Posts
    9
    hello list,

    the following information has come to light from klaus knopper, rendering moot my patch. this functionality has been available all along:

    sincerely,
    proctor



    Please have a look at minirt.gz's /init:

    mountunion(){
    local dir tree=""
    for dir in /KNOPPIX /KNOPPIX[0-9]; do
    [ -d "$dir" ] && tree="$dir=ro${tree:+:$tree}"
    done
    mount -t aufs -o "br:$1=rw:$tree,noplink" unionfs /UNIONFS
    return $?
    }

    mountunion() supports incremental overlays, i.e. the filesystem mounted
    as /KNOPPIX is the base, /KNOPPIX[0-9] are changes vs. the base and vs
    each other in ascending order, and the only argument to mountunion() is
    the ONLY writable branch, either ramdisk or a read-write on-disk image
    that's mounted somewhere.

    Don't worry about "unionfs" here, it's just naming because of historical
    reasons.

    Now, if you want to record your changes from, let's say /ramdisk, to
    another read-only image, you would do a

    mkisofs -R /ramdisk | create_compressed_fs - 65536 > /tmp/KNOPPIX2, and
    put the resulting file on your new DVD master directory into the KNOPPIX
    folder. On next boot, KNOPPIX/KNOPPIX2 will be read-only mounted as
    /KNOPPIX2, and mountunion() will stack your changes there on top of the
    base image and put the read-write branch on top of that.

    If you would like to do this without rebooting, you have to call the
    full mount -t aufs command with all branches and with /UNIONFS as target
    mountpoint, which will shadow the previous mount. In theory, a "-o
    remount" with the additional branch in the "add" option, should also be
    possible, but it never worked for me, maybe because of existing process
    references to the previous stack.

Posting Permissions

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


Intel Core i7-7700 3.60GHz Quad-Core CPU picture

Intel Core i7-7700 3.60GHz Quad-Core CPU

$41.89



AMD - Ryzen 5 5500 3.6 GHz Six-Core AM4 Processor picture

AMD - Ryzen 5 5500 3.6 GHz Six-Core AM4 Processor

$69.99



Intel Core i5 13600KF Desktop Processor 14-Cores/20 Threads/LGA 1700/Unlocked OB picture

Intel Core i5 13600KF Desktop Processor 14-Cores/20 Threads/LGA 1700/Unlocked OB

$180.00



Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture

Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...

$619.99



AMD Ryzen 9 7900x Processor (5.6 GHz, 12 Cores) picture

AMD Ryzen 9 7900x Processor (5.6 GHz, 12 Cores)

$225.00



Intel Core i7-8700 Processor (3.2 GHz, 6 Cores, LGA 1151) - SR3QS picture

Intel Core i7-8700 Processor (3.2 GHz, 6 Cores, LGA 1151) - SR3QS

$89.99



Intel Core i5-12600K 2.80GHz 10-Core Processor LGA 1700 BX8071512600K picture

Intel Core i5-12600K 2.80GHz 10-Core Processor LGA 1700 BX8071512600K

$164.99



Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc... picture

Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...

$339.99



Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor picture

Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor

$262.49



Intel Xeon E5-2697AV4 2.6GHz 16 Core FCLGA2011 Server Processor picture

Intel Xeon E5-2697AV4 2.6GHz 16 Core FCLGA2011 Server Processor

$37.47