Results 1 to 5 of 5

Thread: Run KNOPPIX fast! w/o touching Windows partitions

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568

    Run KNOPPIX fast! w/o touching Windows partitions

    Purpose:
    Run KNOPPIX off the hard drive, which is much faster than running it off of the CD-ROM, without having to repartition the drive or learn how to use boot loaders.

    Note:
    This only works if you can boot to a DOS prompt, meaning you've got to be running DOS/Win3.x or Win9x. (Untested: This might work if you have Win2K/XP installed on a FAT32 partition, and boot from a Win98 boot disk, but I don't know.)

    Credit for idea goes to:
    http://www.knoppix.net/docs/index.php/HdBasedHowTo

    What you need:
    WinImage
    LOADLIN
    (The LOADLIN docs are available in the full archive in the parent directory)
    A zip extractor such as WinZip
    Knoppix, burned to a CD-ROM
    700+ MB free hard drive space
    Knowledge of the "cheat-codes" you need to run Knoppix

    HOW-TO:
    1. Make a directory on your drive, say, C:\knoppix

    2. Copy the ~700MB file X:\KNOPPIX\KNOPPIX (where X: is your CD-ROM drive) to C:\knoppix.

    3. Use WinImage to open the X:\KNOPPIX\boot.img file (where X: is your CD-ROM drive). Extract the files "vmlinuz" and "miniroot.gz" to C:\knoppix.

    4. Extract loadlin.exe (from the "loadlin.exe.gz" archive) to C:\knoppix (e.g. using WinZip).

    5. Create a batch file, named something like "knoppix.bat", in C:\knoppix, containing:

    rem Batch file to boot the KNOPPIX image from the hard drive using LOADLIN.
    rem Put your Knoppix "cheat-codes" after the "ro" statement.
    rem This batch file assumes you are running it from the same dir that
    rem "vmlinuz" and "miniroot.gz" are saved in.
    rem
    loadlin vmlinuz root=/dev/hda1 initrd=miniroot.gz ro

    (You don't need to include any of the lines beginning with "rem".)

    6. Put the "cheat-codes" (see "knoppix-cheatcodes.txt" on your Knoppix CD) after the "ro" statement. For example, my loadlin command reads:

    loadlin vmlinuz root=/dev/hdb1 initrd=miniroot.gz ro 2 lang=us keyboard=us wheelmouse nousb home=/dev/hda1 myconfig=/dev/hdb2

    (I use "2" to start Knoppix in text mode, because when run from the hard drive it sometimes has a hard time starting X windows automatically; and "nousb" to turn off probing for USB hardware, which has made Knoppix hang in the past.)

    7. Boot to a DOS prompt. (In Win9x, you can use the "TweakUI" control panel, if you have it, to "always show boot menu," or you can press F8 when the computer displays "Starting Windows..." to bring up a boot menu.) Navigate to C:\knoppix, and type "knoppix" to run the batch file. The kernel will load, and Knoppix will find itself on your hard disk, and continue normally.

    Limitations:
    Knoppix thinks the partition you ran it from is the CD-ROM, even though it's not. Consequently, you won't be able to access your CD-ROM drive (at least, I can't - I haven't found a way to mount mine when running from the hard disk, and I have two of them).

    Also, as far as configuration, persistent home directory, and swap files go, Knoppix will only use one partition for one of the above (even when run from CD). Meaning, you can't save your persistent home dir and your config files to the same partition. Now, when you run Knoppix off a partition, that means you can't load config files, a home dir, or a swap file from it. In my case, it doesn't matter, since I've got four partitions to play with, but for those with only one partition, you'll probably have to save/load your config files to/from a floppy.

    Tested with:
    Knoppix v3.2-2003-09-05-EN

    Question:
    Does it make any difference what "root=" is set to?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    One thing I'd like to add is one should try to retain as
    many of the default knoppix boot parameters as possible,
    (eg scsi emulation for cd writers...) which can lead to long
    invocations of loadlin that are silently being truncated.
    It's thus best to use a parameter file, as described here:
    http://www.knoppix.net/forum/viewtopic.php?t=2273#10660

    This thread essentially exposes the same method, but focuses
    on building a fast boot diskette without altering the HD boot
    logic at all. Another nice and flexible method involves win32grub
    (see posts by garyng), but alas this too seems to fail with NTFS.

    To answer one of your questions, I don't think the root parameter
    matters at all in this case. Actually my loadlin parameter
    file does not have one and still works fine.

    Also, the batch file is not strictly necessary, but your
    config.sys file (if your dos/windows has one), can have an
    entry similar to "Shell=C:\loadlin.exe @C:\knx.par" in a
    knoppix section.

    Finally winiso is not really needed, one can get the kernel
    and miniroot file using one of the following 2 methods:
    1) create a boot floopy using "mkfloppy.bat"
    2) from the live CD, issue
    • mkdir/tmp/F
      mount /cdrom/KNOPPIX/boot.img /tmp/F -o loop

    then copy the files from /tmp/F to your FAT partition

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Location
    Taiwan
    Posts
    1

    Boot from CDROM but running with HD

    My doing is modify the file "linuxrc" inside the "miniroot.gz" inside "boot.img"

    original:
    DEVICES="/dev/hd?"
    test -n "$FOUND_SCSI" && DEVICES="/dev/scd? /dev/scd?? $DEVICES"
    DEVICES="$DEVICES /dev/pcd?"

    modified:
    DEVICES="/dev/hd?"
    case "$CMDLINE" in *sysonhd*)
    ;;
    *)
    test -n "$FOUND_SCSI" && DEVICES="/dev/scd? /dev/scd?? $DEVICES"
    DEVICES="$DEVICES /dev/pcd?"
    ;;
    esac

    This means if an options "sysonhd" was found on booting command, then
    skip searching KNOPPIX on CDROM, and search KNOPPIX on HD.
    ("sysonhd" means "system on harddisk")

    then save this, replace old "boot.img"

    then booting KNOPPIX on HD without floppy, without loadlin, without any
    other boot-loader but just useing the same KNOPPIX CD.

    when booting from CDROM, useing "sysonhd" as an option
    after "Uncompressing linux ......." it then search KNOPPIX on HD, skip
    searching from CDROM.

    then you can remove CD when KNOPPIX is running on HD.

    I have made an "boot-tw.img" with this modification and some others for
    my personal preference here:
    ftp://cle.linux.org.tw/pub2/KNOPPIX/bv1al/
    but this is for my TAIWAN's version only.

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568

    Correction

    Above I said that Knoppix couldn't see my CD-ROM drives when running it this way (I assumed it was because it mounted the drive Knoppix is running from as /cdrom).

    Turns out this is not the case. If you want Knoppix to recognize your CD-ROM drives, you simply have to have CD's in the drives when you start Knoppix.

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: Boot from CDROM but running with HD

    Quote Originally Posted by bv1al
    My doing is modify the file "linuxrc" inside the "miniroot.gz" inside "boot.img"

    original:
    DEVICES="/dev/hd?"
    test -n "$FOUND_SCSI" && DEVICES="/dev/scd? /dev/scd?? $DEVICES"
    DEVICES="$DEVICES /dev/pcd?"

    modified:
    DEVICES="/dev/hd?"
    case "$CMDLINE" in *sysonhd*)
    ;;
    *)
    test -n "$FOUND_SCSI" && DEVICES="/dev/scd? /dev/scd?? $DEVICES"
    DEVICES="$DEVICES /dev/pcd?"
    ;;
    esac

    This means if an options "sysonhd" was found on booting command, then
    skip searching KNOPPIX on CDROM, and search KNOPPIX on HD.
    ("sysonhd" means "system on harddisk")

    then save this, replace old "boot.img"

    then booting KNOPPIX on HD without floppy, without loadlin, without any
    other boot-loader but just useing the same KNOPPIX CD.

    when booting from CDROM, useing "sysonhd" as an option
    after "Uncompressing linux ......." it then search KNOPPIX on HD, skip
    searching from CDROM.

    then you can remove CD when KNOPPIX is running on HD.

    I have made an "boot-tw.img" with this modification and some others for
    my personal preference here:
    ftp://cle.linux.org.tw/pub2/KNOPPIX/bv1al/
    but this is for my TAIWAN's version only.
    You are late .

    This is already on in official knoppix as "fromhd".

    So no need to remaster ...

    cu

    Fabian

