[SOLVED] Boot CD or Floppy with USB Drivers for Booting Old Hardware
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Boot CD or Floppy with USB Drivers for Booting Old Hardware
Hello all,
I have an old laptop that does not support USB booting, but I want to do it. I was able to install Debian to the flash drive, but booting from it is my current task. I have tried Plop Boot Manager, but with Grub it would just freeze, and with Lilo it is mounted as read only and causes problems that dump me into busybox. I see that very old versions of Debian have a boot floppy, but that has not worked for me.
From my Ubuntu box I have used grub-mkrecovery along with a few other tools to make a CD with the Ubuntu initrd and vmlinuz. When I booted the CD I was presented with a Grub prompt and I loaded the kernel and initrd then booted. I saw the USB drivers being loaded as the Ubuntu kernel was booting, but it gave me a initramfs shell, but I do not know how to load the OS from the flash drive at this point.
To make the boot CD I edited /etc/initramfs-tools/modules to include usbcore, sd_mod, ehci_hcd, uhci_hcd, ohci_hcd, usb_storage, and scsi_mod. Then I did the mkinitramfs (using the Ubuntu kernel version instead of the Debian one). I added boot/grub/menu.lst, but Grub seemed to ignore it, but that's fine for now, I just want to get it working before I care if the whole process is automated.
Right now I seem to just need to know how to boot from the flash drive from initramfs. If I run into any problems because I'm using the Ubuntu kernel then I'm going to switch to the Debian kernel, but I don't want to waste my time doing that to hit the same roadblock without any help.
The computer does have a hard drive, but in the end I want to run without it because I've already killed one laptop hard drive from constant use over about a year. It does have a CD-ROM drive (for some reason the computer has problems booting ISOLINUX on the Debian install CD so I did the install in Windows as an alternative). It does have a floppy drive. The BIOS is too old and has no update to boot from USB. The only USB port is a 1.1.
This assumes that your USB device is detected as /dev/sdb1. Substitute whichever device there.
If it continues to fail, you might need to try an older distro.
What CD image do I need to boot from? The one I currently have has Grub and the Ubuntu kernel, not lilo. I did have lilo installed to the MBR of the flash drive and used Plop to boot from it, but due to the drive being mounted as read only that method won't work.
How do I get the kernel module for the USB driver loaded to lilo?
Thank you for your help and please be patient with me; I have a lot to learn.
Sorry, I wasn't clear about what I meant. I want to boot from the USB flash drive with the aid of a CD/floppy (or even PXE).
What CD image do I need to boot from? The one I currently have has Grub and the Ubuntu kernel, not lilo. I did have lilo installed to the MBR of the flash drive and used Plop to boot from it, but due to the drive being mounted as read only that method won't work.
How do I get the kernel module for the USB driver loaded to lilo?
USB support will be in your kernel. Essentially, you need a kernel and initrd to boot from, then you can do as you please.
But it doesn't have to be that difficult. An alternative solution to this problem would be something like Knoppix. It won't be lightning quick, but it will work with a minimum of fuss. You might want to download an older version if the newer ones struggle with your hardware.
I am running AntiX 11 installed from USB made with Unetbootin and I used a PLOP Floppy Disk (I did not install PLOP to MBR, But used the floppy to control USB boot)
This is a IBM A22M Laptop with a Floppy Drive and DVDROM with USB 1.1 (1 Port) with a external PCMCIA 2 port USB combo Firewire Cardbus (Cheapo Chinese made). Bios has no USB boot support either.
Thank you all for your help. It is much appreciated. I found the solution to the problem. I tried booting the flash drive on a modern computer that does recognize the flash drive and got the exact same problem as I was getting with Plop. I realized that I was getting the initramfs prompt before the messages saying the flash drive was ready, thus a delay is needed. Lilo works and GRUB doesn't on the flash drive with Plop on my laptop. The way to get the delay is to add this to /etc/lilo.conf
Code:
append="rootdelay=10"
I was wrong to think the Plop USB driver being read-only would be a problem. I found that it's read only while loading the kernel and initrd, but as soon as Linux loads the driver I gain write access.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.