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

Thread: Knoppix V7.4.1

  1. #11
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    The script posted in the mailing list is equal to this within V7.4.1 (checked by md5sum).

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

    a little bit of news

    .
    This new Distrowatch paragraph gives slightly more info about 7.4.1,
    indluding a new, undefined, mkimage boot cheatcode:

    http://distrowatch.com/?newsid=08603
    Last edited by utu; 09-18-2014 at 04:57 PM.

  3. #13
    Junior Member
    Join Date
    Sep 2014
    Posts
    3
    Quote Originally Posted by utu View Post
    .
    This new Distrowatch paragraph gives slightly more info about 7.4.1,
    indluding a new, undefined, mkimage boot cheatcode:

    http://distrowatch.com/?newsid=08603

    http://www.knopper.net/knoppix/knoppix741-en.html

    Interesting. I'd like to try the "knoppix mkimage" option. I wonder if I can just extract the .iso and copy over the KNOPPIX file to update the distribution or do I have to remaster the whole thing from scratch? I am using a usb install.

  4. #14
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Quote Originally Posted by utu View Post
    a new, undefined, mkimage boot cheatcode
    My error in calling this news in post #12. I didn't pick up on 'mkimage'
    until I went back to re-read the earlier 'release notes' and found the term
    there. The ten-minute forum limit on editing posted material preserved my
    error for posterity. My bad.

    I can understand using something called 'mkimage' to transform a read/write
    persistence file to a compact read/only cloop file. I do that myself;
    but, I don't see how this would be useful as a (boot) cheatcode.

    I hope mkimage is a bash script, and if so, I hope someone will post it here
    so we can study it. IMO, I think it would be even better if our fearless leader, KK,
    would document some of his inventions a little (or a lot) better.
    Last edited by utu; 09-19-2014 at 09:29 PM.

  5. #15
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    I hope mkimage is a bash script, and if so, I hope someone will post it here
    so we can study it.
    Code:
    mountdata(){
     local img base ext m mods found=""
     for base in $home /mnt-system/"$knoppix_dir"/knoppix-data /mnt-system/knoppix; do
      for ext in aes img inf; do
       img="$base.$ext"
       [ -r "$img" ]        || continue
       [ -b /dev/loop0 ]    || mknod -m 755 /dev/loop0 b 7 0
       [ -d /KNOPPIX-DATA ] || mkdir -m 755 /KNOPPIX-DATA
       [ -d /dev/mapper ]   || mkdir -m 755 /dev/mapper
       found="true"
       case "$ext" in
        aes)
         mountaes "$img" /KNOPPIX-DATA ext2 && return 0
        ;;
        img)
         checkfs "$img" ext2
         message -e "\r${CRE}${GREEN}${USING} ${YELLOW}$img${NORMAL}"
         mount -t ext2 -o loop,rw "$img" /KNOPPIX-DATA && return 0
         losetup -d /dev/loop0 >/dev/null 2>&1
        ;;
        inf) # Contains partition information in fstab format
         local part="" mp="" fs="" opts=""
         while read part mp fs opts; do
          [ -n "$part" ] || continue
          case "$mp" in *[Hh][Oo][Mm][Ee]) mp="/KNOPPIX-DATA" ;; esac
          case "$opts" in
           *aes*) mountaes "${ROOTDEV%[0-9]*}${part#/dev/}" "${mp:-/KNOPPIX-DATA}" "${fs:-ext2}" && return 0 ;;
           *)     checkfs "${ROOTDEV%[0-9]*}${part#/dev/}" "$fs"
                  message -e "\r${CRE}${GREEN}${USING} ${YELLOW}${ROOTDEV%[0-9]*}${part#/dev/}${NORMAL}"
                  mount -t "${fs:-ext2}" "${ROOTDEV%[0-9]*}${part#/dev/}" "${mp:-/KNOPPIX-DATA}" && return 0 ;;
          esac
         done <"$img"
        ;;
       esac
      done
     done
     if [ -z "$found" -a "$RW" = "rw" ]; then
      if checkbootparam "mkimage"; then
       createdata && return 0
      fi
     fi
     [ -d /KNOPPIX-DATA ] && rmdir /KNOPPIX-DATA
     return 1
    }
    If you compare the new part of the init script with this old part (up to V7.4.0)
    Code:
    mountdata(){
    ......
    done
     [ -z "$found" -a "$RW" = "rw" ] && createdata && return 0
     [ -d /KNOPPIX-DATA ] && rmdir /KNOPPIX-DATA
     return 1
    }
    you'll find only a little difference. Have a look at "Hint: 10"

  6. #16
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    .
    Thanks, Werner for posting this 7.4.1 material.
    A number of comments; I'd appreciate your critique on these.

    1. Providing for encryption does complicate things.

    2. I was surprised that mkisofs does not appear as an element of
    of the mkimage process. I see only cloops and mount processes.
    This may be a semantic distinction, since I know Klaus K uses
    mkisofs in handling overlays in some of his own applications.

    3. I think I have learned that, all along, knoppix-data.img must have
    been a read/write cloop condensation of /KNOPPIX-DATA at shutdown, taking
    two seconds or less to save or update on the USB. Correct me if I'm
    wrong on this. One soon learns that a corrupt, saved, read/write
    knoppix-data.img is really bad news.

    4. It would appear that the mkimage cheatcode converts current
    /KNOPPIX-DATA to a read/only saved cloop, and destroys the current
    /KNOPPIX_DATA directory. Presumably the option to re-create a new
    'empty' /KNOPPIX data directory will occur again at boot until one
    is actually requested.

    5. It's not clear if the mkimage option can be self-imposed on the
    LiveUSB used as the KNOPPIX system du jour or only on another USB,
    not on itself.
    I worry that if the chosen /KNOPPIX-DATA to be converted is corrupt
    that it may, in turn, corrupt the LiveUSB used as the KNOPPIX du jour
    if option 5 is viable.

    6. A corrupt knoppix-data.img will certainly poison any USB that receives it.
    And, I'm not aware there is any test for whether /KNOPPIX-DATA has
    become corrupt other than the unpleasant surprise which awaits on reboot.

  7. #17
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Hello!

    I fear there is a little misunderstanding. I've posted only the function "mountdata () {...}" of the new init of V7.4.1; it's the only thing, which has been changed against the version of V7.4.0.
    I've inserteda the new hint within Knoppix Wiki:
    (10) If Knoppix isn't started in forensic mode and if no persistent image or partition is found, then Knoppix DVD version 7.4.1 and upward only offers the option to create persistent image or partition by this new cheatcode.
    In earlier versions you has been asked for creation of persistent memory, if Knoppix couldn't found it in the startup; now you have to use the new cheatcode.

    To examine the content of the init-file you can use this script within your Knoppix V7.4.0 (make it executable and use as root)
    Code:
    #! /bin/bash
    if [ "$(id -u)" != 0 ]; then
      echo " You must be root to use this script."
      exit 1
    fi
    mkdir /home/knoppix/tmp
    cd /home/knoppix/tmp
    cp /mnt-system/boot/isolinux/minirt.gz /home/knoppix/tmp
    zcat minirt.gz | cpio -imd --no-absolute-filenames

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

    I have in my root 7.4.0 filesystem a file called init.
    Is this the same or different than what I'd get by using
    your script. Thanks.
    Attached Images Attached Images

  9. #19
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Yes, it is the same.

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

    My geany reports seg fault in 7.4.1.

    .
    My geany seg faults on 7.4.1 LiveCD and LiveUSB. With LiveUSB, syslog error reads:
    Sep 20 19:38:37 Microknoppix kernel: [ 493.612638] geany[3278]: segfault at c6 ip 000000004c1a9b18 sp 00000000ffaf7640 error 4 in libglib-2.0.so.0.4000.0[4c158000+120000]
    Failure using menu is silent. With command line, geany <enter> reports 'Segmentation fault'.

    Both LiveCD & LiveUSB passed testdvd.
    Problem persists with LiveUSB even with Synaptic reinstall.
    My geany in a 7.4.0 LiveUSB works ok.

    7.4.1 LiveUSB was made with 'retain personal data' (first option) using
    what was another 7.4.0 LiveUSB.
    7.4.1 LiveUSB preparation from LiveCD appears to have kept original partitioning
    parameters in making the new LiveUSB.
    7.4.1 LiveUSB otherwise apparently behaving quite well and predictably.

    Nothing unusual about my 7.4.1 configuration not also in previous 7.4.0 configuration.

    Is anyone else having this problem?

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
  •  


~BACKLIT-KEYBOARD~ 14

~BACKLIT-KEYBOARD~ 14" Lenovo ThinkPad Laptop PC: Intel i5 8GB RAM 512GB SSD

$219.99



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

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

$35.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



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

$15.85



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



Corsair Dominator Platinum RGB 32GB (2x16GB) DDR4 RAM 3200MHz picture

Corsair Dominator Platinum RGB 32GB (2x16GB) DDR4 RAM 3200MHz

$59.99



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

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

$23.15



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

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

$21.95



Corsair Vengeance 32GB 16GB 8GB DDR3 1600MHz 1866MHz 2133MHz 2400MHz Memory LOT picture

Corsair Vengeance 32GB 16GB 8GB DDR3 1600MHz 1866MHz 2133MHz 2400MHz Memory LOT

$79.99