Re: Knoppix34.iso boot from a single NTFS partition
Quote:
Originally Posted by j.drake
Phase 1: I would like to boot from a USB key, in my case, it's /dev/sda1/. There is a lot of info on the WIKI and this forum about doing that with previous versions, but I couldn't find anything relevant to version 3.4. I think bootfloppies are pointless.
As far as I know, the Knoppix CD can access USB keys and other 1394 peripherals after having mounted the loopback file (/knoppix/knoppix). Now what you are trying to do is different, you want the kernel (linux24) and the ramdisk (minirt24.gz) to be able to access the content of the USB dongle to mount the loopback file. This means that the kernel and the ramdisk should have the ressources to mount a USB device and the filesystem in it, and also the script (linuxrc) to to look for the loopback file. I am not sure if that is already the case, but if not it could probably be done. If I remember right the minirt24.gz ramdisk of the Knoppix 2.3 CD (which is a compressed ext2 filesystem) doesn't include any scsi driver, and I think that a USB dongle is seen as such a device. Now the question is: how can it be done and if someone have already done it, where can it be found ? This is quite similar to what I am trying to achieve right now... execpt that I am looking for a boot from a single NTFS partition already hosting XP and with a minimum of changes and risk for the user.
Quote:
Originally Posted by j.drake
Phase 2: I would like to integrate my cheatcodes into this boot image if possible. The idea being that if I want Windows running, I simply leave out the USB key and boot with the stock Windows XP bootloader. When I want Knoppix, I simply plug in the USB key, reboot, go get a beer, and when I come back from the kitchen, my knoppix 3.4/2.6 desktop is up and
waiting for me, printer file installed and apps in my PH available to me. IOW, I want to integrate the following cheatcode line"knoppix26 home=/dev/hdb5 myconfig=scan bootfrom=/dev/hdb5".
This could be done by using the proper boot loader (lilo or preferably grub) on your USB dongle and using the right boot parameters after the kernel command line, assuming that your BIOS can boot on a USB device. If not you can use grub.exe from the dos, or grldr (grub version which can be started from the NT/XP boot loader using a extra line in the boot.ini). Grldr can be located on either a fat16/32 or NTFS partition.
Quote:
Originally Posted by j.drake
Phase 3: When I can afford a 1 GB USB thumbdrive or larger (probably much larger), I want to integrate the Knoppix image, PH, configuration file and data into the thumbdrive as well, so that I can have access to my entire system, apps, preferences and data available to me from any x86 PC I can find with a USB port.
If the 1) can be done, then just add the loopback file system image in your dongle fat32 partition, add the right cheatcode and go drink your beer...
BTW: have you seen this: http://www.knoppix.net/forum/viewtop...t=5257&start=0
Hoping this will help a little bit... Cheers, Gilles
Boot from a USB key dongle
JD: in the same order, if you have an extra non-ntfs partition to store your loop back file system image (cd/knoppix/knoppix), you can use the autoexec.bat of a dos formatted and active partition on your dongle to run grub.exe and start knoppix. Cheers, Gilles
Knoppix 3.4 boot from a USB dongle
Please find below an other way to boot Knoppix 3.4 boot from a USB dongle:
1) Create a Fat (16) partition on your USB dongle and make if active so you your BIOS will boot from it. You can use fdisk.exe, partition magic, or qtparted from linux/knoppix ...
2) install a dos boot on it: fdisk/mbr to install the master boot record, and sys.com to transfert the system io.sys, msdos.sys and command.com.
3) create in the root of the USB dongle an empty config.sys and create an autoexec.bat with 1 line like grub.exe.
4) in the root of the USB dongle, copy the grub.exe and create a file /boot/grub/menu.lst with a content like this, x being your fat partition on your hard drive: (type "root (hd, " + tab at the grub prompt to have a list of the partitions, grub has autocompletion...)
title Knoppix 3.4 kernel 2.4
kernel (hd,x)/knoppix/linux24 ramdisk_size=100000 init=/etc/init lang=us quiet BOOT_IMAGE=knoppix lang=us
initrd (hd,x)/knoppix/minirt24.gz
boot
5) copy the linux24, minirt24.gz and knoppix files from the CD into /knoppix of the fat partition of your hard drive
This should work as well as the other option proposed by eco2geek.
Grub will nevertheless boot from the net, in case your network card doesn't do PXE and will also boot from a floppy disk image which can be very useful if you don't have a floppy drive in your laptop...
Cheers, Gilles
PS: you can download temporarily grub.exe from this link: http://s94592085.onlinehome.us/grub/grub.exe