UbuntuThis forum is for the discussion of Ubuntu 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.
Hi, im new to linux and im trying to install ubuntu on my archos usb 20gb harddrive( ajbm20 ). when i remove the ubuntu install cd and restart the system, grub loader attempts to load but says "error 21". how can i get grub to load ubuntu off of my usb harddisk? if u have ANY information that might help me, ill greatly appreciate it.
when i went to change the cmos setting it didnt have the "user" setting like the doc stated but did have the "LBA" setting. this link, www neowin net/forum/lofiversion/index.php/t333932.html , is the closest thing to my problem, and this link , reviews cnet com/4505-6496_7-20349561.html , shows my usb harddisk, is it possible to enter a new boot location for linux into winxp boot.ini so linux attempts to boot from the usbdrive first as a way to totally avoid using grub? ps, i removed the dots from the urls so i could post them
Last edited by rippedrob420; 12-08-2005 at 11:20 AM.
NOTE I HAVE EDITED AN OMISSION IN THE WINDOWS LOAD SEQUENCE.
Sorry folks. Jim
When installing Ubuntu on a USB drive it is necessary to create a new initrd.img file in order to boot. That initrd will have to contain the necessary USB drivers.Also I have found that many times when I first boot a USB installation that I have to edit the grub menu.lst file to correct the drive mapping.
The first thing to do is to insure that your computer BIOS can be set to boot from USB.If it can not you will have to create a boot floppy or boot CD.
For a begining reference to creating the initrd necessary there are two threads on the ubuntuforums.org site. Go to that site and look for the following links 1: /showthread.php?t=77280 and 2: /showthread.php?t=20522
These threads do not explain the problem of disk mapping but it is as important as anything. To check the disk mapping you will have to check two files. First the map file located in /boot/grub Make sure that your drives are mapped as follows:
hd0 (sda)
hd1 (hda)
not the other way around.
Then check the menu.lst file to insure the the drive specified for the installed linux is hd0 not hd1. Change if necessary.
It will also be necessary to change the Windows entry as follows:
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
That assumes that your Windows partition is the first partition of your IDE drive. If your computer is a Dell there will be a Utilities partion first and Windows will be : (hd0,1)
BTW I usually do my editing of the grub and menu.lst file with a LiveCd where I can work as root in a GUI mode- easier if Windows is your background as it is for me.
If you need more information just post there is lots of help here.
I always put my grub or lilo bootloader on my USB drive so that if it is not plugged in or turned on I will not get a boot error from my computer BIOS and I get a normal Windows boot.
Jim
I've managed to get kubuntu to load off an external USB drive, with windows setup as my default entry in GRUB on my primary drive and second partition. However, since I installed grub on hd0 (primary hard drive on laptop), if my external usb drive (hd1) isn't plugged in or turned on, I get the Error 21 message. Is there anyway to configure grub so that I don't need to have the hd1 mounted? - If it's not there, can't it just default to booting windows on hd0?
james 419, it sounds like you may have the solution to my problem (error 21 blah blah), but could you tell me exactly how to do what you said? I don't know any commands or anything, so I'd appreciate it if you could explain to me exactly how to do what you said.
Nasty error, what can I say, heh?
I had it this morning also... I am running xp, suse, and couldn't believe my eyes when I've tried to restart pc. My brain was at max use... I remembered that I had heard the other night, one of my drives had produced quite unusual noise. I thought, maybe some of the drive sectors are damaged. Tried to update, repair, manually add grub list, everything went without a hitch, but on the boot, error was still there. I've booted knoppix, and checked my drives, all okay. I've opened the bios, and changed drives from auto to LBA. No changes... and only then, before I wanted to change the order of my master/slaves, I came to realize that I have one of the USB keys connected and thought, let me unplug it, maybe that is the reason for the grub confusion. Guess what? It was. Sometimes, linux operates in really weird ways, luckily I really enjoy challenges and love the idea of open source, but at the same time I think of beginners, and I come to conclusion that bugs like this will turn many people of linux distros.
errr...could you tell me exactly how it is that you change the drives from auto to LBA? People keep talking about it but no one mentions how to do that...all my computer has is AUTO and OFF.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.