LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-30-2005, 10:52 AM   #1
Lee Barker
Member
 
Registered: Jan 2005
Location: London
Distribution: Fedora 6
Posts: 31

Rep: Reputation: 15
Restoring Windows with a GRUB bootloader


Hi,

I went straight into wiping my Windows XP installation with SUSE 9.3. However due to the acquisition of another PC I would like to revert back to using Windows on the aforementioned.

Trouble is that, despite having the CD-ROM drive as the primary boot, the GRUB bootloader will not read the Windows installation CD and fires up the Linux again.

I tried disabling the Hard-drive in case it forced a CD boot but the PC just gave an bootup error.

Other threads that I found are mainly related to dual-boot which is not what I'm after. Any takers?

Kind Regards.
Lee.
 
Old 10-30-2005, 11:01 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
This is weird!

If the CD drive is first in bootorder and the CD is bootable, grub should not come up. When grub is loaded, the BIOS already switched to HDD as boot device. So I guess it's some kind of a BIOS problem and not related to grub. However, to get rid of grub, you may find this link interesting:
http://portal.suse.com/sdb/en/2002/0...tall_grub.html

BTW: I don't think it is easily possible to make grub boot from CD. You better try to make your BIOS doing the job.

Last edited by abisko00; 10-30-2005 at 11:03 AM.
 
Old 10-30-2005, 11:07 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,893

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
It seems that the BIOS is not polling the CDROM before the hard drive. It's going directly to the hard disk, where grub is written to the MBR, and booting Linix.

Check the BIOS settings to verify that the CD will be polled before the hard drive.
 
Old 10-30-2005, 12:20 PM   #4
Lee Barker
Member
 
Registered: Jan 2005
Location: London
Distribution: Fedora 6
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for the speedy replies.

I thought the same with regards to the BIOS. However on my machine my BIOS menu reads:

1st Boot - SM-TSSTcorpCD/DVDW TS
2nd Boot - PM-ST3160021A (the hard-drive)
3rd Boot - Generic USB SD Reader
4th Boot - IBA 4.1 Slot

So it seems that the BIOS is set to what is suggested. Also (I forgot to mention) if I put the Novel SUSE CD ROM in the drive I am asked if I want to install the OS - so it does read the drive.

I guess my question ought to be why it happily boots a Linux installation CD but not Windows.

Thanks again,
Lee.
 
Old 10-30-2005, 12:26 PM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Did you check the Windows CD in another computer? Can you hear the CD drive spinning up? Maybe you need to press a button at some stage.

I don't know why, but maybe grub indeed prevents the CD from booting properly. In this case you could try one of the floppy-based methods from the above link to remove grub from the MBR.
 
Old 10-30-2005, 12:28 PM   #6
Eerath
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.9, SimplyMEPIS 3.3.2, Mandrake 10.1, SUSE 10.0, Windows 2000 Pro, Windows XP Home + Pro
Posts: 138

Rep: Reputation: 15
Your installation media is probably damaged. That's the trouble with Windows... you can't download an ISO when the CD dies...
 
Old 10-30-2005, 12:41 PM   #7
Lee Barker
Member
 
Registered: Jan 2005
Location: London
Distribution: Fedora 6
Posts: 31

Original Poster
Rep: Reputation: 15
I have been a little slow spotting this but ....

My cheap and cheerful PC - which shares DVD and CD facilities in one drive - is only looking for DVD's.

SUSE 9.3 ships with both DVD and CD methods. It is the DVD that responds and not the CD media. My Windows media is only CD.

I guess if I copy my Windows CD to a DVD that should do the trick. Is there a way of getting the CD functionality back - I don't really want to part with any cash for a portable burner.

Lee.
 
Old 10-30-2005, 12:50 PM   #8
chemdawg
Member
 
Registered: Jan 2005
Distribution: Mandriva
Posts: 206

Rep: Reputation: 30
Quote:
Originally posted by Lee Barker
I have been a little slow spotting this but ....

My cheap and cheerful PC - which shares DVD and CD facilities in one drive - is only looking for DVD's.

SUSE 9.3 ships with both DVD and CD methods. It is the DVD that responds and not the CD media. My Windows media is only CD.

I guess if I copy my Windows CD to a DVD that should do the trick. Is there a way of getting the CD functionality back - I don't really want to part with any cash for a portable burner.