Similar Threads

  1. Windows/Knoppix Partitions
    By Jim in forum MS Windows & New to Linux
    Replies: 3
    Last Post: 10-20-2004, 07:49 PM
  2. Cannot mount windows partitions
    By milkjam in forum General Support
    Replies: 4
    Last Post: 07-26-2004, 05:00 AM
  3. Write to Windows Partitions
    By green_man in forum Tips and Tricks
    Replies: 4
    Last Post: 02-23-2004, 01:21 AM
  4. How rescue Windows Partitions with K3B?
    By HK in forum General Support
    Replies: 4
    Last Post: 11-14-2003, 05:34 PM
  5. Windows FAT and FAT 32 partitions
    By fransm in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 01-23-2003, 03:32 PM

Posting Permissions

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


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



Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory picture

Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory

$16.29



Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC picture

Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC

$19.95



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Corsair Vengeance 16GB Kit (2x8GB) PC3-12800 DDR3-1600Mhz Non-ECC Desktop Memory picture

Corsair Vengeance 16GB Kit (2x8GB) PC3-12800 DDR3-1600Mhz Non-ECC Desktop Memory

$19.95



Corsair Vengeance LPX 32GB PC4-25600 (DDR4-3200) Memory NEVER USED LOOSE STICKS picture

Corsair Vengeance LPX 32GB PC4-25600 (DDR4-3200) Memory NEVER USED LOOSE STICKS

$40.00



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



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM picture

A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM

$87.96