Boot Knoppix 3.6 from USB key - How To (Success!)
Hello Everyone,
I'm new to the group, but not to Unix. I've been involved with it since the early 80's, but haven't used it consisently since then.
I've been looking thru all these forums on how to run/boot Knoppix from
a USB key and haven't found anything recent other than this:
http://rz-obrian.rz.uni-karlsruhe.de/knoppix-usb
HOWEVER.... After a bit of tinkering and looking thru source code, I have
successfully been able to boot Knoppix 3.6 from a 512MB Sandisk cruzer USB key.
I want to document the complete process because I know how many of you are interested in doing this also.
I'm in a bit of a dilema because I am leaving on a trip in the morning for a couple weeks and won't have time to describe what I did in as much detail as I'd like, but I will try and give a brief description in my next post until I return and can give a step by step description along with what pkgs I removed to fit everything on 512MB.
Cheers,
Mike LaPierre
Booting Knoppix 3.6 from USB quick overview
Well it's late and I wish I could do this in more detail, but this is the best
I can do for now. I also want to give credit to the other people who've
done this with previous versions because it was their info that helped me
come up with my method. This is just a draft, and with any version of
Unix, there are always many ways of reaching the same results.
=================================
First, partition your flash drive with fdisk and set the partition type to "6".
Next format it with "mkfs vfat"
Now mount your flash drive and copy the contents of your remastered
version of knoppix from your CD or ISO file so that will fit in the capacity of your USB flash drive.
"cd" to the /boot/isolinux directory and "mv" everything up to the root of
your flash drive and remove the whole "boot" directory.
"mv" the ISOlinux.bin and ISOlinux.cfg files to SYSlinux.bin and SYSlinux.cfg. (The 1st 3 letters are only capitalized for clarification).
Now this part I'm not certain about and need to verify what I did, but I
may have modified the "linuxrc" files in both the "minirt24.gz" and "minirt26.gz" files. The linuxrc file is slightly different than described in the link in my previous message, but I don't have time to verify any
changes I *might* have made.
Try them the way they are, they may work unmodified.
"umount" your flash drive.
Next you need to run SYSLINUX on your flash drive, *BUT* NOT the one
that is on the Knoppix 3.6 disto, you'll either need to update it OR
download a Windows/DOS version from:
http://www.kernel.org/pub/linux/utils/boot/syslinux/
and get version "syslinux-2.11.zip" for windows
You'll of course need to boot up windows to run the program.
This needs to be the last step I believe, because *I Think* it writes the
bootsector based on info from syslinux.cfg (I'm not sure).
The syntax would be "syslinux x:" where "x:" is the drive letter
windows sees your flash drive as.
I've had to change the 1st boot device in the BIOS to "USB ZIP",
it may be different for you.
I've only been able to test this so far on an VIA Epia Mii 10000.
A couple of times I've gotten to the point where the penguin shows
up in the top left (This is just before the "linuxrc" begins executing),
and got a "kernel panic" because it's unable to mount the root filesystem
and the system halted. I've rebooted and tried again and things started right up. I've also tried just typing "knoppix 5" at the boot prompt (which
is default anyway) and that seemed to give it whatever delay or encouragement to work also.
I hope this will be enough of a guide to help some of you continue
and maybe iron things out a little more by the time I return. At that
point I'll be happy to write a How To with explicit detail and directions
and add any improvements any of you may have.
Mike
USB Stick Mount Problem Still there
I am booting form a CD. My HD has crashed.
Have a Toshiba Satelite 1805-S274.
First I did not put the stick in USB and started Knoppix Kernal 2.4.26. It shows in the fstab file 4 entries(sda1, sda2,sda3,sda4):
#Added by Knoppix
/dev/sda1 /mnt/sda1 auto noauto, users, exec 0, 0
This is after plugging in the Stick in the USB port. It shows Hard Disk Partition [sda1 thru sda4] on the desktop. But if I click on anyone it gives error Could not mount.Not a valid block device.
So subsequently
I logged in as root and did
#mkdir /mnt/flash
then when I type in
#mount /dev/sda1 /mnt/flash
It gives error
#Mount: /dev/sda1 is not a valid block device
I have tried mounting /dev/sda2, /dev/sda3 and even /dev/sda5. Nothing works.
If I tried to edit fstab file, and remove those entries.
It doesn't allow me to save it.
Second Try:
I have tried first putting the stick in USB and then booting.
Knoppix.
It syas in the beginning USB found, managed by Hotplug. Rescanning .. [001 002]
After the desktop comes up, It shows 4 partitions on the desktop
Hard Disk 1 thru 4 but no sign of Stick. If I clik on any of them it says
Step 1:
Could not mount device
Mount: /dev/sda1 is not a valid Block drive
Step 2:
Have run Utilities, Tools, USB Viewer. After a long time it shows i the left panel:
USB OHCI Root Hub
... usb-storage
If I click on usb-storage it shows all the details of the
device including the correct size etc.
Which means it has recognised the USB stick
But it doesn't show it in the the 'fstab'
Step 3:
Now how do I mount it? What to do with these non-existing hard drives?
By the way I am a Professor of IT and have used in the past
SCO Xenix. But that was 10 years ago.
Thanks a million for your patience and help.