LinuxQuestions.org
Visit Jeremy's Blog.
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 02-18-2006, 05:10 PM   #1
meslowinski
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora
Posts: 11

Rep: Reputation: 1
Dual Boot - Windows XP and FC4


I recently installed FC4 on a second disk drive. Windows XP resides on the first disk drive by itself. I followed the FC4 install and chose to install GRUB on the MBR. After successful installation, I rebooted the system as requested. I never received the GRUB menu to select which OS to boot. It went directly into booting Windows XP. Why?
I then booted from the linux rescue CD and ran grub-install to place GRUB on the second disk drive with Linux FC4. I changed the BIOS boot order to place the second drive before the first drive in the process.
I rebooted and received the GRUB menu with both the FC4 and XP options to boot. If I select the FC4 option , it starts to boot and I receive the following msg 'Error 17 - Cannot mount selected partition'. If I select the XP option, it starts to boot and then I receive the following msg 'Error 13 - Invalid or unsupported executable format'.
I am using a boot partition as noted in the grub.conf. Any assistance would be greatly appreciated.
 
Old 02-18-2006, 06:45 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
As always, Google.

Put grub back in the promary disk. Go to Fedora, and add following to the grub configuration:
Code:
title           Microsoft Windows XP Professional
root            (hd0,0)
savedefault
makeactive
chainloader     +1
Where in (hd0,0) the hd0 is the first disk in the PC, and the second 0 represents the parttition number. e.g. partition 2 on the first disk would be (hd0,1).

You may also need to increase the "timeout" settings.
 
Old 02-18-2006, 07:19 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,941

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
That's not very helpful - the OP already said the (initial) primary disk just boots to XP.
I'd suspect your grub.conf has the disks the wrong way round now you are booting the Linux disk. First up I'd try putting the disks back and re-installing grub to the MBR of the XP disk. It obviously didn't work the first time.

If you still have problems post your grub.conf, map file if you have one, and the output of "fdisk -l" (that's ell, as in list).
 
Old 02-19-2006, 05:34 PM   #4
meslowinski
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora
Posts: 11

Original Poster
Rep: Reputation: 1
Dual Boot - Windows XP and FC4

I changed my BIOS settings back to booting from the first drive first and then the second drive. I tried to install GRUB on the MBR of the first drive with this command:

grub-install /dev/hda

I received the following message:

"/dev/hdb1 does not have any corresponding BIOS drive"

How do I capture the output of the commands

cat grub.conf
fdisl -l

so I can post it to this thread.

All help is greatly appreciated.
 
Old 02-19-2006, 06:03 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,941

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
You should be able to use the FC4 CD to boot into your installed FC system on the hard-disk. As I don't do FC, I can't help there.

Another option is Knoppix - runs entirely from the CD, won't touch your disk, and has great hardware detection.
Go get a copy and boot that - it will be able to see all your partitions, and will allow you to connect to the net as well.
Well worthwhile always keeping a copy handy.
 
Old 02-20-2006, 04:29 PM   #6
meslowinski
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora
Posts: 11

Original Poster
Rep: Reputation: 1
Knoppix

I was able to get Knoppix running successfully. Thanks for the advice.

I then opened the terminal program (shell) to issue the requested commands
and this is what I received:


knoppix@1[knoppix]$ cat grub.conf
cat: grub.conf: No such file or directory
knoppix@1[knoppix]$ fdisk -l
Cannot open /dev/hda
Cannot open /dev/hdb
knoppix@1[knoppix]$ fdisk -l
Cannot open /dev/hda
Cannot open /dev/hdb
knoppix@1[knoppix]$ fdisk

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...

All help is greatly appreciated.
 
Old 02-20-2006, 04:52 PM   #7
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
im not sure how to fix this, but you might have done your install using lvm for partitioning, and i think that makes your grub configuratioins a bit different then they would be normally.
 
Old 02-20-2006, 05:22 PM   #8
meslowinski
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora
Posts: 11

Original Poster
Rep: Reputation: 1
Partitions

I figured out how to logon as the root user. This is the output I received:


knoppix@1[knoppix]$ sudo su
root@1[knoppix]# fdisk -l

Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 19928 160071628+ 7 HPFS/NTFS

Disk /dev/hdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 19929 159975270 8e Linux LVM

All help is greatly appreciated.
 
Old 02-22-2006, 12:02 AM   #9
meslowinski
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora
Posts: 11

Original Poster
Rep: Reputation: 1
Resolution

I reinstalled FC4 and then issued the following commands to
resolve the bootloader problem:

chroot mnt/sysimage
grub-install --recheck /dev/hda

Thanks for all your help.
 
  


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
Dual Boot Windows XP & FC4 with FC4 already installed kt8993 Linux - General 8 10-18-2006 05:26 PM
Ethernet in windows won't work after dual boot with FC4 BobNutfield General 7 01-18-2006 06:10 AM
FC4 dual boot with Windows 2000 lindows Fedora 2 12-09-2005 10:20 AM
FC4 and Windows XP Dual boot help XeroxONE Linux - Newbie 2 10-30-2005 06:58 AM
Windows, FC4 dual boot problems ZeroIdea Fedora 3 10-26-2005 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration