LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 11-02-2008, 07:36 PM   #1
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Rep: Reputation: 36
More Fun With Grub!!!


The long and the short: I installed XP, then Fedora, now grub doesn't come up and neither does anything else.

This is what happened: Output of fdisk:
Code:
[fedora@localhost ~]$ su -
[root@localhost ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1c9a1c99

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       19456   156280288+   7  HPFS/NTFS

Disk /dev/sdb: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0258783b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2              14         274     2096482+  82  Linux swap / Solaris
/dev/sdb3             275       19457   154087447+  83  Linux

Disk /dev/sdc: 400.0 GB, 400088457216 bytes
16 heads, 63 sectors/track, 775221 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x03268276

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1      775221   390711352+   7  HPFS/NTFS

Disk /dev/dm-0: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
[root@localhost ~]# 
Originally, I had 32bit XP on /dev/sda1 w/ a slave drive for storage on /dev/sdc1. These are both SATA drives. I then decided to dual boot between Fedora 9 and 64bit XP, so I added an EIDE drive from another computer - /dev/sdb. I formatted /sdb with NTFS so it would hold some files during the install. I formatted /dev/sda1 and installed XP. The install went fine, and so I copied the contents of /dev/sdb1 back over to /dev/sda1. Now /dev/sdb could be blown away for Fedora.

At this point, I installed 64bit Fedora 9 on /dev/sdb. I put /boot on /sdb1, swap on /sdb2 and the rest of the install on /sdb3. I installed grub on /dev/sdb1. I reboot and get:
Code:
NTLDR is missing
Press Ctrl+Alt+Del to restart
This is the current contents of /grub/grub.conf - (after I've screwed with it, of course):
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,0)
#          kernel /vmlinuz-version ro root=/dev/sda3
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.25-14.fc9.x86_64)
        root (hd1,0)
        kernel /vmlinuz-2.6.25-14.fc9.x86_64 ro root=UUID=5c137789-e149-4b68-a317-9b2235e224ed rhgb quiet
        initrd /initrd-2.6.25-14.fc9.x86_64.img
title XP64
        rootnoverify (hd0,0)
        chainloader +1
So, I type this into grub:
Code:
grub> root (hd1,0)
root (hd1,0)
 Filesystem type is ext2fs, partition type 0x83
And then, I type this:
Code:
grub> setup (hd0)
setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"...  23 sectors are embedded.
succeeded
 Running "install /grub/stage1 d (hd0) (hd0)1+23 p (hd1,0)/grub/stage2 /grub/grub.conf"... succeeded
Done.
I reboot and get the same NTLDR missing error. Should I install Fedora on /dev/sda instead?
 
Old 11-02-2008, 08:13 PM   #2
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Original Poster
Rep: Reputation: 36
asdfasdf

Ok, this is quite interesting. I redid those grub commands - now grub loads and I can start up Fedora 9. When I choose XP, it gives me the NTLDR error.

OH, blarg, it looks like NTLDR is fubared. Anyone know how to fix it? I have the option of reinstalling.
 
Old 11-02-2008, 08:50 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Are you seeing the bootsplash ??. Because if you are, you may have splattered that XP partition. fixboot might work, might not; do it from recovery console of the XP install CD.
 
Old 11-02-2008, 08:52 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How come you have your splashimage on (hd0,0) and Windows on the same partition?

Are you sure Windows is on (hd0,0)?
 
Old 11-02-2008, 09:10 PM   #5
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Original Poster
Rep: Reputation: 36
asdasdf

Well, XP is on /sda1. That would be (hd0, 0), right?

I didn't set the splash image location. But I changed it to (hd1,0), that should work. Now that you mention it, when grub comes up, there IS no splash image.

But I'll try fixboot.

-=[EDIT]=-
/dev/sda1 IS mountable and all the data is there.

Last edited by Galaxy_Stranger; 11-02-2008 at 10:18 PM. Reason: l;kj;lk
 
Old 11-03-2008, 12:41 AM   #6
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Original Poster
Rep: Reputation: 36
asdfff

Ok - there were a couple files missing from the root directory of the XP drive and these were the instructions:
Code:
copy e:\i386\ntldr c:\
                  copy e:\i386\ntdetect.com c:\
And that was it. I guess grub zapped those files or something.

I can switch between Fedora and XP just fine, but there's one thing that's bugging me. The fdisk results I posted here were when I was using the Fedora 9 live cd. The results now have the Fedora drive as /dev/sda and the XP drive as /dev/sdb. Don't know if this is a problem...and right now i don't really care... ;-p

Go fish.
 
  


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
<fun> The Windows Crash </fun> Simon Bridge General 6 08-26-2007 07:46 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Fun with grub rbochan Debian 5 06-19-2005 12:34 PM
fun with grub and ntfs canman Linux - Software 1 06-28-2004 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 04:46 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