Results 1 to 10 of 63

Thread: Flash to USB installer (experimental) in 7.0.5

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    26
    That was fun. I actually saw the searching of the iso image for KNOPPIX. I first booted using the dvd. then in a terminal window I typed sudo fdisk -l (list) and found this for both 64gb and 16gb usb drives.

    Disk /dev/sdd: 62.8 GB, 62813896704 bytes
    64 heads, 32 sectors/track, 59904 cylinders, total 122683392 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sdd1 * 1 81631231 40815615+ c W95 FAT32 (LBA)
    /dev/sdd2 81631232 122683391 20526080 83 Linux
    knoppix@Microknoppix:~$

    Disk /dev/sdd: 16.0 GB, 16008609792 bytes
    64 heads, 32 sectors/track, 15267 cylinders, total 31266816 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sdd1 * 1 8433663 4216831+ c W95 FAT32 (LBA)
    /dev/sdd2 8433664 31266815 11416576 83 Linux
    knoppix@Microknoppix:~$

    I then booted with the dvd and at the knoppix penguin I typed knoppix bootfrom=/dev/sdd1/KNOPPIX/KNOPPIX and here is where it says, searching ISO for KNOPPIX ?

  2. #2
    Junior Member
    Join Date
    Dec 2012
    Posts
    15

    Did the boot from DVD continue to load from flash storage?

    Hello ttopp
    Quote Originally Posted by ttopp View Post
    I then booted with the dvd and at the knoppix penguin I typed knoppix bootfrom=/dev/sdd1/KNOPPIX/KNOPPIX and here is where it says, searching ISO for KNOPPIX ?
    What did happen after the searching? Did it just hang there? Nothing?

    For both USB flash devices, I would expect the boot loader from the DVD to mount the partition image file from the flash storage and to continue booting to the Knoppix desktop, but without mounting the persistent overlayfile system on /dev/sdd2. Did that work?

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    26
    Quote Originally Posted by STraute View Post
    Hello ttopp

    What did happen after the searching? Did it just hang there? Nothing?

    For both USB flash devices, I would expect the boot loader from the DVD to mount the partition image file from the flash storage and to continue booting to the Knoppix desktop, but without mounting the persistent overlayfile system on /dev/sdd2. Did that work?
    Good Morning. I read your response and clicked reply with quote and I am now typing below your answer. I hope this is the proper way. OK. Yesterday the message was can not find KNOPPIX dir in ISO and it kept cycling through the available areas. This morning I used the 8GB after seeing it has only 1 area, sdd1. Same message and kept cycling. But now I will try again and I will WAIT... to see what it does if it does continue... Thank you. Siddhartha can wait. So can I.

  4. #4
    Junior Member
    Join Date
    Apr 2013
    Posts
    26
    Quote Originally Posted by ttopp View Post
    Good Morning. I read your response and clicked reply with quote and I am now typing below your answer. I hope this is the proper way. OK. Yesterday the message was can not find KNOPPIX dir in ISO and it kept cycling through the available areas. This morning I used the 8GB after seeing it has only 1 area, sdd1. Same message and kept cycling. But now I will try again and I will WAIT... to see what it does if it does continue... Thank you. Siddhartha can wait. So can I.
    OK. After 28 cycles PC booted to the DVD. As it cycled I tried to see the different messages and noticed a mnt-iso in the text that went by. There is a note after my post that mentions boot hd is that for me to try? Thanks.

  5. #5
    Junior Member
    Join Date
    Apr 2013
    Posts
    26
    Hurrah Hurrah Hurrah! It worked! knoppix fromhd=/dev/sdd1 Thanks people, - you're the best.

  6. #6
    Junior Member
    Join Date
    Dec 2012
    Posts
    15

    Smile Booting Knoppix from flash device on PC of ttop - Resolution

    Flash devices onto which ttop had written Knoppix 7.0.5 (both using the experimental installer "flash-knoppix2" and the "traditional" installer) were directly bootable (as USB block storage devices) on some PCs, but not on the main PC of ttop. He could not resolve this via BIOS setup changes.

    I had suggested to him (as a Test) to try to boot from a Knoppix CD or DVD; And at the kernel prompt to enter a cheat code in order to mount the compressed read-only file system image in file KNOPPIX/KNOPPIX from the flash device (instead of the copy on the optical medium). The cheat code "knoppix fromhd=/dev/sdX1" does this (not "bootfrom=", as I had wrongly suggested before). ttop replied that this had solved his Knoppix booting problems, which was a suprise for me:
    Quote Originally Posted by ttopp View Post
    Hurrah Hurrah Hurrah! It worked! knoppix fromhd=/dev/sdd1
    Then it occured to me to try this scenario myself, in order to learn what had happened on the PC of ttop. My PC can boot from USB, but I tried to boot from a DVD with Knoppix 7.0.5, while a SDHC memory card with Knoppix 7.0.5 was already inserted/connected. At the kernel/boot prompt I entered the cheat code: knoppix fromhd=/dev/sdb1 . To my suprise, not only did Knoppix continue loading from my SDHC card, but it also had the persistent overlay reiserfs filesystem from the SDHC card mounted. This means one can work with a read-write Knoppix system started from a flash storage device even on PCs which are unable to boot from USB devices! (Provided the PC has a DVD drive and one brings a Knoppix DVD, too.)

    To further my (at this point clearly broken) understanding of the Knoppix boot process, I decided to investigate: Like most Linux systems nowadays, the Knoppix kernel first passes control to configuration software (which for example might supplement the kernel with kernel modules for support of the present hardware) before initialising the system services (by using SysV init scripts or upstart or...). The kernel modules and configuration software can be found in a special compressed archieve/file system image file, which gets loaded and used directly after the kernel has finished loading. I have unpacked this file system using these commands:
    Code:
    cd
    mkdir minirt
    cd minirt
    gzip -dc /mnt-system/boot/syslinux/minirt.gz | cpio -idv 2>minirt_cpio_errors.log
    The cpio command will try to unpack even the special files in the /dev directory of this file system, but this will fail and cause error messages because user knoppix does not have the needed permissions to invoke mknod to create the special files.

    Anyway, after this I could read the system configuration script using this:
    Code:
     less init
    This shell script implements the support for most of the Knoppix cheat codes. The version on the Knoppix 7.0.5 DVD images not only identifies a storage device from which the file system image in file KNOPPIX/KNOPPIX can be mounted, it also looks for a second partition on the same device from which an overlay file system can be mounted (as /KNOPPIX-DATA) for persistent storage (among many other measures). It will not find such a partition on a DVD or CD (No partitioning, therefore no second partition), but if directed to another storage medium using the "fromhd=" cheat code, then the script does find it there and mounts it. This behavior is flexible and very useful!

  7. #7
    Junior Member
    Join Date
    Apr 2013
    Posts
    26
    Quote Originally Posted by STraute View Post
    Flash devices onto which ttop had written Knoppix 7.0.5 (both using the experimental installer "flash-knoppix2" and the "traditional" installer) were directly bootable (as USB block storage devices) on some PCs, but not on the main PC of ttop. He could not resolve this via BIOS setup changes.

    I had suggested to him (as a Test) to try to boot from a Knoppix CD or DVD; And at the kernel prompt to enter a cheat code in order to mount the compressed read-only file system image in file KNOPPIX/KNOPPIX from the flash device (instead of the copy on the optical medium). The cheat code "knoppix fromhd=/dev/sdX1" does this (not "bootfrom=", as I had wrongly suggested before). ttop replied that this had solved his Knoppix booting problems, which was a suprise for me:

    Then it occured to me to try this scenario myself, in order to learn what had happened on the PC of ttop. My PC can boot from USB, but I tried to boot from a DVD with Knoppix 7.0.5, while a SDHC memory card with Knoppix 7.0.5 was already inserted/connected. At the kernel/boot prompt I entered the cheat code: knoppix fromhd=/dev/sdb1 . To my suprise, not only did Knoppix continue loading from my SDHC card, but it also had the persistent overlay reiserfs filesystem from the SDHC card mounted. This means one can work with a read-write Knoppix system started from a flash storage device even on PCs which are unable to boot from USB devices! (Provided the PC has a DVD drive and one brings a Knoppix DVD, too.)

    To further my (at this point clearly broken) understanding of the Knoppix boot process, I decided to investigate: Like most Linux systems nowadays, the Knoppix kernel first passes control to configuration software (which for example might supplement the kernel with kernel modules for support of the present hardware) before initialising the system services (by using SysV init scripts or upstart or...). The kernel modules and configuration software can be found in a special compressed archieve/file system image file, which gets loaded and used directly after the kernel has finished loading. I have unpacked this file system using these commands:
    Code:
    cd
    mkdir minirt
    cd minirt
    gzip -dc /mnt-system/boot/syslinux/minirt.gz | cpio -idv 2>minirt_cpio_errors.log
    The cpio command will try to unpack even the special files in the /dev directory of this file system, but this will fail and cause error messages because user knoppix does not have the needed permissions to invoke mknod to create the special files.

    Anyway, after this I could read the system configuration script using this:
    Code:
     less init
    This shell script implements the support for most of the Knoppix cheat codes. The version on the Knoppix 7.0.5 DVD images not only identifies a storage device from which the file system image in file KNOPPIX/KNOPPIX can be mounted, it also looks for a second partition on the same device from which an overlay file system can be mounted (as /KNOPPIX-DATA) for persistent storage (among many other measures). It will not find such a partition on a DVD or CD (No partitioning, therefore no second partition), but if directed to another storage medium using the "fromhd=" cheat code, then the script does find it there and mounts it. This behavior is flexible and very useful!
    Great! But, Does this mean that I am stuck with needing a DVD or a pre configured floppy disk to get the USB booted? I have a floppy drive if someone would care to share how to get this done. Thanks again for staying with me on this issue.

Posting Permissions

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


Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver picture

Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver

$5.40



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*

$24.00



Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module picture

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module

$699.99



Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch picture

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch

$129.99



SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT picture

SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT

$7.99



Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA picture

Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA

$28.94



HP 560SFP+ 10GB 2-port  PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+ picture

HP 560SFP+ 10GB 2-port PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+

$16.99



Cisco SFP-10G-SR V03 850nm 10GBASE-SR SFP+ MMF 10-2415-03 Transceiver picture

Cisco SFP-10G-SR V03 850nm 10GBASE-SR SFP+ MMF 10-2415-03 Transceiver

$4.99



Arista SFP-10G-SR 10GBASE-SR XVR-10001-20 850nm SFP+ Optical Transceiver picture

Arista SFP-10G-SR 10GBASE-SR XVR-10001-20 850nm SFP+ Optical Transceiver

$20.70



Dell 10 Gigabit SFP+ SR Transceiver 0XYD50 NEW SEALED picture

Dell 10 Gigabit SFP+ SR Transceiver 0XYD50 NEW SEALED

$24.99