LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-21-2003, 12:51 PM   #1
nikd
Member
 
Registered: Sep 2003
Distribution: redhat 9
Posts: 37

Rep: Reputation: 15
grub jamming when windows selected


i jus reinstalled winblows and linux. this is how my hdd is partitioned.
hda1 - Linux
hda2 - extended
hda5 - swap
hda6 - ntfs
hda7 - no filesystem

now hda7 isnt formatted cuz i wanted it in ntfs when i loaded up windows after installing it and installing linux. i installed XP first, did the first boot. rebooted and started installing linux. fedora release 1. my grub line for windows says

rootnoverify (hd0.4)
chainloader +1

i tried changing the 4 to anything else and it says illegal command. i guess im being daft about this but i havent a clue what to do. thanks for your time.
 
Old 11-21-2003, 01:12 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
See if this works

title=Windows XP
root (hd0,5)
chainloader (hd0,5)+1

Installing a bootloader

If not, post the output of:

fdisk -l

Last edited by fancypiper; 11-21-2003 at 01:16 PM.
 
Old 11-21-2003, 01:14 PM   #3
nikd
Member
 
Registered: Sep 2003
Distribution: redhat 9
Posts: 37

Original Poster
Rep: Reputation: 15
sorry...it was already (0,5), i edited it to make it (0,4) ill try changing the chainloader..thanks
 
Old 11-21-2003, 01:18 PM   #4
nikd
Member
 
Registered: Sep 2003
Distribution: redhat 9
Posts: 37

Original Poster
Rep: Reputation: 15
nope...no go, should i try installing windows again on the 3rd partition?
 
Old 11-21-2003, 01:25 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Have you changed something since grub was first installed?

Post the output of:

fdisk -l
 
Old 11-21-2003, 02:16 PM   #6
nikd
Member
 
Registered: Sep 2003
Distribution: redhat 9
Posts: 37

Original Poster
Rep: Reputation: 15
[root@localhost root]# fdisk -l

Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 829 6658911 83 Linux
/dev/hda2 830 2431 12868065 f Win95 Ext'd (LBA)
/dev/hda5 830 956 1020096 82 Linux swap
/dev/hda6 957 1912 7679038+ 7 HPFS/NTFS
/dev/hda7 1913 2431 4168836 e Win95 FAT16 (LBA)
[root@localhost root]#

yeah...i had edited the grub.conf with gedit to add the acpi=on argument to make my laptops battery meter work.
 
Old 11-21-2003, 02:35 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Did Windows ever boot after your install? Post your /boot/grub/grub.conf file.
 
Old 11-21-2003, 04:00 PM   #8
nikd
Member
 
Registered: Sep 2003
Distribution: redhat 9
Posts: 37

Original Poster
Rep: Reputation: 15
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Fedora
root (hd0,0)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi rhgb acpi=on
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title Windows XP
rootnoverify (hd0,5)
chainloader (hd0,5)+1

windows? after installing linux...the first time i tried it gave this error...been trying to debug it ever since. thanks dude for helpin me out
 
Old 11-21-2003, 04:21 PM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I am out of ideas unless the bootable flag needs to be set for XP (use fdisk to toggle the bootable flag, and I have no experience with XP, btw) to run.

I haven't been able to get Windows98 happy unless it is installed on the first primary partition. I thought XP was more flexible and the guy that wrote the Gentoo instructions have it installed at the same place as you do.

Gentoo's Installing a bootloader
 
Old 11-21-2003, 11:15 PM   #10
nikd
Member
 
Registered: Sep 2003
Distribution: redhat 9
Posts: 37

Original Poster
Rep: Reputation: 15
er...whats the command to set the bootable flag?...thanks
 
Old 11-22-2003, 01:42 AM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Run fdisk and then use a:
Code:
Sat Nov 22 02:40am fancy@tinwhistle ~$ su -
Password: 
Sat Nov 22 02:40am root@tinwhistle ~ # fdisk /dev/hda

The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help):
 
  


Reply



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: Selected Disk Does not Exist Ekpyrotic Linux - General 51 01-23-2009 04:15 AM
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - General 5 08-19-2006 07:47 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - Laptop and Netbook 1 07-16-2004 04:34 PM
Grub SuSe, XP, Redhat Error 17: Cannot mount selected partiton hrg Linux - General 1 07-16-2004 09:14 AM

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

All times are GMT -5. The time now is 04:17 AM.

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
Open Source Consulting | Domain Registration