LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 05-15-2009, 09:33 AM   #1
drubru
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
Angry Grub Error 21 with USB External Hard Drive and Other Problems


I have an HP tx2z with Vista Ultimate as my main OS. So a couple of days ago I decided to give Ubuntu v8.04 a try, but I didn't want to mess with my internall hdd, so I installed it on my USB 2.0 external hdd. Everything worked great (I thought), Ubuntu loaded up, it was fast, and I liked it. After I shut down the computer and unplugged the external hdd, I tried to boot to Vista and I got this message: "Grub step 1.5 loading" and "Grub error 21" (Not exact words, but you get the gist). BUT, I found out that if I do have my external hdd plugged in, it goes to a list of OS's that I can choose from, and Vista loads perfectly if that happens. But this is my portable laptop, I don't want to always have my external hdd plugged in just to boot into Vista. I did some research into this error and found that Grub can't read the 'selected disk' or something or other, so I'm guessing when I installed Ubuntu it put Grub on my internal hdd, not sure though. I don't mind having Grub on my internal hdd, but I would like to be able to run the computer in Vista without the stupid exteranl hdd plugged in. By the way, consider me a beginner with all this stuff, so if this problem requires rewriting code or whatever, you're going to have to hold my hand throughout the process. I would appreciate it if you guys responded quickly because my dad is coming in from out of the country and hasn't seen my new computer yet, he'd be royally pissed if he found out that I screwed up my computer already. Please help and thanks!
 
Old 05-15-2009, 09:42 AM   #2
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 283

Rep: Reputation: 32
I will suggest for dual boot option in your internal hard disk. Because the grub might have been loaded in the internal hard disk (check /etc/grub.conf).
 
Old 05-15-2009, 09:55 AM   #3
drubru
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, so if I just install say Ubuntu v9.04 on a partition of my internal hdd, this will all be fixed? That's the version I originally wanted to do but it would not recognize my external hdd so I went with the older one. Also, what is 'check /etc/grub.conf' ?
 
Old 05-15-2009, 03:20 PM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,828

Rep: Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748
Grub has a number of files. The stage1 file is a small (512 bytes) file which can fit in the master boot record. When you install Grub, the default is to install stage1 to the first disk in boot priority so, unless you make that change yourself that's what happens. That's what did happen in your case based on the information you gave.

You can reinstall Ubuntu to the internal taking care that you do not overwrite your windows partition. You will need to select manual or expert install rather than taking defaults.

You could install Grub to the mbr of your external and then when you want to boot Ubuntu, select the external in your BIOS at boot.

You can use your vista installation CD to repair the vista mbr on the internal drive. To FIX VISTA MBR: Boot up from Vista Installation DVD and select Repair Your Computer option (its below Install Icon). Select Windows Vista -- Command Prompt.
Execute this at command prompt:
Code:
bootrec.exe /fixmbr
bootrec.exe /fixboot



If that looks problematic for you, you could download EasyBCD to edit the vista bootloader.

If you don't expect to have the external connected often, you would be better off restoring the vista bootloader on the internal drive. Check the neosmart technologies website (EasyBCD) or go to support.microsoft.com.

Last edited by yancek; 05-15-2009 at 03:21 PM.
 
Old 05-15-2009, 05:26 PM   #5
drubru
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
yancek: Thank you so much, I will print this page off and try it I'll let you know if all goes well. I think I'm going to backup my computer first, though.
 
Old 05-15-2009, 07:15 PM   #6
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,828

Rep: Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748
Quote:
I think I'm going to backup my computer first, though.
Always a swell idea!!
 
Old 05-16-2009, 04:53 PM   #7
drubru
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
yancek: Thank you so much for helping me out with my problem. I started this thread on three otherforums and no one really knew what I was talking about. I tried the OS disk route but it did not give me any sort of option besides reformatting my hard drive (no thanks), so I downloaded EasyBCD, and well, it was easy. After downloading it took literally 3 seconds to fix the problem, I rebooted, and now I'm really happy; and my dad didn't even have to find out. Thanks a bunch man.
 
Old 05-16-2009, 07:03 PM   #8
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,828

Rep: Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748
Glad it works for you. I'm surprised you couldn't get help on other forums. This is a common problem for dual-booting and a simple solution.

As a father myself I'd suggest you tell your dad. You messed up, you took the inititative to learn, got it fixed and know how to do things most windows users will never know how to do. Also learned to research before you try something, right. Anyhow, your choice. Enjoy your new computer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems getting external USB hard drive to work pwaring Debian 4 11-24-2008 08:15 AM
External Hard Drive GRUB Error magcius Linux - Hardware 4 05-15-2007 06:37 PM
How to avoid GRUB error 21 when I remove external hard drive blee37 Linux - General 4 12-30-2006 07:40 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Problems with getting external USB hard drive working pwaring Linux - Hardware 10 12-08-2005 07:53 AM


All times are GMT -5. The time now is 05:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration