Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-14-2004, 09:59 PM   #1
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
grub windows problems

Hey, I'm trying to boot windows from my windows hard drive (secondary master, hdc) using grub and it ain't working. The error I get when I select windows while booting from grub is:

Booting 'windows'

root (hd1, 0)
Filesystem type unknown, partition type 0x7
chainloader +1
The Linux hard drive is Primary Master (hda)

The windows entry in my /boot/grub/menu.lst looks like this:
title windows
root (hd1,0)
chainloader +1
Any ideas? Thanks.
Old 02-14-2004, 10:21 PM   #2
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
try changing "root (hd1,0)" to "rootnoverify (hd1,0)" that should prevent grub from trying to read the partition.
Old 02-15-2004, 01:19 AM   #3
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
here is my grub.conf file

I had the same problem when I upgraded to Windows XP
This seems to work though

# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img

title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img

title Windows XP
# as far as I can understand it the Windows XP hard disk hd1
# needs to think it is the first disk on the IDE bus in order to boot
# so do a swap and add the following two commands to change it
map (hd0) (hd1)
map (hd1) (hd0)
# you then need to tell grub which hard disk and which partition to read the booting information from
# although you have done a swap using the above commands the disks don't change their labelling
# so use hd1,0 as the root device (in grub all numbering starts at zero)
# the telltale to knowing which partition to add to the rootnoverify option
# is the output of fdisk -l the `*' on /dev/hdb1 showing it's the active or boot partition
rootnoverify (hd1,0)
# now tell grub that you are going to be doing an indirect boot using an external chainloader
# i.e it's going to grab the Windows boot code and run it instead
# of directly loading the linux kernel like it usually does.
chainloader +1
# not sure exactly what makeactive does
# I'm assuming it is marking the root partition you specified
# with the rootnoverify command as the active or boot partition
# if it isn't already marked as the `*' or boot partition
Old 02-15-2004, 05:36 PM   #4
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Original Poster
Rep: Reputation: 30
ok I tried just changing it to rootnoverify last night, but that didn't work. It just came up with:

Booting 'windows'

rootnoverify (hd1, 0)
chainloader +1
I'll try jax8's suggestions in a little while...


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 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
SuSE 9.1 and Windows Xp refuse to live in harmony: error loading windows through GRUB sanctumtacete Linux - Newbie 3 10-19-2004 07:47 AM
Problems booting Windows XP with Grub Amuro-Ray2020 Linux - Newbie 9 09-10-2004 10:49 AM
Dual Windows XP and Red Hat 9 Grub Problems jonsmel Red Hat 10 01-29-2004 09:12 AM
Boot windows 98,windows XP and linux by GRUB Swift&Smart Linux - General 6 02-22-2003 09:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration