PDA

View Full Version : Booting Knoppix HD install on USB hd with no floppy?



visage
01-22-2004, 10:11 AM
I know a lot of people have asked about this topic. But no one seems to have an answer. I am trying to get a knoppix hd install to boot from a USB external HD. I'm using a laptop that supports booting from USB but has no floppy. Everything installs fine. I then try to boot up and LILO runs from the MBR of the external drive. It starts the kernel but cannot finish booting because it can't find a file system. The kernel then panics saying it can't find init. I've had the same problem trying to install Mandrake. I'm fairly new to linux. Is there any way I can get it to start? Others have suggested RUNT or Flonnix, but I have no floppy to boot from. Any suggestions?

gowator
01-22-2004, 12:37 PM
I think I double posted since this is essentially the same error I get
http://www.knoppix.net/forum/viewtopic.php?t=7545

However, just to clarify, the problem (for me) was installing onto an IDE disk not a USB with the USB disks plugged in.

One is a flash memory and the other an archos MM drive.

I have seen similar problems with fdisk before when it can't read a partition table (infact I trashed a drive doing it in MDK once)

yumheart
01-22-2004, 03:32 PM
I had similar problems trying to boot off a HD greater than /dev/hdh.
Knoppix does not come with any /dev/ files beyond hdh.

1. Boot knoppix off CD and mount the USB HD with the knoppix installation on it.
2. Check to see of /dev/hdX exists - where X represents the USB hard drive.
3. If not you must create the hdX dev file using the MAKEDEV script in the dev dir.
4. You must insure that lilo.conf on the hard drive installed system has your usb drive dev file configured correctly. If not config it and then chroot to your installed system and run lilo to commit changes.
5. You must insure that /etc/fstab on your hard drive installed knoppix has your usb drive dev file specified correctly.

visage
01-22-2004, 08:54 PM
I'm not having any problem installing to the usb hard drive. It's just trying to get it to boot. Everything installs fine to /dev/sda1. LILO runs fine and starts the kernel properly. It's just when I try to boot the kernel doesn't seem to be able to see the usb drive it's running off of.

-DKL-
01-23-2004, 01:24 AM
You are having a simple problem.... all the drivers the kernel needs to access a USB Storage device are not compiled into the kernel. Whatever drivers are needed (including the USB Storage driver) are configurged in the Knoppix kernel to be modules. SOooooo, you have a situation in which the bootloader gets the kernel loaded in (using its code and the BIOS) and then the kernel attempts to access the device, but does not have the code in memory to access the drive (and the modules it needs are sitting on that drive).

I can't give you all the details, but you have one of 2 choices:

1) reconfig and recompile the kernel with the config on all drivers necessary for USB Storage devices set to "Y" (not "M").

2) setup a boot floppy (maybe not possible on your system???) that loads a kernel and an initrd image containing the necessary drivers which then attaches the USB drive and mounts the partitions and moves the system root there... (given your lack of floppy drive, this could theoretically also be done on an extremely small partition of your main hardrive that is then used to boot into the USB drive...)

Hope that helps...

gowator
01-23-2004, 01:58 PM
I'm not having any problem installing to the usb hard drive. It's just trying to get it to boot. Everything installs fine to /dev/sda1. LILO runs fine and starts the kernel properly. It's just when I try to boot the kernel doesn't seem to be able to see the usb drive it's running off of.

If you are running knoppix-installer from a root shell then check the shell output.
Error messages go here, not a dialog box.

The USB module chicken and egg is true but why do I get the same problem installing onto an IDE drive with the USB drive plugged in???
Ill delete my seperate thread.