-
Senior Member
registered user
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?
-
Senior Member
registered user
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
-
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.
-
Senior Member
registered user
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.
-
Senior Member
registered user
Re: Boot from CDROM but running with HD
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
-
By Jim in forum MS Windows & New to Linux
Replies: 3
Last Post: 10-20-2004, 07:49 PM
-
By milkjam in forum General Support
Replies: 4
Last Post: 07-26-2004, 05:00 AM
-
By green_man in forum Tips and Tricks
Replies: 4
Last Post: 02-23-2004, 01:21 AM
-
By HK in forum General Support
Replies: 4
Last Post: 11-14-2003, 05:34 PM
-
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
-
Forum Rules
Atari 810 Disk Drive, Untested, sold as is for parts
$38.00
Atari 8bit A8PicoCart Multi-Cart For Atari Computer
$28.95
Atari In-Store Demonstration Program cartridge CXL4019 for Atari 400 & 800 XL XE
$139.99
A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart atarimax clone
$28.50
Atari 400 Power PCB, Provides Power but NO VIDEO, For use as Spare Parts/Repair
$10.00
Vintage Atari 800 Computer System Only FOR PARTS OR REPAIR READ
$200.00
Atari Power Cube 800XL, 600XL, 65XE, 130XE USB-C Power Supply PSU
$11.25
RARE San Jose Computer Special Edition 810 5 1/4" Floppy Disc Drive Atari 8-bit
$189.00
Vintage ATARI 800 XL 8-Bit Computer w/ Power Supply *Please Read*
$199.99
Atari 600 XL Vintage Home Computer New IN BOX W/ Manuals Cables Original Box
$239.99