LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub jamming when windows selected (https://www.linuxquestions.org/questions/linux-newbie-8/grub-jamming-when-windows-selected-118558/)

nikd 11-21-2003 12:51 PM

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.

fancypiper 11-21-2003 01:12 PM

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

nikd 11-21-2003 01:14 PM

sorry...it was already (0,5), i edited it to make it (0,4) ill try changing the chainloader..thanks

nikd 11-21-2003 01:18 PM

nope...no go, should i try installing windows again on the 3rd partition?

fancypiper 11-21-2003 01:25 PM

Have you changed something since grub was first installed?

Post the output of:

fdisk -l

nikd 11-21-2003 02:16 PM

[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.

fancypiper 11-21-2003 02:35 PM

Did Windows ever boot after your install? Post your /boot/grub/grub.conf file.

nikd 11-21-2003 04:00 PM

# 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 :)

fancypiper 11-21-2003 04:21 PM

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. :confused:

Gentoo's Installing a bootloader

nikd 11-21-2003 11:15 PM

er...whats the command to set the bootable flag?...thanks :)

fancypiper 11-22-2003 01:42 AM

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):



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