LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-28-2011, 03:00 AM   #1
CoolBeans
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Rep: Reputation: Disabled
Booting problem Grub loading stage 1.5 error 21 Windows 7 openSUSE external hard driv


A few days ago I installed openSUSE 11.4 on a 1TB HP external hard drive. I have some very important files for school and personal work on my main hard drive, running windows 7, so I made sure the installation only affected my external hard drive. With the external hard drive plugged in it boots just fine but when it is un-plugged it says Grub loading stage 1.5. Error 21 and it won't do anything. This kind of pisses me off because there were no warnings and nothing was supposed to happen to my main hard drive. But this has already happened and now I want to know if there is any way I could fix it so I can boot windows 7 normally and still boot openSUSE with the external hard drive plugged in. Thanks in advance to anybody who can help.
 
Old 07-28-2011, 03:41 AM   #2
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
This means you have installed grub in the internal hard drive and it needs external drive to boot the OS. Does grub showing the boot menu after removing external drive??
Note:-
if you truly want an portable linux system do read this thread of mine
...
 
Old 07-28-2011, 09:02 AM   #3
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,456

Rep: Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688
As indicated above, you have installed part of the Grub files to the mbr of the internal drive so you need to install it to the mbr of the external and then use your win 7 installation or Recovery CD/DVD to restore the mbr to windows on the internal. You can get info on how to do that by using the search function here at LQ as there have been numerous posts on the subject.

If you don't know how to put Grub on the mbr of your external drive, log in to Opensuse as root and in a terminal run this: fdisk -l (lower case Letter L in the command) and post the output here.
 
1 members found this post helpful.
Old 07-28-2011, 10:16 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,348
Blog Entries: 2

Rep: Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978
By any means, before doing anything further: If your files are important to you then make backups, regularly, and especially before dangerous tasks like installing an OS. Otherwise you can loose your files due to hardware failures, software bugs, malware or user error.
 
Old 07-28-2011, 10:51 AM   #5
CoolBeans
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
fdisk -l

So after doing the fdisk -l command it returns whit this:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbeee52c9

Device Boot Start End Blocks Id System
/dev/sda1 * 63 464951295 232475616+ 7 HPFS/NTFS/exFAT
/dev/sda2 464953344 488390655 11718656 7 HPFS/NTFS/exFAT

Disk /dev/sdb: 999.5 GB, 999501594624 bytes
255 heads, 63 sectors/track, 121515 cylinders, total 1952151552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ee963

Device Boot Start End Blocks Id System
/dev/sdb1 2048 4208639 2103296 82 Linux swap / Solaris
/dev/sdb2 4208640 46153727 20972544 83 Linux
/dev/sdb3 46153728 1952151551 952998912 83 Linux

What should I do now?
 
Old 07-28-2011, 01:26 PM   #6
CoolBeans
LQ Newbie
 
Registered: Jul 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
I ended up fixing it up by booting through a windows 7 recovery disk and fixed the mbr through that now everything is back to normal. Thanks to everybody who tried to help
 
Old 07-28-2011, 01:33 PM   #7
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,456

Rep: Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688
The fdisk output doesn't tell us which drive the files on. To find your boot files, open a terminal, log in as root user and at the prompt type: grub
This will give you a grub prompt which looks like: grub>
type: find /boot/grub/menu.lst
Check the partition listed in the output. If the files are on sdb2 it should show (hd1,0) but may show something else. Make a note as you should have only one partition showing. If it is in fact (hd1,0) then at the grub prompt enter:

root (hd1,0)
setup (hd1)
quit

Hit the enter key after each of the above individual entries. Make sure you have the correct device. I don't know what Grub will see your drive/partition as so you need to check the output carefully before proceeding. If you don't feel comfortable doing this, post the output ofthe find /boot/grub/menu.lst command here. If these commands work, you will have installed Grub to the master boot record of the external drive.

To restore windows to the mbr of your internal drive, you will need a windows installation or recovery disk if you have one. You can do aa search here at LQ for "restore mbr windows 7" as I have seen numerous posts on this here.
 
1 members found this post helpful.
  


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
Help - deleted partition: GRUB loading stage l.5, Grub loading, please wait Error 17 rokkoschik Linux - General 1 01-07-2011 05:24 AM
Grun Loading stage 1.5, Grub loading - Error 22, won't boot from bootdisk susancorless Linux - Newbie 7 12-06-2010 10:51 PM
Error 17, GRUB loading stage 1.5 milagros Linux - Laptop and Netbook 15 06-30-2009 06:28 AM
Grub loading stage 1.5 error 21. *I*A* Linux - Newbie 5 02-21-2008 02:00 PM
dual booting fedora with vista - boot error - "GRUB loading stage 2" ans Fedora 2 08-20-2007 06:12 AM


All times are GMT -5. The time now is 08:13 AM.

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