PDA

View Full Version : Help configuring Grub/Bootloader



InsertCoolName
30th June 2007, 04:50 PM
Hey guys, I am almost certain this has been discussed before, but my searches didn't yield what i was looking for, so here I am. I have a number of questions, but the first is most important. Please give me as specific instructions as possible, talk to me like I'm a child. :)

I am trying to dual-boot my system with XP (i know, i know) and F7, I wanted to boot up into windows, and the bootloader listed the option :other. Well, not good, because that boots me into my windows recovery partition.

So, how do I configure grub to allow me to boot into my regular windows partition?

My second Grub question, how do I set grub to just sit and wait for me to make a decision, instead of having to rush the keyboard during the 2-second countdown?

Here is a copy of my grub.conf ( i know that much :D ) I honestly don't know what to change to what, so please tell me what to do, and thanks in advance, fedora seems to be quite nice!


# 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,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3228.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3228.fc7.img
title Fedora (2.6.21-1.3194.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,1)
chainloader +1

SlowJet
30th June 2007, 05:40 PM
default=0 <<=== That is the number of the title entry to boot by default as zero based (0=1)

timeout=5 <<=== show default entry for 5 seconds

title other <<=== you can change that to say Windows
rootnoverify (hdo,1) <<==== that tells grub to go to another boot sector on grub disk 0 (sda mbr) and first partition to get some boot loader info (in this case windows)

Once grub goes to hd(0,1) Fedora is out of the picture and the bootloader for windows (or what ever system is there is now processing. If you are getting a 2 second delay or recovery mode in windows, look in boot.ini and see what is in there.

But I would guess that you may be referring to the loading grub stage2.img that flashes very fast (there was also a bug about this screen flashing so fast it could hardly be seen - I think it was in 64 bit).
In any case you can hit ESC at grub loading or when you see the kernel line and the fedora menu.lst
will display.

SJ

InsertCoolName
30th June 2007, 05:50 PM
okay, so default=X will automatically load number X

Now, can i turn off the timeout by turning it to zero?

Also, if the first partition if my windows partition, do I change it to HD0,2? btw, is it o as in octopus, or zero?

thanks a lot jet

SlowJet
30th June 2007, 06:38 PM
default=X will automatically load number X+1
Now, can i turn off the timeout by turning it to zero? I think so, but didn't you want a longer time?
It is a Zero.
Well, I don;t know why your windows is going into recovery mode - look in the windows boot.ini or what ever the bootloader file is for windows.

It seems like is s/b hd(0,0) not hd(0,1). Try that first. It is NOT hd(0,2) unless you are hiding the real partitioning setup (where are the lists?) :)

Sj

Ullrich
30th June 2007, 08:00 PM
(hd0,1)
The above does not represent your Windows XP partition. It represents your Windows recovery partition. That iis why you get the Windows recovery partition instead of Windows XP.

The following command will show all your partitions.
[root@ Nissanka]# /sbin/fdisk -l

Once you find the correct partition which has Windows XP, edit the configuration file.

InsertCoolName
30th June 2007, 08:59 PM
ok, here is the list I get from typing out what ullrich said


Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 486 11543 88823385 7 HPFS/NTFS
/dev/sda2 1 485 3895731 b W95 FAT32
/dev/sda3 11544 11556 104422+ 83 Linux
/dev/sda4 11557 14593 24394702+ 5 Extended
/dev/sda5 11557 14593 24394671 8e Linux LVM

Partition table entries are not in disk order


my windows system I want to boot into is sda1, the 88 gig partition.

so what number do I change other to?

again, thanks a lot, sorry it took so long to post this, i've been out of the house

by the way, thanks for helping me here, I'm liking fedora more than the other distro i tried before I installed this, it's really good. now if only I could get to my windows stuff (at least it's still there!) I hope I'm not being redundant, I just want it right.

Ullrich
30th June 2007, 09:11 PM
This is a bit confusing.
You wrote 'hda' before.
Now you write 'sda'
Usually 'sda' means you have a SATA drive and 'hda' means 'PATA' or rather 'IDE' drive.
Why did you change 'hda' to 'sda' ?
Do you have two hard drives? I mean one SATA and one PATA.
------------------------------------------------------------------------
However, I believe one of the following should contain the Windows XP.
For me the /dev/sda1 should contain Windows XP because of NTFS partition.
Just edit the configuration file and see whether it works.

/dev/sda1 * 486 11543 88823385 7 HPFS/NTFS
/dev/sda2 1 485 3895731 b W95 FAT32

hal8000b
30th June 2007, 09:20 PM
This is probably not the preferred Fedora way of doing things but become root then edit /etc/grub.conf like below:
su (password)

gedit /etc/grub.conf

# 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,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=40
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3228.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3228.fc7.img
title Fedora (2.6.21-1.3194.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Win XP
rootnoverify (hd0,0)
chainloader +1

I have renamed "other" to Win XP and set your timeout to 40, this gives you more time to decide which system to boot, default system is "0" which is Fedora
Hope that helps

InsertCoolName
30th June 2007, 09:33 PM
Ok, trying now, in the meantime, to keep the xp recovery (you never know, what the the shenanigans and goings on by local ruffian hooligan types) do I leave "chainloader +1 for both xp and recovery?

just wondering,l thanks

SlowJet
30th June 2007, 09:35 PM
Looks good,

As Ullrich pointed out grub hd(0,1) is some windows recovery parition from the oem.
It is now hd(0,0) and should work

SJ

SlowJet
30th June 2007, 09:38 PM
Ullrich,

F7 kernel uses drv moules that now have scsi code in the ide drvs.

It is about ide vs. scsi , not PATA vs. SATA.

The hd(0,0) stuff is grub's zero based drive method and does not mean anything except to grub.

SJ

InsertCoolName
30th June 2007, 10:06 PM
well, it works now, thanks a million guys!

Ullrich
30th June 2007, 10:22 PM
Great InsertCoolName. Now you fixed the problem.

Slowjet, I don't know those things have different naming system in Fedora 7.
I can't install Fedora 7. I am still trying to install it when time permits.
My thread as to Fedora 7 installation is running here.
Many people have helped me. It is a tall order. I will go on trying.

tokegee
1st July 2007, 03:51 PM
I didn't get yet. I would like to boot Windows XP as default. what I have to change in my grub.conf?
Here is my grub.conf ..

# 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,1)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3228.fc7)
root (hd0,1)
kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3228.fc7.img
title Fedora (2.6.21-1.3194.fc7)
root (hd0,1)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,0)
chainloader +1


Do I have to change chainloader and Default=value? Guide me please. Thank you!