Lee.
I have never heard of this. Occasionally I have seen PC's that would not boot from CD even after changing the BIOS settings to do so. What works in that case is to remove the hard drive option from the bios boot settings, so that the only boot option is has is the CD. This always works for me.
 
Old 11-01-2005, 05:54 PM   #9
Lee Barker
Member
 
Registered: Jan 2005
Location: London
Distribution: Fedora 6
Posts: 31

Original Poster
Rep: Reputation: 15
You are right Chemdawg, my previous posting has proven to be wrong. My Xandros Linux DVD isn't being recognised. This makes me very confused now because my SUSE 9.3 DVD is still being recognised and read at boot time.

Is it at all possible for an Operating System to intefere with a Computer's BIOS? Why is only the SUSE DVD being recognised and not the Xandros DVD - or Windows CDs?

I thought that BIOS settings were held by the Read-Only Memory. Perhaps there is a small segment of hard-disk reserved for this purpose? I'm not sure.

I have tried every BIOS combination available and I don't relish contacting Emachines as they'll probably say I shouldn't have wiped Windows in the first place.

Regards,
Lee
 
Old 11-01-2005, 07:52 PM   #10
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,291

Rep: Reputation: Disabled
well I never actually made a menu item for cd to boot as well I have never had such a bios issue.

I have not tried this but if you don't mind putting this extra menu and report if it succeeds I will get around to it as well

menu boot the ms cd heh heh
root (cd)
chainloader +1

(2) I would like to interfere with your bios setup as well......
it looks like you have a primary and slave so they are both on the one ide controller.

why can't you have optical on primary controller 1 (or 2)
and hard drive on primary controller 2 (or 1) as it looks like the other device is an IBM network option and usb are both not read off an ide controller

(3) altho you don't say so.....you do need to check all of those dvd and cds in other computers in case they were incorrectly burnt, would you report that pls?
 
Old 11-04-2005, 12:59 AM   #11
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,291

Rep: Reputation: Disabled
my menu for the cd is a big fail......the grub cdr still works cos I occassionally use it....see my tut how to burn your own kernel to cdr and the syntax works (but only thru the bios already booting the cdr)

hmm, I am not sure why the absolute path of this type
kernel (cd)/pathway on cdr/vmlinuz root=etc works but the root command
root (cd) gives me an error.

I thought initially I might get away with a better device map file but when you see my device map in the tut you will or hopefully will agree that the device command has to be issued BEFORE you attempt funny stuff and I am guessing that means for the cdr to read the device map file (if at all) the bios has to be able to boot a bootable cd and ooops that not a solution for Lee.

so I had a bopeep at grub2 to see how that looks but it does not appear to be reiserfs friendly yet so looks like I wait.
 
Old 11-18-2005, 10:33 PM   #12
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
GRUB and LILO always conflict with Windows. And GNU GRUB is not so robust, causing many problems during boot.

So try GRUB for DOS please. It is a cross-platform boot loader based on GNU GRUB. The GRUB.EXE can be started from DOS/Win9x; and GRLDR can be started from BOOT.INI of Windows NT/2K/XP/2003; and even more, the GRUB.EXE can be started from LINUX via the KEXEC tool.

By using GRUB.EXE or GRLDR, you don't have to touch your MBR. It is the safest way coexisting with DOS/Windows.

You needn't install GRUB for DOS. Just run GRUB.EXE from DOS, or append a line of "C:\GRLDR=START GRUB" into your BOOT.INI(restart and select the "START GRUB" menu item), that will do.

Download GRUB for DOS here: http://freshmeat.net/projects/grub4dos/

There is a fat12grldr.img file with the GRUB for DOS release. You can create a GRUB bootable floppy with this fat12grldr.img file.

Or, you can just copy GRUB.EXE to your DOS floppy and run GRUB.EXE to enter the GRUB environment.

If the system has no DOS/WINDOWS, you may use the bootlace.com utility to write GRLDR boot record onto the MBR.
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
restoring fedora 3 bootloader pcandpc Linux - Newbie 8 05-16-2005 10:18 PM
how to hide GRUB bootloader while booting a duel boot system ( linux/windows ) ? dommini Linux - General 0 12-03-2003 03:48 AM
help booting windows on Suse 8.2 Grub bootloader intenseprod Linux - Newbie 1 07-27-2003 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 PM.

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