LinuxQuestions.org
Help answer threads with 0 replies.
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-27-2008, 06:33 AM   #1
sethnap
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
grub windows boot error


hello
i am new to linux
my problem is I have two hard disks and one has windows XP
now I have installed fedora 9 on the other disk with dual boot
but at GRUB boot loader when I select windows, it starts and this appears

title Windows XP
rootnoverify (hd1,0)
chainloader +1

then a cursor blinks thats it nothing happens

and also when I remove fedora disk and try to start XP it gives error as
grub boot disk error

what should i do I want XP first I have some data to back up
 
Old 07-27-2008, 06:43 AM   #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
If you can boot fedora, go to terminal as root and get your 'fdisk -l'. I suspect you have changed your hd boot order. Did you disconnect one of the drives when you installed fedora? If not try

title Windows XP
rootnoverify (hd0,0)
chainloader +1
 
Old 07-27-2008, 07:02 AM   #3
sethnap
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks larry for the reply

I have this output fir fdisk -l

Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00021f8e

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 2575 20482875 83 Linux
/dev/sda3 2576 2830 2048287+ 82 Linux swap / Solaris
/dev/sda4 2831 19457 133556377+ 5 Extended
/dev/sda5 2831 6478 29302528+ 83 Linux
/dev/sda6 6479 11342 39070048+ 83 Linux

Disk /dev/sdb: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x45284527

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sdb2 3825 19456 125564040 f W95 Ext'd (LBA)
/dev/sdb5 3825 8923 40957686 7 HPFS/NTFS
/dev/sdb6 8924 14022 40957686 7 HPFS/NTFS
/dev/sdb7 14023 19456 43648573+ 7 HPFS/NTFS

and I did not remove any disks when I installed fedora
only after i installed fedora and cannot boot windows I removed disk 1 with fedora in it and tried to boot windows with
grub boot disk error
 
Old 07-27-2008, 07:52 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,638

Rep: Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091
Put everything back and modify /boot/grub/grub.conf (I think Fed0ra still use this) to:
Code:
title Windows XP
rootnoverify (hd1,0)
map (hd0,hd1)
map (hd1,hd0)
chainloader +1
 
Old 07-27-2008, 01:33 PM   #5
sethnap
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
hello

I tried ur suggestion and write this
title Windows XP
rootnoverify (hd1,0)
map (hd0,hd1)
map (hd1,hd0)
chainloader +1

to the grub file
now its giving error like this

rootnoverify (hd1,0)
map (hd0,hd1)
error 11: unrecognized device string

then cursor blink
 
Old 07-27-2008, 02:12 PM   #6
sethnap
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
thanks syg00

I got it resolved

map command goes like this

title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
 
Old 07-27-2008, 04:24 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,638

Rep: Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091
Sorry about that - my bad. Was late at night, but I should have been more careful.
 
Old 08-02-2008, 12:13 PM   #8
andraska
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
sort of the same problem

Hi Sethnap,

I'm having sort of the same problem like yours, and I wanted to know what steps you took after you installed Fedora 9.

I have XP in /dev/sda and Fedora in /dev/sdb, and my GRUB loader is in /dev/sdb1 (/boot folder in /dev/sdb).

After this and following some advices in some of the forums here I did the following after installation:

I started Fedora in rescue mode, and at the prompt I typed the following:

chroot /mnt/sysimage
mount - msdos /dev/fd0 /mnt
dd if=/dev/sdb1 of=/mnt/boot.lnx bs=512 count=1
umount /mnt

Then, started Windows and copy the file boot.lnx in my A: drive to C:boot.lnx. I changed the boot.ini file to append at the end:
C:\boot.lnx="Fedora"

Then I rebooted, and when I get the OS list and select Fedora I just get a blinking cursor. I've tried changing the grub.conf and now I get the "GRUB hard disk error".

Anyway, I wanted to check if you did any of the above steps at all. I've going crazy trying to have this dual boot working!!

Thanks for any help!
 
Old 08-02-2008, 01:47 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,267

Rep: Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370Reputation: 1370
Here's a site that explains how to do the same, pretty similar to what you did but minor differences that might make the difference:
http://www.linux.com/articles/113945
Let us know if it works or if you have other problems.
 
Old 08-02-2008, 02:49 PM   #10
warpuck
LQ Newbie
 
Registered: May 2008
Location: michigan
Distribution: ubuntu
Posts: 9

Rep: Reputation: 0
I know a lazy way

I have used lilo and grub. They make my head hurt. I run DOS, Kunbutu, Ubuntu, Gentoo and XP. Why DOS? I guess its because I still drive a '88 LSC MKVII, 94 Ranger, 95 Katana and 90 Suzuki Samari and they all live in the same garage. Actually XP and Vista,,, not that easy to use with grub. The chainloader syntax can be a royal pain.

The lazy way is to use Acronis disk director. Downside parting with $50 and putting in 25 digit activation code. Then the that thing with windows crashing hard. True image is another $50.

CHEAPER Way
A hardware solution is a USB harddrive. If your computer will boot from a USB device that way works fine. I found this out after I bought Acronis. Linux can be configed to work on more than one computer. Changing moboards, video cards, NICs... are no problem with LINUX as long as it is 32bit OS, natually a 64bit Intel and a 64bit AMD dont interchange, no backwards compatable either. Let windows drive live inside the computer by itself, it needs the extra thruput anyway.

There is always more than one way, sometimes you just have try them all, because you can.
 
Old 08-02-2008, 11:32 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,638

Rep: Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091Reputation: 2091
Quote:
Originally Posted by andraska View Post
I'm having sort of the same problem like yours
Actually you have a completely different problem - you are trying to use the M$oft loader to dual boot. A very different scenario.
Quote:
and my GRUB loader is in /dev/sdb1 (/boot folder in /dev/sdb).
did you specifically install grub into the partition boot sector record ???. This is not the same as having the stage files in that partition (in /boot or anywhere else).
Quote:
... select Fedora I just get a blinking cursor. I've tried changing the grub.conf and now I get the "GRUB hard disk error".
Sounds like ou allowed Fedora to install to the MBR of the second disk. This means that the record you dd'd isn't complete.

Open your own thread for your problem rather than hijacking this one. That way people can concentrate on helping you through - we'll need some info from your system.
 
Old 08-03-2008, 11:45 PM   #12
andraska
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
reverse solution

I ended up switching the hard disks, so Fedora is now in the master and XP in the slave, and now it's all working fine. I edited the grub.conf to match sethnap's config and I was able to boot Fedora and XP without problems. Thanks!
 
  


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 error 22 <linux uninstalled, windows wont boot> Snow Keld Linux - Newbie 3 05-08-2008 09:01 AM
Grub 1.5 Error 21 when installing Debian/Windows dual-boot VinceIP Debian 15 01-30-2007 04:13 PM
dual boot - Grub won't boot Windows on /windows/D partition biosol SUSE / openSUSE 9 04-09-2006 08:14 PM
Dual boot Linux with Windows: Grub Error 17 Veniogenesis Linux - Newbie 3 10-23-2005 09:41 AM
Triple Boot Fedora C2 and Suse and windows = big grub error maneeshsethi Linux - Software 6 10-07-2004 04:03 PM


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