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 - 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 07-21-2003, 01:56 AM   #1
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Rep: Reputation: 15
Question Redhat 9, Baby!


This new Redhat is capital S-L-I-C-K...

But the inevitable has happened- I have screwed up the installation!

Redhat install went fine (as expected) but Windows XP has decided that it's too good for GRUB. Can someone help me whip this bitch into shape?

I installed RedHat 9 on disk C: (secondary hard drive, 12Gb) and found that the existing Windows XP OS (residing on primary D: drive, 40Gb) is inaccessible.

I get the graphical GRUB screen just fine at startup, with RedHat and DOS listed as options. The grub.conf settings for DOS are:

rootnoverify (hd1,0)
chainloader +


I have tried editing it to read (hd0,0) but that did not work.

The error message I get is "Error 13: Invalid or Unsupported Executable Format"

Googled that, and found incomprehensible gibberish. Nothing that could help me figure out why I can only get RedHat to boot, and not XP.

I have exhausted redhat.com installation help, to no avail. I am a little nervous, because I have a LOT of stuff on my D: drive that I don't want to lose. Can anyone help me so that I can get dual-boot up and running?

THANKS SO MUCH, TRYING NOT TO PANIC!

-N

ninjafack@hotmail.com
 
Old 07-21-2003, 02:34 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Windows likes the MBR on C, where it is. Leave windows on C. Install RedHat on D. Just switch the drives, pop in a winfloppy with fdisk and type: fdisk /mbr. Windows will now boot up. Then either boot to redhat cd, and do a upgrade only or boot to floppy and rerun grub/lilo.
 
Old 07-21-2003, 04:43 AM   #3
m9dhatter
LQ Newbie
 
Registered: Jun 2003
Posts: 20

Rep: Reputation: 1
is this the reason why is it important to install windows first then install linux? i'm a newbie. i have mandrake 9.1 and i installed win2k first then mandrake 9.1 and installed fine. i think that any attempt to reverse the process will screw up the installation since windows will just rewrite the MBR. linux, however, will just allow you to select which )S to boot through the LILO or GRUB.
 
Old 07-21-2003, 05:15 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Re: Redhat 9, Baby!

Quote:
Originally posted by opioid

I installed RedHat 9 on disk C: (secondary hard drive, 12Gb) and found that the existing Windows XP OS (residing on primary D: drive, 40Gb) is inaccessible.

ninjafack@hotmail.com [/B]
RedHat on Secondary Drive and
XP on Primary Drive

so hd0 should be XP and hd1 should be RedHat.

IF you are able to boot into Linux, can you post the output of fdisk -l.

Anyway, try

rootnoverify (hd0,0)
chainloader +1
 
Old 07-21-2003, 05:17 AM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
if you do it properly then it can be done either way, but if you read documents on dual booting they will ALWAYS suggest installing the windows OS first, but that is neither here nor there...
and just a little tip for the future:
Quote:
i installed redhat 9 on c: drive and
windows xp on d: drive..
just to start maybe getting you used to linux any way you know how you could start referring to these in a "linux sense", and i'll show you how:
hda = primary master
hdb = primary slave
hdc = secondary master
hdd = secondary slave
and to relate these to a windows sense:
hda = C:
hdb = D:
hdc = E:
hdd = F:
just a little tip for ya ;-)
 
Old 07-21-2003, 04:00 PM   #6
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Original Poster
Rep: Reputation: 15
Post re

Gentlemen,

Thanks a lot for your help. I am at work until 8pm tonight, at which time I will go home and run fdisk and post the output.

Until then, I would like to clarify that I DID install Windows XP first. Several months ago. I then installed RedHat 9 last night, and WINXP quit working.

Anyway, try

rootnoverify (hd0,0)
chainloader +1


As I stated in my original post, I did try that. No dice. Any other suggestions?


Windows likes the MBR on C, where it is. Leave windows on C. Install RedHat on D.

The MBR is on C. However, Windows is on D. Redhat is on C.


switch the drives, pop in a winfloppy with fdisk and type: fdisk /mbr.

Switch the drives? I don't understand what that means. And what does running fdisk on MBR do??


