LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-17-2005, 07:34 PM   #1
AndreiCiprian
LQ Newbie
 
Registered: Nov 2005
Location: Bucharest
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
Win XP installation and Grub


I have installed my Suse 9.2 version on a single hard disk with multiple partitions and a Win Xp OS at that time. Now due to a series of problems I was forced to format the Windows partition so as to reinstall the system.
I have set booting from cdrom first in bios and then expected to run the windows setup, yet grub starts all of the time.
I have read in the administrator's guide grub related issues. I have restored the previous MBR, yet I can't boot from the Win bootable CD.
Please help!!!
 
Old 11-17-2005, 07:46 PM   #2
chemdawg
Member
 
Registered: Jan 2005
Distribution: Mandriva
Posts: 206

Rep: Reputation: 30
I've seen this before. Rather than try to boot from cdrom first, try removing your hd (not physically) as an option for boot (in the bios). In other words, you should have only one boot device listed in your bios, and that is your CDRom. You will still be able to access your hd, just not boot from it. After you are finished, just reboot and change your bios back. Most of the time this will work.
 
Old 11-17-2005, 08:04 PM   #3
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
i had a similar if not exact same problem and i solved it by removing the makeactive line in grub.conf
 
Old 11-17-2005, 08:41 PM   #4
AndreiCiprian
LQ Newbie
 
Registered: Nov 2005
Location: Bucharest
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
the makeactive line was already removed in the /etc/grub.conf
bios boot options are:
1.cdrom
2.cdrom
3.cdrom
so your hypotheses fall

Here's a listing of the files:
/etc/grub.conf
root (hd0,2)
install /grub/stage1 d (hd0) /grub/stage2 0x8000 (hd0,2)/grub/menu.lst
quit

/boot/grub/menu.lst
# Modified by YaST2. Last modification on Fri Nov 18 02:58:28 2005

color yellow/red white/light-orange
default 0
timeout 30
gfxmenu (hd0,2)/boot/message

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
root (hd0,0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.2
kernel (hd0,2)/boot/vmlinuz root=/dev/hda3 vga=0x31a selinux=0 splash=silent resume=/dev/hda5 desktop elevator=as showopts
initrd (hd0,2)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.2
kernel (hd0,2)/boot/vmlinuz root=/dev/hda3 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0 3
initrd (hd0,2)/boot/initrd

/boot/grub/device.map
(hd0) /dev/hda

Last edited by AndreiCiprian; 11-17-2005 at 09:02 PM.
 
Old 11-18-2005, 09:01 PM   #5
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
GRUB and LILO always conflict with Windows.

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.
 
Old 11-22-2005, 12:21 AM   #6
AndreiCiprian
LQ Newbie
 
Registered: Nov 2005
Location: Bucharest
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much, yet there are still 2 minor issues:
1. I don't have a boot.ini as my WinXP system has been erased, I only have SuSe now.
2. I don't use a floppy disk
 
Old 11-22-2005, 01:44 AM   #7
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
You may have a try with sbm.bin and memdisk(google could locate them). After download, boot from grub:

kernel (hdX,Y)/memdisk
initrd (hdX,Y)/sbm.bin
boot

This will give you a chance to boot your CDROM.

----------
Just in case you cannot enter grub:

I have noticed that you can boot to LINUX, so you may update your kernel to 2.6.13.1 or later and enable the KEXEC option. Download two utilities KEXEC and GRUB4DOS, and run this way:

kexec -l grub.exe
kexec -e

this will enter the grub environment and you can boot the memdisk and sbm.bin as stated above.
 
Old 11-22-2005, 02:00 AM   #8
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
BOOTCD.IMG is an alternative to SBM.BIN. If SBM.BIN failed, you may try BOOTCD.IMG:

kernel (hdX,Y)/memdisk floppy c=80 h=2 s=18
initrd (hdX,Y)/bootcd.img
boot

Google for "memdisk c=80 h=2 s=18" to get more examples.

download link for bootcd.img:
http://blog.linuxeden.com/resserver....rce=bootcd.img
 
Old 11-22-2005, 05:22 AM   #9
AndreiCiprian
LQ Newbie
 
Registered: Nov 2005
Location: Bucharest
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
thanks a lot, i have tried to make a bootable cd option in grub but haven't succeeded.
as i was very irritated i purged the mbr to it's initial values.
too late.
i will try your alternative as soon as i get the chance.
 
Old 11-22-2005, 05:44 AM   #10
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
kernel (hdX,Y)/memdisk
initrd (hdX,Y)/sbm.bin
boot

if the size of sbm.bin is not 1.44MB, the above kernel line should be:

kernel (hdX,Y)/memdisk floppy c=80 h=2 s=18

I am sorry I am late too.
 
Old 11-23-2005, 07:58 AM   #11
AndreiCiprian
LQ Newbie
 
Registered: Nov 2005
Location: Bucharest
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Here's what I did:
I downloaded grub4dos.
Using the yast2 or yast menu in Suse I restored the MBR to the state prior to the Linux distribution install. Therefore when I boot grub doesn't start anymore. I finally managed to boot from cdrom and installed winxp.
Obviously xp started automatically. (power on self :-) )
While in xp I installed totalcommander and a plugin to view reiserfs and ext3 partitions. I backed up all my important files from Linux, archived
them,mailed them and copied them to the ntfs partitions.
I also copied the grldr and grldr.mbr files from the grub_for_dos-0.4.1pre32.tar.gz to my c:\ ntfs partition where winxp is installed. I opened c:\boot.ini and appended the following line
"C:\GRLDR=START GRUB" to the end of the file.
Now when I boot there are 2 options: XP and STARTGRUB.
When I choose STARTGRUB there I find the options in my /boot/grub/menu.lst
 
Old 11-23-2005, 07:16 PM   #12
tinybit
Member
 
Registered: Jul 2005
Location: China
Distribution: Mandriva
Posts: 84

Rep: Reputation: 15
Congratulations! Thank you for informing of the success.
 
  


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 won't load Win XP gambit9334 Linux - Distributions 5 06-14-2004 06:27 PM
how to load linux or win from GRUB after installation gone bad mario08 Linux - Newbie 24 01-17-2004 04:18 AM
Win XP + mbr + grub = >:O jclark00001 Linux - Newbie 1 02-15-2003 08:36 AM
remove grub from win xp AcidStew Linux - Software 5 12-11-2002 07:55 PM
Grub doesn't boot Win XP peterjmag Linux - General 8 05-03-2002 05:33 PM


All times are GMT -5. The time now is 10:59 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