Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi,
I have a laptop running Xubuntu linux in dual boot with win XP from the Grub bootloader. I also have a USB flash drive with a live install of Kubuntu on it and a USB hard drive with an old version of win XP and also ubuntu on it. Is is possible to get grub to detect the operating systems on these USB devices so that i can boot them?
I dont' think Grub will auto-detect operating systems though, you should be able to just boot from USB with your BIOS like shpenat mentioned, but since Grub rebuilds itself whenever you make changes to it, I don't believe it will modify itself on the fly to give you a menu option for an OS that wasn't there the last time you modified the Grub config.
The simple way is to have usb boot first in bios and edit your grub menu.lst on usb to boot your linux boot on hda or sda. That way when usb is disconnected your hda should still boot okay.
Hi,
Thanks for the replies. Have discovered that my laptop doesnt seem to auto detect USB drives at boot. I have another computer that does and you are right Grub automatically sets up the operating systems that exist on these USB devices. There is an option in the laptop bios to detect removeable devices and i have enabled that as first boot proirity but still wont detect the USB devices. Does this imply that i need to upgrade the bios? If this is the case is there an easy way to do this. The laptop is asus and i have looked on the Asus support website but my bios version seems to be up to date. Is there anything else that i should set in the bios settings that i have overlooked in order to enable USB detection at boot?
In some Bios the USB device can only be booted with "Legacy USB support" enabled.
My experience on Grub booting from a USB device is as follow:-
(1) Grub cannot detect a USB device as it has no driver for it.
(2) It the Bios that does the trick by forcing a USB device as the first bootable disk. In such a case Grub sees it as the first disk (hd0)
(3) In the above case (2) all other USB devices are not detected by Grub. This means Grub can only boot "one" USB device and it must be arranged by the Bios as the first boot disk.
(4) Once booted Grub has access to a Linux kernel and all USB devices can be seen.
Hope the above is clear. These are only my obervation and after many trials and tests.
If you don't believe me get a card reader and insert a Compact flash, a memory stick and a SD card in it. Grub only see the first one detected. Remove the first one and Grub sees the second one. Grub can boot all of them but only one device at a time because that is how the Bios arranaged it.
To answer the OP with several USB devices the answer is to unplug them all except the one to be booted. That is the only way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.