LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 03-06-2003, 11:28 AM   #1
chadmichaelss
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Rep: Reputation: 0
dual boot problem / partion table ?


Hello.



A newbie friend (so some of the details are second hand) has set up XP and RedHat 8.0 together; at first he just let XP have the MBR and used a boot floppy to boot to linux.

He had the system working with XP on the first partion (NTFS); Linux defaultly set up in a boot partion and a root partion; he then added an extended partion with a single FAT32 logical partion to use as a swap space between XP and LINUX.

NOW THE TRICKY PART: he said that he found and ran some program in linux that was supposed to make it possible to boot to another OS -- I don't think it was lilo from talking to him; and I have no idea what it might have been but it seems to have crashed and left the partion table a bit of a mess. XP wouldn't boot directly from the MBR after this; he can still boot via floppy to red hat so that's not a problem. we used sfdisk to look at the partion table and sure enough the XP partion wasn't active any more; we changed that and it seemed to be ready to boot and indeed almost did; but then it crashed with a FATAL SYSTEM Error becuase it couldn't find something. When we boot in from the XP instal disk, we find that WIndows, though it is booting to the correct partion as we marked active, is still viewing that partion (though it began booting) as inactive and calls it F: while it calls the empty and logical FAT32 partion C: -- obviously this is why it has the fatal system error.

Can anyone give me advice as to what might be wrong with the partion table and how to fix it? Why didn't windows recognize the hda1 drive as C: if we marked it as active, and even the MBR recognized it as active???

Please Help
Chad
 
Old 03-06-2003, 02:25 PM   #2
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
I'm not very versed in XP but I think this will work if you have the XP install CD. If so I would try to replace the damaged ntldr and ntdetect.com files by copying the files from the XP CD using the COPY command. HOW? Boot with the XP CD and enter the Recovery Console. At the Command Prompt typereplace 'X' with your cd-rom drive letter).

COPY X:\i386\NTLDR C:
COPY X:\i386\NTDETECT.COM C:

Then install LILO so you can have a graphical menu to select which partition to boot.
 
Old 03-06-2003, 04:09 PM   #3
philsta
Member
 
Registered: Feb 2003
Location: Bath England
Distribution: Fedora Core 5, Slackware 10.2
Posts: 38

Rep: Reputation: 15
If he can get a win98 boot floppy, boot from it without cd support and at the prompt type fdisk/mbr then reboot. He should go straight into XP then and still be able to use the boot floppy for Linux. Tell him to give GRUB a go for multi booting as it seems to work really well. I don't know about the sharing of a swap space for both XP and Linux though as Linux uses a type 82 file system for this and XP can't read that!!!!
 
Old 03-06-2003, 04:23 PM   #4
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
You can easily get a 98 boot floppy from here Bootdisk.com
 
Old 03-06-2003, 04:37 PM   #5
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
You can remove lilo from the mbr with
/sbin/lilo -u
You can remove grub or lilo from the mbr by booting with a Windows 98 boot floppy (at the prompt, type fdisk /mbr), or by using the Windows XP Recovery Console.
 
Old 03-06-2003, 05:49 PM   #6
chadmichaelss
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I have some questions regarding the boot floppy and fdisk/mbr solution. First of all, it seems that the problem isn't the mbr to me; it seems to be getting into the boot sector of the NTFS partion, at which point it is past the mbr??? Am I misunderstanding something?

What exactly does fdisk/mbr do to the mbr?
 
Old 03-06-2003, 06:19 PM   #7
philsta
Member
 
Registered: Feb 2003
Location: Bath England
Distribution: Fedora Core 5, Slackware 10.2
Posts: 38

Rep: Reputation: 15
How does he know it's not the mbr? He's only using a boot disk!!! fdisk/mbr will restore a windows mbr and allow you to boot straight into WinX, it will kill anything else living there though so you'll have to restore LILO, GRUB or any other boot loader you're using. By trying this he's not loosing anything and may not have to result to re-installing XP, it also only takes a min or so, so it's a bit of a no brainer really
 
Old 03-06-2003, 06:20 PM   #8
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
The command fdisk /mbr removes any bootloader installed in the master boot record and restores it to Window's (up to 98 SE at least) idea of what it should contain.
Quote:
First of all, it seems that the problem isn't the mbr to me; it seems to be getting into the boot sector of the NTFS partion, at which point it is past the mbr??? Am I misunderstanding something?
I don't know, myself as I abandoned Windows at 98 SE and I have no experience with NTFS Windows flavors. I was responding to this:
Quote:
he said that he found and ran some program in linux that was supposed to make it possible to boot to another OS
If everything worked correctly up to this point, he must have installed it to the mbr.

Does the bootloader screen come up? Does the bootloader give any error messages? Will the bootloader load Linux but refuse to load Windows?

Can you get it to boot to Windows/diagnose the problem using the Windows XP Recovery Console?

Very specific questions with lots of details help diagnosis of problems.

Last edited by fancypiper; 03-06-2003 at 06:24 PM.
 
Old 03-06-2003, 06:46 PM   #9
chadmichaelss
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Are you all saying that XP writes exactly the same thing to the MBR as the win98 version of fdisk would write to it?

Also, the system crashes after XP has started to boot; meaning, the XP splash screen has already come on. I don't know that this means that its still not in the mbr code, but if it is still in the mbr code, then isnt it different than what the win98 version of fdisk would write to the mbr?
 
Old 03-06-2003, 07:05 PM   #10
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Here are some Windows help sites I have had recommended to me:

Windows BBS
Computing.net
Annoyances.org
Microsoft's Computer Management

Last edited by fancypiper; 03-06-2003 at 07:06 PM.
 
Old 03-06-2003, 07:07 PM   #11
camlinux
Member
 
Registered: Feb 2003
Location: north dakota
Distribution: Gentoo, Debian
Posts: 90

Rep: Reputation: 15
fdisk /mbr with a 98 book disk works fine for Windows XP.
 
Old 03-07-2003, 10:32 AM   #12
chadmichaelss
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the help; I'll try several things and get back if there's some success; again, thinks for the help; i've got plenty of leads to follow for a while
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ext3 partion corrupts with RH8/CentOS 4 dual boot simonb Red Hat 1 05-31-2005 04:29 AM
Dual Boot Partition Table inescapeableus Linux - Software 1 10-23-2004 04:44 PM
redhat 9 partion reducing on dual boot xp akurtis Red Hat 1 08-02-2004 02:29 PM
Incorrect partion table andrewgates1979 Linux - Hardware 0 07-11-2004 04:33 AM
partion table problems core 2 nandish Fedora 1 06-05-2004 11:49 AM


All times are GMT -5. The time now is 05:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration