Results 1 to 10 of 10

Thread: persistence to HD when booting from DVD

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Location
    Sonoma County, California
    Posts
    7
    I'm fine with running a script after startup, if aufs can be merged in that way. Ultimately though, if I must remaster the DVD ISO, I still only want to have to remaster it to add support for an HD based persistence file.

    Is persistence without a tohd install really a capability nobody else was using before?

  2. #2
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by sstraw View Post
    Is persistence without a tohd install really a capability nobody else was using before?
    I think so. If you look at the script 'init' inside minirt.gz, you will understand knoppix operations a lot better.
    ( Google around for remaster knoppix thingie, you will find some doc about how to view/modify minirt.gz. Basically 'minirt.gz' is a gzipped cpio archive. ).

    Somewhere inside the script 'init', there is a function mountdata(). I would suggest you modify it. Right now, KNOPPIX only looks for knoppix-data.img under /mnt-system/KNOPPIX directory ( the /mnt-system is where KNOPPIX is located, so in your case, it's the DVD), so you can very simply modify it to look for knoppix-data.img at any other locations of your choice. This will likely be the only place you need to modify to accomplish what you want to do.

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Location
    Sonoma County, California
    Posts
    7
    I've been in minirt.gz several times. Enough to know that the older versions were ext fs, while the newer ones in 6.x are cpio.

    I've already seen where I could for instance, add KNOPPIXn.IMG files to have them automatically be mounted in a stack below the ramdrive aufs. However, all of those would be mounted _read_only_, not rw. Not what I'm looking for.

    I'd like to know the aufs syntax I'd be using is legit. The absence of an aufs manpage is curious (no mount.aufs, or aufs mention in the mount manpage either).

    I guess I'd use getbootparam (shell script function) to grab the parameters from the kernel commandline and check for something like "persist", and just reinstate some selected code from 5.x (with necessary changes of course).

    Was just really hoping someone had already gone down that road.

  4. #4
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by sstraw View Post
    I've already seen where I could for instance, add KNOPPIXn.IMG files to have them automatically be mounted in a stack below the ramdrive aufs. However, all of those would be mounted _read_only_, not rw. Not what I'm looking for.
    I BELIEVE it is because you stack it up too late, after the ramdrive.

    Only the first one, is stacked as rw, anything stacked up later will become readonly. When the script 'init' inside minirt.gz found a knoppix-data.img, it will mount it as the first one, thereby making it readwrite (it will skip mounting the ramdrive in this case). If you do these things as a script after booting, the ramdrive is already mounted as the first one, you missed the chance.

    That's what I deduced by looking through the script. I might be wrong.

  5. #5
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Here are some cheatcodes that may be helpful:


    Code:
    knoppix nonetworkmanager            Don't start network manager
    knoppix home=/dev/sda1/knoppix.img  Mount loopback file for overlay
    knoppix toram                       Copy to RAM and run from there
    knoppix tohd=/dev/sda1              Copy to Harddisk and run from there
    knoppix fromhd=/dev/sda1            Boot from previously copied CD-Image
    knoppix bootfrom=/dev/sda1/KNX.iso  Access image, boot from ISO-Image. ***)
    knoppix knoppix_dir=KNOPPIX         Directory to search for on the CD. 
    knoppix knoppix_name=KNOPPIX        Cloop-File to search for on the CD.
    knoppix noswap                      Don't use existing swap partitions
    knoppix forensic                    Don't use swap and mount read-only
    knoppix secure                      Disable root access
    knoppix noimage                     Do NOT use persistent image
    Cheers!
    Krishna
    Last edited by krishna.murphy; 12-07-2010 at 01:11 AM. Reason: Readability

  6. #6
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by krishna.murphy View Post
    Here are some cheatcodes that may be helpful:
    Instead of giving us a vague reply that some of the cheatcodes may be helpful, maybe you want to enlighten us specifically which one(s) are helpful.

    The cheatcode 'home=something' looks promising but I wonder anyone has every tried it for KNOPPIX 6.2.X and 6.3, because I could not find a single thing in the related scripts which implements this cheatcode. In other words, this cheatcode is not implemented for the mentioned KNOPPIX versions. It should be removed from all the documentation.

Posting Permissions

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


RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro picture

RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro

$81.99



Samsung 32GB DDR4-2666 PC4-21300 288-Pin DIMM RAM M393A4K40CB1CRC0Q picture

Samsung 32GB DDR4-2666 PC4-21300 288-Pin DIMM RAM M393A4K40CB1CRC0Q

$185.00



New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW picture

New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW

$120.00



Samsung 24

Samsung 24" S3 Essential IPS 100Hz Monitor | Sealed | Fast shipping

$50.00



RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2 picture

RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2

$81.99



RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4 picture

RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4

$93.99



Samsung Galaxy Tab SCH-1800 7

Samsung Galaxy Tab SCH-1800 7" 4GB Wi-Fi + Verizon Tablet Working

$30.00



RAM-GDS-DOCK-SAM88CPU RAM GDS® Tough-Dock™ for Samsung Tab A9+ picture

RAM-GDS-DOCK-SAM88CPU RAM GDS® Tough-Dock™ for Samsung Tab A9+

$174.99



NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue picture

NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue

$225.77



Samsung Galaxy View Tablet 18.4 SM-T670/677A Charging Port 100% Original Oem picture

Samsung Galaxy View Tablet 18.4 SM-T670/677A Charging Port 100% Original Oem

$98.99