LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-30-2003, 07:12 AM   #1
stever
LQ Newbie
 
Registered: May 2003
Location: Huntly, Aberdeen - Scotland
Distribution: RH9
Posts: 9

Rep: Reputation: 0
grub problems - Linux will not load from HD


Hi,

I have just installed Fedora Core1 to my laptop Sony PCG-FX701.
Fedora works great, but will only work when booting from boot floppy.
Using Grub, "first sector of the boot partition" chosen on installation
for Grub and not the MBR so as not to overwrite the WinXP MBR.

WinXP loads each time and doesn't even look at Linux

Detailed below are the disk details and grub.conf.Looked around
the WWW for info on this one, main problem seems to be that WinXP
doesn't load, mine is the other way around, can anyone help me out?

Stever
--------

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 1828 14683378+ 7 HPFS/NTFS
/dev/hda2 1829 2431 4843597+ f Win95 Ext'd (LBA)
/dev/hda5 1829 1841 104391 83 Linux
/dev/hda6 1842 2366 4217031 83 Linux
/dev/hda7 2367 2431 522081 82 Linux swap



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,4)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
# boot=/dev/hda5
default=0
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,4)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title WinXP
rootnoverify (hd0,0)
chainloader +1
 
Old 12-30-2003, 07:21 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
Grub should be installed on the MBR. You can try grub-install /dev/hda. Grub should pick up the WinXP partition ok let you boot to Linux or XP. If not, just modify the grub.conf

HTH
Baldrick
 
Old 12-30-2003, 08:03 AM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Or alternatively you can extract grub bootsector then use nt os loader to load it
boot into linux, su then do:
dd if=/dev/hda5 of=fedora.bin bs=512 count=1
copy fedora.bin to a floppy(gotta be FAT so windows can read it)
boot back in winxp, cop fedora.bin to your c:\ then add this to your c:\boot.ini(its hidden by default)
C:\fedora.bin="Fedora Core1"
 
Old 12-30-2003, 09:45 AM   #4
stever
LQ Newbie
 
Registered: May 2003
Location: Huntly, Aberdeen - Scotland
Distribution: RH9
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks guys,

Went for the first option from Baldrick.

Why is it that the instructions for RH9 and Fedora1 both say that you should choose "first sector of the boot partition" when installingand not the MBR?

Stever
 
Old 12-30-2003, 10:00 AM   #5
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
Quote:
Originally posted by stever
Thanks guys,

Went for the first option from Baldrick.

Why is it that the instructions for RH9 and Fedora1 both say that you should choose "first sector of the boot partition" when installingand not the MBR?

Stever
Because it is assuming you are installing RH9 or Fedora1 as your main operating system on a single drive machine (basic stuff) therefore your "first sector of the boot partition" would be the MBR.

rberry88
 
Old 12-30-2003, 07:00 PM   #6
stever
LQ Newbie
 
Registered: May 2003
Location: Huntly, Aberdeen - Scotland
Distribution: RH9
Posts: 9

Original Poster
Rep: Reputation: 0
Smile

Hi,

Most RH related documentation I have read so far has stated that
when dual booting with NT, 2000 or XP with Linux that the NT
Boot partition will be overwritten if you do not Configure
the 'advanced bootloader options' in doing so it confirms that
you should 'select the first sector of the Boot partition option'.
Your Windows Boot configuration will continue to operate as before.

Well it did, it missed out Linux and booted XP. When dual booting
W9x and Linux I understand that you install the boot loader in the
MBR. I had assumed that XP would be different to W9x.

Am I right in thinking that the only case you would install the
Grub boot loader on the first sector of the Linux boot partition
is when you are running a single Linux distro only.

Just another notch off the learning tree.

Thanks for your help.

Stever

Ref: RH8 for dummies
 
Old 12-30-2003, 09:00 PM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If you're running a single linux distro then you should install lilo/grub in the MBR, unless you already have a MBR which boots the bootable partition(for example the standard MBR thats installed during windows(any version) installation). That said in your case you actually could've toggled your /boot partition bootable(active) and it'll boot linux instead of windows.

AFAIK Redhat does not offer an option to install such MBR(Debian does) when you choose to install lilo/grub into the partition bootsector. If you have GRUB/LILO in your MBR then the bootable flag is irrelevent, because GRUB/LILO can boot load them regardless(Except for some operating systems which expects its partition to have the bootable flag, in that case GRUB/LILO can toggle them on the fly)

I'm not exactly sure why the documentation suggests to install the bootloader into the partition bootsector when you're dual booting, does it mention anything about toggling your /boot partition active?

Last edited by Demonbane; 12-31-2003 at 07:11 PM.
 
Old 12-31-2003, 01:02 PM   #8
stever
LQ Newbie
 
Registered: May 2003
Location: Huntly, Aberdeen - Scotland
Distribution: RH9
Posts: 9

Original Poster
Rep: Reputation: 0
The Documentation doesn't cover this at all, and happily states that it is subject to further reading.

Thanks for your help, no doubt we will be chatting again some time.

Happy new year

Stever
 
  


Reply


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
How to bypass 'Grub' after deleting the Linux partition, so that Windows XP can load? Marion D Poff Linux - Software 11 03-15-2011 03:52 PM
GRUB can't load Linux at all... help! Napalm Llama Linux - Software 1 02-09-2005 05:31 PM
How to load linux in dual boot sys(grub not running)? karfei00 Linux - General 6 06-01-2004 04:41 PM
how to load linux or win from GRUB after installation gone bad mario08 Linux - Newbie 24 01-17-2004 04:18 AM
Linux Won't load under Grub mikeyt_333 Linux - General 9 02-08-2002 08:24 AM


All times are GMT -5. The time now is 07:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration