View previous topic :: View next topic |
Author |
Message |
Narusegawa Apprentice
Joined: 29 Jun 2004 Posts: 210 Location: Bimringham, UK
|
Posted: Sun Apr 17, 2005 2:06 pm Post subject: Grub - Missing NTLDR |
|
|
I've got a small issue with Grub, it's functional but is misleading.
I've got Gentoo on /dev/hdb(2,3,4) which is hd0 in grub due to being 1st in BIOS boot order.
I've got Windows XP on /dev/hda1 which is (hd1,0) in grub.
Grub.conf contains
Code: |
title=Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
|
And selecting this displays the above, tells me NTLDR is missing and to press anykey to restart. At which point it actually boots WinXP.
How can I stop grub doing this? I can boot both systems, but WinXP get's that error message.
BTW grub is installed in the mbr of /dev/hdb (hd0) using Code: | grub-install --no-floppy --root-directory=/boot /dev/hdb |
_________________ WARNING: It is a violation of federal law to use me in a way inconsistent with my labelling. I am dangerous to humans and domestic animals. Please avoid contact with your eyes and clothing. I should be stored out of the reach of children.
Last edited by Narusegawa on Sun Apr 17, 2005 9:10 pm; edited 3 times in total |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sun Apr 17, 2005 2:10 pm Post subject: Re: Grub - Missing NTLDR |
|
|
Narusegawa wrote: | I've got a small issue with Grub, it's functional but is misleading.
I've got Gentoo on /dev/hdb(2,3,4) which is hd0 in grub due to being 1st in BIOS boot order.
I've got Windows XP on /dev/hda1 which is (hd1,0) in grub.
Grub.conf contains
Code: |
title=Windows XP
root (hd1,0)
makeactive
chainloader +1
|
And selecting this displays the above, tells me NTLDR is missing and to press anykey to restart. At which point it actually boots WinXP.
How can I stop grub doing this? I can boot both systems, but WinXP get's that error message.
BTW grub is installed in the mbr of /dev/hda (hd0) |
You say windows is on hda1, that as far as GRUB is concerned is (hd0,0)
try
Code: |
title=Windows XP
root (hd0,0)
makeactive
chainloader +1
|
_________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
Narusegawa Apprentice
Joined: 29 Jun 2004 Posts: 210 Location: Bimringham, UK
|
Posted: Sun Apr 17, 2005 2:12 pm Post subject: |
|
|
Grubs documention states that hd0 hd1 hd2 etc are the bootable non-removable media drives in the order the BIOS boots them.
i.e. mine is
1st [CDROM]
2nd [HDD1]
3rd [HDD0]
HDD0 is /dev/hda
HDD1 is /dev/hdb
So going by the documentation, hda is hd1 and hdb is hd0.
I've already tried hd0 for WinXP to fix that, but then XP doesn't boot. (hd1,0) does boot but displays the message though. _________________ WARNING: It is a violation of federal law to use me in a way inconsistent with my labelling. I am dangerous to humans and domestic animals. Please avoid contact with your eyes and clothing. I should be stored out of the reach of children. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sun Apr 17, 2005 2:32 pm Post subject: |
|
|
Well I have 2 HD and two CDROM drives
First Harddrive is for windows
2nd HD is for linux
Code: |
jrb@Fluid ~ $ cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb1 /boot ext2 noauto,noatime 1 1
/dev/hdb3 / ext3 noatime 0 0
/dev/hdb2 none swap sw 0 0
/dev/cdrw /mnt/cdr iso9660 noauto,ro,user 0 0
/dev/dvd /mnt/dvd iso9660 noauto,ro,user 0 0
/dev/hda1 /mnt/w2k auto noauto,ro,umask=0,user 0 0
/dev/hda5 /mnt/progs auto noauto,ro,umask=0,user 0 0
/dev/hda6 /mnt/xport auto rw,noauto,user 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/usbkey /mnt/memstick vfat noatime,sync,noauto,user,exec 0 0
/dev/nikon4100 /mnt/nikon vfat noatime,sync,noauto,user,exec 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0
|
And this is my GRUB
Code: |
jrb@Fluid ~ $ cat /boot/grub/grub.conf
timeout 3
default 0
fallback 1
splashimage (hd1,0)/grub/gentoo.xpm.gz
#################
# Windows entry #
#################
title Windows2k
root (hd0,0)
chainloader +1
####################
# Gentoo #
####################
title Gentoo
root (hd1,0)
kernel (hd1,0)/boot/kernel-2.6.11-gentoo-r6 root=/dev/hdb3 video=vesafb:ywrap,mtrr,1024x768@75
|
All I was doing was spotting a difference between mine (thats works) and yours (that give errors)... _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Sun Apr 17, 2005 2:49 pm Post subject: |
|
|
First use 'rootnoverify' instead of 'root'. Are you sure you haven't damaged or moved sectors with ntldr? Try to boot from repair floppy or XP installation CD in recovery mode or whatever they called it and fix it.
I think, you shouldn't call it grub issue. The problem is the way XP boots. _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Sun Apr 17, 2005 2:53 pm Post subject: |
|
|
One more thing, XP probably uses mbr for booting when placed on first disks first partition, overwriting it while installing grub may be the reason for XP to give up. _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
Narusegawa Apprentice
Joined: 29 Jun 2004 Posts: 210 Location: Bimringham, UK
|
Posted: Sun Apr 17, 2005 9:09 pm Post subject: |
|
|
I may have tried root (hd1) from a grub shell once by mistake. Which would overwrite the MBR of the Windows Driver. I'll try fixmbr on the Windows Drive and see if that works.
Also I was using rootnoverify, I forgot to include that. Doh.
I'll post back once I find my XP Recovery CD to run fixmbr
--
PS : I've amended my first post to include that change. And I meant /dev/hdb not /dev/hda when I said I installed grub to it. _________________ WARNING: It is a violation of federal law to use me in a way inconsistent with my labelling. I am dangerous to humans and domestic animals. Please avoid contact with your eyes and clothing. I should be stored out of the reach of children. |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon Apr 18, 2005 4:40 pm Post subject: |
|
|
[url]I'll post back once I find my XP Recovery CD to run fixmbr [/url]
fixmbr will kill grub, so you'll only be able to boot windows.
try this for windows:
Code: | title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1 |
_________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|