LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GRUB - fedora core 1 (https://www.linuxquestions.org/questions/linux-newbie-8/grub-fedora-core-1-a-263945/)

rockster8 12-08-2004 04:15 AM

GRUB - fedora core 1
 
I just installed fedora and it seems to work fine. i just couldn't get grub to display windows as an option to choose between OS's.
since this is a Newbie section, i can get to ask the stupidest questions. HEH.
so how do i do this?
i read stuff about adding this to my grub.conf file:

title Windows XP
rootnoverify(hd0,0)
savedefault
makeactive
chainloader +

thing is, i dont even know where my windows is in my hd? any way to check this..?

sorry i'm dumb! :D

specs:
Toshiba Satellite A70
HD: 40 GB
Mem: 512 MB
Display: WXGA TFT 1280x800

jax8 12-08-2004 04:19 AM

edit your grub.conf file

It is found in the directory

/boot/grub/grub.conf

Add the above to the bottom of this file and reboot the computer, then you should see the windows option.

If this does not work we need some more information, particularly

how many hard disk drives do you have in your computer. And which one did you install windows on and which did you install linux on

If there is only one, the above will work.

rockster8 12-08-2004 04:23 AM

i'm not too sure what you mean by "add the above"
which one?
I only have one hard drive, btw

these are the things in my grub file:

# grub.conf generated by anaconda
# ....
# ....
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptlsmp)
root (hd0,1)
kernel /vmlinuz-2.4.22-1.2115.nptlsmp ro root=LABEL=/ hdc=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptlsmp.img
title Fedora Core-up (2.4.22-1.2115.nptl)
root (hd0,1)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title Windows XP
rootnoverify(hd0,0)
savedefault
makeactive
chainloader+

jax8 12-08-2004 04:32 AM

yep

What happens when you reboot

Do you see the Windows XP option

rockster8 12-08-2004 04:35 AM

yup i did! i got an error when i click on it though.. this is what's in my screen

Booting 'Windows XP'

savedefault
makeactive
chainloader +

Error 1: Filename must be either an absolute pathname or blocklist

Press any key to continue...

rockster8 12-08-2004 04:50 AM

i managed to find the command to display the hd info:

fdisk -l


Code:

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device    Boot          Start        End          Blocks          Id        System       
/dev/hda1                          1      3544      28467148+    17        Hidden HPFS/NTFS
/dev/hda2      *            3545      3557          104422+      83        Linux
/dev/hda3                    3558      4750      9582772+      83        Linux
/dev/hda4                    4751      4864        915705          f          Win95 Ext'd (LBA)
/dev/hda5                    4751      4864        915673+        82        Linux swap


jax8 12-08-2004 05:50 AM

try this

title Windows XP
rootnoverify (hd0,0)
chainloader +1
makeactive
boot

rockster8 12-08-2004 05:57 AM

hi, i tried doing taht and when i chose Windows XP,

Booting 'Windows XP'

chainloader +

Error 1: Filename must be either an absolute pathname or blocklist

Press any key to continue...

:(

jax8 12-08-2004 06:02 AM

ok rockster8

just did a google search and make sure the is no space between the + sign

chainloader+1

No spaces between chainloader, +, and 1

rockster8 12-08-2004 06:05 AM

ok cool thanks!
now i passed error 1.
onto error 8:

Booting 'Windows XP'

makeactive
boot

Error 8: Kernel must be loaded before booting

Press any key to continue...

jax8 12-08-2004 06:12 AM

try just

title Windows XP
rootnoverify (hd0,0)
chainloader +1




also post your grub file again.

and is windows installed on /dev/hda1 (the NTFS partition)

rockster8 12-08-2004 06:23 AM

weird..
now the windows xp option is gone..

jax8 12-08-2004 06:23 AM

post the grub.conf file

rockster8 12-08-2004 06:27 AM

Code:

# 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/hda3
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptlsmp)
        root (hd0,1)
        kernel /vmlinuz-2.4.22-1.2115.nptlsmp ro root=LABEL=/ hdc=ide-scsi rhgb
        initrd /initrd-2.4.22-1.2115.nptlsmp.img
title Fedora Core-up (2.4.22-1.2115.nptl)
        root (hd0,1)
        kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi rhgb
        initrd /initrd-2.4.22-1.2115.nptl.img
title Windows XP
        rootnoverify(hd0,0)
        chainloader+1

this is what it gives me when i do fdisk -l
Code:

[root@localhost grub]# fdisk -l
 
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
  Device Boot    Start      End    Blocks  Id  System
/dev/hda1            1      3544  28467148+  17  Hidden HPFS/NTFS
/dev/hda2  *      3545      3557    104422+  83  Linux
/dev/hda3          3558      4750  9582772+  83  Linux
/dev/hda4          4751      4864    915705    f  Win95 Ext'd (LBA)
/dev/hda5          4751      4864    915673+  82  Linux swap

yes, windows is installed in hda1

jax8 12-08-2004 06:30 AM

are you sure you have not windowsXP option when you reboot?

rockster8 12-08-2004 06:32 AM

quite sure.
that was when you told me to just use

title Windows XP
rootnoverify (hd0,0)
chainloader +1

jax8 12-08-2004 06:37 AM

that should not make a difference.

If you add a title tag it should be there no matter what.

Try rebooting and checking again, make sure the file is saved

rockster8 12-08-2004 06:46 AM

okay well now the "Windows XP" line works.
however when i choose that option, my screen blacks out for 0.5 seconds and goes back to the GRUB screen.
weeird...

edit:
actually, in that blackscreen, i saw some text:

Booting 'Windows XP'

and that's about it.. and it automatically returns to GRUB screen


All times are GMT -5. The time now is 09:37 PM.