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
  •  


(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray picture

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray

$169.99



Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor picture

Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor

$175.00



HP EliteBook 840 G5 Laptop Intel Core i5 7200U 8GB RAM – No HDD picture

HP EliteBook 840 G5 Laptop Intel Core i5 7200U 8GB RAM – No HDD

$64.00



AMD Ryzen 7 7700X 8-Core, 16-Thread Unlocked Desktop Processor picture

AMD Ryzen 7 7700X 8-Core, 16-Thread Unlocked Desktop Processor

$250.00



AMD RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor picture

AMD RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor

$399.00



AMD Ryzen 5 PRO 4650GE 100-000000153 6-Core 3.30GHz 8MB AM4 CPU Processor picture

AMD Ryzen 5 PRO 4650GE 100-000000153 6-Core 3.30GHz 8MB AM4 CPU Processor

$59.99



Intel Xeon E5 - 2667V2  / SR19W   3.30GHz 25MB  8-Core CPU Socket LGA2011 picture

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011

$30.00



AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor picture

AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor

$245.99



Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11 picture

Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11

$250.00



Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS picture

Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS

$259.98