Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've spent two whole days trying to get this to work and I believe I may be on the verge of insanity.
In any event, my goal is to have Slackware 13.0 be installed on an external USB drive and for any computer I use to be able to boot from that USB drive and load Linux.
I used fdisk to completely repartition the external hard drive making the first partition for '/' and toggling the boot flag on it.
I installed lilo on the USB drive, rebooted, disabled the internal hard drive, and instructed the computer to boot from USB.
"No boot options available."
I assumed there was a problem with the MBR. I booted into Slackware setup, performed a lilo -mbr on the external hard drive. Rebooted.
Still "No boot options available."
What could possibly be wrong? Yes, my computer does support booting from USB.
Do all hard drives have MBR's? Does fdisk overwrite the MBR when you partition it? If it does, do I have to ignore the first 1MB when I partition my disk so that lilo can boot from it? I remember having to do similar with 'parted' when I had to format a flash drive for being bootable.
The other problem I have is that the /dev/sda can change. Just because a USB drive is /dev/sda today doesn't mean it won't be /dev/sdb tomorrow. Is it even possible to have a boot loader load correctly, considering that you hard code the device name into the /etc/lilo.conf? I was thinking of using grub to manually choose where to boot at load, but that doesn't seem to be an option as grub looks like (i may be mistaken) it tries to find a root and then looks for the grub config info in that drive. I also don't think that grub loads USB drivers at runtime, nor do I think lilo does either, which makes me wonder even more if it's remotely possible.
Never mind; I figured it out. Apparently the OS was taking a while to initialize the USB drive, so it never read the hard drive. If I made it wait a bit longer it found it and loaded Slack.
Also for people wanting to install on USB - you need to make sure that the kernel you're using loads USB drivers before it tries to mount the drive. For Slack users it'd be on the initrd; check the mkinitrd command.