Booting to Linux on an external usb drive using xp loader
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Booting to Linux on an external usb drive using xp loader
Hi All
At present I have Lilo installed on the boot partition of my Linux distro which I access from the XP bootloader.
I am considering buying an external USB HDD and transferring Mandrake or an updated version to the new hardrive.
Does anyone know if I will have any problems using the same boot sequence.? ie transfering the boot sector from the linux boot sector and making it available as a file for the Xp loader to read.
Presumably xp will recognise the new hardrive etc.
At present I have one 80GB hardrive with Win95, WinXP, and then Linux with various partitions
I would appreciate some advice as my knowledge of USB devices is v. little. Thanks alot
I use my XP loader to start GRUB, and then let GRUB boot my USB drive. I'd suspect that you could do that with your system -- using LILO -- too.
In fact, I suspect that that's what you're actually doing. As far as I know, unless you got XP to load the Linux initial ram disk, XP won't boot Linux directly. Most people opt for making a copy of a Linux MBR in the XP C: drive, and having XP boot that, which starts a Linux loader to handle the rest of the boot.
By he way, I got my USB drive enclosure from CompUSA for $20. When I tried to boot it directly from my BIOS, it wouldn't work, and GRUB refused to install on it. I finally figured out that the problem was that the thing was USB v,1, not 2. But it works fine when booted from the GRUB MBR image on the XP drive.
Whether or not you can boot from a USB device depends on your BIOS. Reboot your PC, press Del or F12 or whatever key is appropriate to get into BIOS, then take a look at the boot sequence options. If the USB device is offered as an option, move it to the top of the list, and then anytime you've got a bootable USB attached, your PC will boot from it before it tries to boot from the CD or internal hard drive, etc. If it does not appear as an option in your boot sequence, then realistically it won't work. Good luck with it
Whether or not you can boot from a USB device depends on your BIOS. Reboot your PC, press Del or F12 or whatever key is appropriate to get into BIOS, then take a look at the boot sequence options. If the USB device is offered as an option, move it to the top of the list, and then anytime you've got a bootable USB attached, your PC will boot from it before it tries to boot from the CD or internal hard drive, etc. If it does not appear as an option in your boot sequence, then realistically it won't work. Good luck with it
Yes, that's true, and USB was offered as an option. However, when I tried to install GRUB on the USB device, GRUB informed me that the BIOS did not support writing to the boot sector of the USB drive. And, after I put a MBR on the drive (after attaching it as an IDE drive to another box), the BIOS (of the Gateway laptop) would not boot it.
But this is way of the o.p.'s topic, and not a problem for me since I can boot the USB drive via GRUB.
Thanks for both of your replies.
Unfortunately my Bios does not have an option to boot from a USB device.
If I understand you correctly PTrenholme, you are suggesting I keep a version of Linux on my existing drive and modify Lilo to give me the option of either booting the USB drive directly (if possible) or an option to boot via another bootloader -GRUB OR LILO- on the new Linux system installed on the USB drive. I would have to research either option. Modifying lilo
I have of course enough room to fit another internal drive and may well do that. An external drive would just give me extra possibilities of transfering data to other machines.
Thanks once again.
Well, not exactly. I suggested that you keep a Linux on your existing drive, or, at a minimum, the /boot directory tree. The /boot tree is not, actually, that large, and it can be in, for example, a 1 Mb FAT partition.
Then you have two options. The first, and easiest, is to set your MBR to use LILO to boot using that /boot partition, and let it boot the other OSs, including the USB Linux. The other alternative is to get the first option working and then copy that working MBR to a file which Windows can use to start LILO, and then let Windows replace the MBR with its own, limited, boot system.
Most of what I discussed concerned the second option, and how to accomplish it. The first option is actually easier. Just create a small (1 to 10 Mb) FAT partition on one of your attached hard drives, and then install Linux on the USB drive, selecting the FAT partition for /boot and the USB drive for all the rest.
Note, however, that you may be able to directly boot the USB drive. When you say that your BIOS does not give you a option to boot from a USB drive, did you have such a drive connected when you checked? It may be that the option was not displayed because it's only available when there is a USB drive present in the system.
You should check to see if here is a BIOS upgrade available for the mother board installed in your system. Most M/B manufacturers provide free upgrades when they become available.
Also note that, if you do it the way I've suggested, your USB Linux may not be bootable on some other system, since its /boot partition is on your (non-portable) Windows system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.