LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-25-2007, 02:02 PM   #1
Arma12
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: SUSE 10.2 64 bit and XP Media Centre 2005
Posts: 5

Rep: Reputation: 0
"Error booting operating system" Repairing GRUB. SUSE 10.2 and XP dual boot


Hey

I have installed SUSE 10.2 on a partition and I was getting the error "Error booting operating system" if trying to boot from hardisk but if the SUSE dvd was in I could boot SUSE and XP. So I Google'd the problem and went into the repair section of the SUSE installation and tried to repair GRUB but got error 21
Code:
Error 21:Selected disk drives does not exist
grub ->setup --stage2=/boot/grub/stage2 (hd0) (hd 1,0)

Error 21:Selected disk drives does not exist
grub >quit
After various trys at repairing GRUB I managed to get the SUSE boot loader showing once selecting boot from SUSE dvd but Windows XP does not show in that boot selector anymore.

I need to be able to boot GRUB (or any boot loader) off hardisk and select whether to boot XP or SUSE with needing to load the SUSE DVD first.

Many thanks


Arma12

Last edited by Arma12; 01-25-2007 at 02:32 PM.
 
Old 01-25-2007, 02:29 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I'm not sure but it sounds like you have problems with your XP MBR (Master Boot Record). Did you install your Suse after XP. You may need more help than I can give but if you have a way of repairing your MBR in XP try that and if XP will boot on restart there are a lot of articles in Suse forums on grub configure. Use the search at the top of this page.
 
Old 01-25-2007, 02:33 PM   #3
Arma12
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: SUSE 10.2 64 bit and XP Media Centre 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Ok thanks Larry Webb. I will load up XP install CD and try and repair MBR from repair console. Once XP is booting how will I get SUSE working again?
 
Old 01-25-2007, 04:09 PM   #4
Arma12
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: SUSE 10.2 64 bit and XP Media Centre 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Ok I tried fixing MBR and it did not work. So I now have my hardrive frshly formatted with SUSE 10.2 only and still get "Error loading operating system" when booting without DVD. This is a 64bit installation.

I have bought a new 320gb hard drive to put XP/Vista on and will dual boot that way so for now I wanna fix this damn error.
 
Old 01-25-2007, 06:28 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You're going to need more help than I can give, I don't understand why you can't get your XP to work, or if XP isn't on the hd why Suse doesn't work. If you downloaded the Suse and burned the disk yourself did you check the disk(s) for errors?
 
Old 01-26-2007, 02:44 AM   #6
Arma12
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: SUSE 10.2 64 bit and XP Media Centre 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I still get the same error when trying to install GRUB to the master boot record.

Code:
Error 21:Selected disk drives does not exist
grub ->setup --stage2=/boot/grub/stage2 (hd0) (hd 1,0)

Error 21:Selected disk drives does not exist
grub >quit
Can anyone guide me on how-to download the latest (2. something?) and install.
 
Old 01-26-2007, 06:52 AM   #7
jasondodd
Member
 
Registered: Mar 2006
Distribution: OpenSuse 10.2
Posts: 42

Rep: Reputation: 15
Sounds like your partition structure is messed up to me. I had similar problems.

Best thing you can do is do a clean install of windows, then come back with suse.

I got the exact same error you did time after time when trying to install dual boot suse until I realized I was checking the wrong box on the boot loader configuration page during the install process. Make sure you check the radio button for the top selection (dev/HDA MBR) and not the radio button for the bottom most selection on the grub installtion page where you manually enter a partition name.


Good luck
 
Old 01-27-2007, 09:46 PM   #8
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 166

Rep: Reputation: 24
use a live cd (system rescue cd is a good one) and use fdisk check your partitions (careful not to commit unnecessary changes)
 
Old 01-27-2007, 10:34 PM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
There are quite a few articles on downloading Suse 10.2 in Suse forums, just use the search engine at the top of the page. If you don't have a broadband connection like I did you may want to do as I did and buy a dvd from one of the internet stores which you can find by using google and enter the words Suse 10.1 or go to one of the on line auction sites.

Last edited by Larry Webb; 01-27-2007 at 10:36 PM.
 
Old 01-28-2007, 10:00 AM   #10
Arma12
LQ Newbie
 
Registered: Jan 2007
Location: UK
Distribution: SUSE 10.2 64 bit and XP Media Centre 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I already have a downloaded DVD (64bit) of SUSE 10.2

I am not trying to dual-boot now, just keep my installation of SUSE and get it booting without DVD.
 
Old 01-28-2007, 01:04 PM   #11
jasondodd
Member
 
Registered: Mar 2006
Distribution: OpenSuse 10.2
Posts: 42

Rep: Reputation: 15
I still see something that does not look right in your grub config...I dont think you should have any references to hd(1,0), that would imply the first partition on a second physical hard drive. If partitioning a single hard drive, MBR should be in hd(0,0) with the boot sector of your linux install in hd(0,1 or 2 or something)

You other experts tell if I'm seeing this right. I'm pretty sure that somehow, your not getting grub installed to the hda MBR.

I just looked at mine, it's a laptop where the hard drive is actually recognized as sda, sda1, etc.

I had to select the bottom selection on this machine "Custom Boot Partition" and select /dev/sda in the dropdown box for mine to work. If I selected "boot from master boot record", I got the same error you did and usually corrupted the partition tables. Sorry for the confusion, I was mixing it up with my desktop machine and the settings I used for it. I bet if you try that it will work.

good luck
 
Old 01-28-2007, 04:26 PM   #12
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
Thumbs up suse & xp dual boot problems

XP needs to boot from the first hard disk, but can you fool it in GRUB. It doesn't matter what Linux you use.

For a normal dual boot with windows on the first physicall drive you would see some like this in GRUB:
Code:
title Windows XP Home
      rootnoverify (hd0,0) ,
      makeactive 
      chainloader +1
The (hd0,0) indicates the first partition on the first physical drive. If you have a recovery partition, like my Acer laptop, then the XP partition might be the second in which case use (hd0,1). Linux would label the first partition hda1

If XP is on first partition of the second physical drive the the GRUB entry would look like this:
Code:
title Windows XP Home
      rootnoverify (hd0,0) , 
      map (hd0) (hd1)
      map (hd1) (hd0)
      makeactive 
      chainloader +1
The two map lines fool the XP bootloader into thinking it is on the first drive.

There is a comprehensive Wiki on Grub for Suse here. From my experience it is always best to put the Grub boot loader on the first partition of the first hard drive, and edit it by hand when you add 2nd or 2rd bootable OS's.

Last edited by sadiqdm; 01-28-2007 at 04:28 PM.
 
  


Reply



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
SUCCESS STORY: "Error loading Operating System" at end of BIOS bootup ToBe LinuxQuestions.org Member Success Stories 14 08-14-2016 10:31 AM
"Error loading operating system" upon first reboot after install Unforgiver Linux - Newbie 4 01-03-2012 03:42 AM
"Error loading operating system" in WinXP dual boot saskee Ubuntu 1 02-03-2006 02:24 PM
Dual boot XP/FC2 probs aftter FC2 install - "cannot find operating system" bcal Fedora - Installation 4 01-30-2005 03:38 PM
"Operating system not found", problem with the motherboard/GRUB Loader maybe?? brynjarh Linux - General 3 12-14-2004 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:42 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
Open Source Consulting | Domain Registration