LinuxQuestions.org
Review your favorite Linux distribution.
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 04-07-2008, 05:38 PM   #1
bluebob951
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Rep: Reputation: 0
grub stage 1.5 error


ok i am running ubuntu gusty 7.10, and i want to get rid of the linux program because it does not work anymore, i need to find a way to get rid of the grub error but i still want to be able to run windows, i am also running 2 hdds, please help! the error after grub stage 1.5 is 21

IF i get a new hard drive and reinstall windows would the error be gone?

Last edited by bluebob951; 04-07-2008 at 05:39 PM.
 
Old 04-07-2008, 05:55 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by bluebob951 View Post
ok i am running ubuntu gusty 7.10, and i want to get rid of the linux program because it does not work anymore, i need to find a way to get rid of the grub error but i still want to be able to run windows, i am also running 2 hdds, please help! the error after grub stage 1.5 is 21
Grub error 21:Selected disk does not exist. This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.

http://www.gnu.org/software/grub/manual/grub.html

Grub numbers hard drives by relative number. Have you recently removed a hard drive or rearranged your hard drives? Whatever happened, you need to go into Ubuntu's file called /boot/grub/menu.lst and fix the hard drive addresses in Grub.

Quote:
Originally Posted by bluebob951 View Post

IF i get a new hard drive and reinstall windows would the error be gone?
If you reinstall Windows then Windows will install its own bootloader instead of Grub and the problem will be fixed in the sense that you will then be able to boot into Windows but you won't be able to boot into Ubuntu.

--------------------
Steve Stites
 
Old 04-07-2008, 06:32 PM   #3
bluebob951
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
thanks i did remove a hdd, and the error was 17 i think but i will try that, o wait but my ubuntu does not work any more so should i reinstall it
 
Old 04-07-2008, 06:55 PM   #4
pono
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
You don't have to reinstall Ubuntu. You can use the installation CD in rescue mode or use a Live CD. Chroot to your Ubuntu installation and from there you can repair your grub configuration.
 
Old 04-07-2008, 06:58 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
Reinstalling Ubuntu would fix the problem but there are simpler ways to solve the problem. You can fix the problem by making changes in the file /boot/grub/menu.lst. The first thing to do is to find out what your hard drive addresses are.

Boot the Ubuntu install CD and go into recovery mode or rescue mode. Then issue the command:

fdisk -l

That will list all of your hard drives and their partitions. Please post that list here.

---------------------
Steve Stites
 
Old 04-07-2008, 07:40 PM   #6
bluebob951
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
ok well i will do that later

Last edited by bluebob951; 04-07-2008 at 07:43 PM.
 
Old 04-07-2008, 07:42 PM   #7
bluebob951
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
how do you get rid of linux without getting the grub error?
 
Old 04-07-2008, 07:53 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,054

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
All you need to do is re-install the M$oft boot-loader to the MBR; boot the Windoze install CD/DVD
- if XP (or Win2K), get into recovery console and run fixmbr
- if Vista, use bootrec.exe from "repair your computer". See the M$oft support site for an article on this.

Last edited by syg00; 04-07-2008 at 08:47 PM. Reason: typo
 
Old 04-07-2008, 10:33 PM   #9
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: MX
Posts: 5,132

Rep: Reputation: Disabled
we do not know your setup.

You mention you have 2 drives and you wanted to get rid of a linux program....you mention you removed a drive.

I am guessing drive 0 had windows on it and second had linux?

But both drives have their own mbr...and it is bios boot order searching for a bootable partition that determines what happens next.

so put all drives back in before you follow syg00 advice please...and with no change to bios boot order.....to ensure what was previously the troublesome mbr bootloader thingee..is the one overwritten.

if you leave one drive out....you may find it already has the ntldr bootloader but you have not told us what was what.

so if you are still having troubles please advise what is on each drive and what is the bios boot order.

2) linux live cds are very good at checking your partitions and whether or not a partition has a bootable flag on it.

if you like to play with linux...I suggest you play with a live cd first pls
 
Old 04-08-2008, 07:28 PM   #10
bluebob951
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
my hdd 0 is xp and hdd 1 is ubuntu, and my boot order is cd drive, hdd 0, hdd 1, dvd drive if that helps any
 
Old 04-08-2008, 08:17 PM   #11
aus9
LQ Guru
 
Registered: Oct 2003
Distribution: MX
Posts: 5,132

Rep: Reputation: Disabled
good thanks for that.

now do you want to dual boot, or get rid of linux?

dual boot....read my signature....its best to use a live cd to edit the hd1 drives /boot/grub/menu.lst because I have little faith in automatic tools designed by humans.

to get rid of linux you just re-install your xp bootloader links as per syg00 post
 
Old 04-09-2008, 02:28 AM   #12
bluebob951
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
ok thanks i fixed grub and i am dual booting now, and i am happy with it.
but can i remove the extra boot files, like on the boot list like liunx, linux recovery,linux memory test, windows xp, windows xp recovery
 
Old 04-09-2008, 05:56 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,054

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
It's just a text file - easy to edit. Then you can delete the associated files.
A word of caution however - I find it always pays to have two kernels; the immediate previous one (hopefully known to work), and the latest update. That recovery entry is the only way to see the messages if you get an error that stops boot - don't remove it.
 
  


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
GRUB Stage 1.5, Error 22 Michael AM Linux - Newbie 5 02-19-2008 08:16 AM
GRUB stage 1.5 error 17 Makosgaming Linux - General 2 08-23-2007 03:14 AM
Grub error 16 in stage 1.5 corkypa Linux - Software 5 04-18-2006 02:18 AM
new harddisk - grub error 22 at stage 1.5 oskar Linux - Hardware 2 03-05-2006 02:32 PM
HD Grub Stage 2 Read Error jmw83 Linux - Newbie 13 06-07-2004 07:51 PM


All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration