LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-30-2005, 06:14 PM   #1
abk4523
Member
 
Registered: Jun 2004
Distribution: RH8/Fedora Core 4
Posts: 139

Rep: Reputation: 15
Unhappy FC4 dual boot error


I recently set my computer up as a dual boot system. Two drives on the same ide channel, hda is my main drive with fedora core 4, hdb a development drive with RH8. When I boot, I get an "Error 13: invalid or unsupported executable format" message. I tried changing the bios for the primary master drive to enable LBA, no help. Any ideas? Thanks in advance.
 
Old 08-30-2005, 06:30 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Just to clarify, did you have FC4 installed on hda first? Did it used to boot?
 
Old 08-30-2005, 06:45 PM   #3
abk4523
Member
 
Registered: Jun 2004
Distribution: RH8/Fedora Core 4
Posts: 139

Original Poster
Rep: Reputation: 15
FC4 was on hda first and it booted okay. After I installed RH8 on hdb, it gave me the error.
 
Old 08-30-2005, 07:01 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I would use this to restore the FC4 GRUB which should still be working.

I would boot up with the FC4 cd#1 and type: linux rescue
After it is done detecting and what-not, type: grub to get to the grub prompt.
Then, you can tell grub to use FC4 grub.conf .....
Since I don't know what partition it is on, I would use find to show me the options.
For example:
grub > grub> find /sbin/init
(hd0,0)
(hd0,4)
(hd1,1)

My FC4 is on (hd1,1) so I'll use that next

grub> root (hd1,1)
Filesystem type is ext2fs, partition type 0x83

Now, I'll tell grub to use the MBR of hda

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 d (hd0) (hd0)1+15 p (hd1,1)/boot/grub/stage2 /boot/
grub/grub.conf"... succeeded
Done.

Now, you should be able to boot FC4. When you are booted into FC4, mount the partition where RH8 is loaded and go to the /boot partition and get the grub.conf info which you can copy over to the FC4 grub.conf
 
Old 08-30-2005, 09:31 PM   #5
abk4523
Member
 
Registered: Jun 2004
Distribution: RH8/Fedora Core 4
Posts: 139

Original Poster
Rep: Reputation: 15
Thanks for the help, but I think I blew the mbr away. At the "checking" stages, I get "file not found" errors.
When I go to /mnt/sysimage/boot/grub, the files (stage1, stage2, etc) are there.
 
Old 08-30-2005, 09:43 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Can you show the results of fdisk -l

Also, just for kicks, will you run these commands:
Code:
sfdisk -d /dev/hda > file.txt
sfdisk /dev/hda < file.txt
 
Old 08-30-2005, 10:59 PM   #7
abk4523
Member
 
Registered: Jun 2004
Distribution: RH8/Fedora Core 4
Posts: 139

Original Poster
Rep: Reputation: 15
Just to clarify; Do you want me to boot to Red Hat on the second and working drive, or boot to the
Fedora Core rescue mode and run the commands? Thanks for the help.
 
Old 08-31-2005, 02:26 PM   #8
abk4523
Member
 
Registered: Jun 2004
Distribution: RH8/Fedora Core 4
Posts: 139

Original Poster
Rep: Reputation: 15
Never mind. The second drive was too small. Back to square one.
 
  


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
Dual Boot Windows XP & FC4 with FC4 already installed kt8993 Linux - General 8 10-18-2006 04:26 PM
FC4 and Windows XP Dual boot help XeroxONE Linux - Newbie 2 10-30-2005 05:58 AM
How to dual boot FC2 with FC4 kandikonda_sat Fedora - Installation 7 10-29-2005 05:26 AM
Dual Boot XP and FC4 Metal Militia Fedora 4 10-15-2005 09:31 PM
DualBoot Fail: System Rebuild: Error upon reinstalling FC4 in Dual boot config krnlkule Linux - Newbie 1 09-06-2005 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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