just to start maybe getting you used to linux any way you know how you could start referring to these in a "linux sense", and i'll show you how:
hda = primary master
hdb = primary slave
hdc = secondary master
hdd = secondary slave
and to relate these to a windows sense:
hda = C:
hdb = D:
hdc = E:
hdd = F:
just a little tip for ya ;-)

Actually, dr0zz, C: drive is the primary slave. D: drive is the primary master. I added the 40gb capacity hard drive (D) after the C drive was already installed. But WinXP is hda (D).

Linux is on the recently-formatted hdb.


Does that help?


~Muchas Gracias, amigos~

N*

ninjafack@hotmail.com
 
Old 07-22-2003, 01:04 AM   #7
m9dhatter
LQ Newbie
 
Registered: Jun 2003
Posts: 20

Rep: Reputation: 1
by switching drives, i think what dr0zz means is you make your D: drive a primary slave... i think. is it even possible for your C drive to be a primary slave and still boot? i always thought that MBR's should be in a pimary master drive... i'm really confused now.
 
Old 07-22-2003, 01:39 AM   #8
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Original Poster
Rep: Reputation: 15
C is booting linux just fine. You're confused? Hah.
 
Old 07-22-2003, 02:12 AM   #9
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Unfortuneatly Windows is programmed to be the 'Alpha' OS so any attempt to install Windows after installing Linux will screw up the MBR as we all have found out one way or the other. Have no fear. Linux is more then capable of dealing with this. You can simply boot to Linux and run grub-install so that it will take over the MBR again.

Last edited by Crashed_Again; 07-22-2003 at 02:14 AM.
 
Old 07-22-2003, 02:29 AM   #10
m9dhatter
LQ Newbie
 
Registered: Jun 2003
Posts: 20

Rep: Reputation: 1
Windoze was programmed not as the 'Alpha' OS but the Only OS.
 
Old 07-22-2003, 02:51 AM   #11
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Original Poster
Rep: Reputation: 15
Post menu.lst AND fdisk returns

Finally,

Got some actual data to show so I can get some help!

Thanks to everyone who has replied so far. I feel like I'm getting closer to getting Windoze back up and running, and getting more comfortable and appreciative of RedHat with every successful restart.

fdisk -l:

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

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4865 39078081 7 HPFS/NTFS

Disk /dev/hdb: 13.6 GB, 13600677888 bytes
255 heads, 63 sectors/track, 1653 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 1556 12394147+ 83 Linux
/dev/hdb3 1557 1653 779152+ 82 Linux swap



menu.lst:

# 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/hdb2
# initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title WindowsXP
chainloader = (hd1,0)+1



OK, that's what I got. Need more info to diagnose my computer's problem? Just let me know. THANKS!

N*
ninjafack@hotmail.com
 
Old 07-22-2003, 03:04 AM   #12
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Original Poster
Rep: Reputation: 15
Just now tried editing menu.lst file as follows:

root noverify (hd0,0)
chainloader+

Got the following message sequence:

"Booting 'Windows XP'"

Error 11: Unrecognized Device String


Hrm... :[
 
Old 07-22-2003, 03:42 AM   #13
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
just out of curiosity......


and assuming you havent done so.....


check your bios and see if it lets you specify which hard disk you boot to. Try changing it to the windows drive if it does have this option, thus bypassing grub and going strait into ms

its not as convient as the boot loader, but it might get you back in if the setting is there.
 
Old 07-25-2003, 01:37 AM   #14
opioid
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Ubuntu
Posts: 124

Original Poster
Rep: Reputation: 15
Wink resolution.

Well, so much for WinXP. Lost all my data, reformatted both drives *ouch* and installed RedHat 9. Hopefully it will prove more reliable, so that I don't lose all of my hard-won, irreplacable, worthless Internet shit again.
 
  


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
Baby Software ogmoid Linux - Software 8 03-27-2005 12:21 AM
HA - baby killjoy LinuxQuestions.org Member Success Stories 1 01-29-2004 11:57 AM
name my baby acid_kewpie General 34 06-02-2003 05:24 AM
baby opera... tundra General 0 01-13-2003 06:41 AM
Wooooooo Baby!!!!!!!!!!! LinuzRulz Linux From Scratch 7 02-10-2002 08:01 AM

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

All times are GMT -5. The time now is 08:28 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
Open Source Consulting | Domain Registration