LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fixing Windows Installation after Mandrake (https://www.linuxquestions.org/questions/linux-newbie-8/fixing-windows-installation-after-mandrake-154103/)

suwandy_chandra 03-06-2004 04:03 AM

Fixing Windows Installation after Mandrake
 
I have just install a new Linux Mandrake 9.2 on my machine today. There was a previous installation of Windows XP before it.
My computer hard disk drive state is currently :
1. Drive C : Linux Mandrake 9.2
2. Drive D : Windows XP Pro
3. DRive E,F,G : Just for files
I know it sound a bit weird that I installed my Windows on Drive D instead of on a drive C. But I was doing a dual boot also on Win98( which was previously on DRive C:). Since I no longer use win98 and I wanted to use LInux for a change, I formatted the whole drive C. It appears that the bootloader for windows xp and win98 was sitting right on drive C that I had formatted. Now, after installing Linux Mandrake, I couldn't get myself back to Windows.
What should I do to fix this?
Any help and advice would be greatly appreaciated

lucky pressure 03-06-2004 04:19 AM

have you tried to activated drive d:?

Baldrick65 03-06-2004 04:24 AM

I think you can boot from the WinXP CD and restore the windows bootloader, but then you'll have to re-run lilo to set it up again.

Baldrick

Demonbane 03-06-2004 04:24 AM

See if this bootdisk helps
http://www.demonbane.org/xpboot.img
To write to it to a floppy:
Code:

dd if=xpboot.img of=/dev/fd0

pablob 03-06-2004 04:58 AM

OK, for w2000, what I used to do was to begin the installation process until the point where it asks permission for installing files ( of course avoiding formatting). At that point, the install program used to have written down the win boot loader.
You should have a linux rescue disk prior to this, because you may lost linux boot loader.

So my sequence would be (always keeping LILO, the linux boot loader on MBR and not on the first partition):

w2000 cd "pre"install
linux boot disk
on linux prompt run lilo.

This should get you a LILO menu which will offer you an entry for WXP.

AND ALL OF THIS ONLY IF F**NG W XP WORKS LIKE W2K, which is something I'm not wanting to know as at last I abandoned Windows world.

Andrakus 03-06-2004 07:14 AM

Just boot from the windows xp cd, enter recovery console, and type fixboot, that will fix the boot on the MBR, and now you can enter windows. I recommend using partitions programs like partition magic to clean the hard discs from linux partitions.

suwandy_chandra 03-06-2004 08:14 AM

To Demonbane : I've tried your xpboot.img and try to boot it up. However, I'm given the following message afterwards.
PHP Code:

Windows couldn't load since one of the following files have been missing.
C:\Windows\system32\ntoskrnl.exe
Please reinstall a copy of it ...blah blah 

Do I just load windows up as what all the other replies told me to and let it install the bootloader and then stop the installation? (I'm not exactly sure how it works though)

Demonbane 03-06-2004 01:44 PM

can u do a "fdisk -l" and post the output?

suwandy_chandra 03-06-2004 03:50 PM

Um, since your disk took me directly to the windows boot, I tried using my own WinME startup disk. the "fdisk -l" returns "parameter format not correct - -l.

suwandy_chandra 03-07-2004 03:03 AM

And um, what is this Lilo rescue disk means? Do you mean the bootdisk created when we set our bootloader?

Andrakus 03-07-2004 07:19 AM

mmmm if you boot from the windows xp cd, you will try to install it.. but ypu can also enter the recovery console without installing a thing, and in the recovery console you can fix the boot..

sorry if i am not clear.

Demonbane 03-07-2004 07:24 AM

I actually meant doing it in Linux

fixboot or fixmbr etc in recovery console will do you no good, if you want to use the winxp CD do a repair installation.

suwandy_chandra 03-07-2004 07:28 AM

hi, the same thing happened in Linux, it also returned 'command not found'.

Demonbane 03-07-2004 08:26 AM

/sbin/fdisk -l

motub 03-07-2004 08:40 AM

I have done almost this exact thing-- removed a Win 98 installation that was on C:\, changing my triple-boot to a dual-boot-- but I'll go you one better by having moved the Win 2K system root from D:\ to C:\ as well ;) .

You could try booting to the recovery console from the XP CD, log in as administrator, and type /fixmbr to restore the Windows bootloader, but unless you have a Mandrake floppy disk, you would be unable to boot into Mandrake to fix LiLO, except by booting with the Mandrake recovery disk (CD 1 of the install disks) and using their recovery disks to reinstall LiLO.

However, there's a good chance that even after all that, Windows wouldn't boot. At least, it didn't when I tried it that way and the only solution was that which Demonbane gave. You will most likely need to do a repair installation. It is possible that XP is different from 2K in this respect, but I doubt it.

Start the install, and when you get to approximately the third confirmation that you intend to install, XP will notice that you have a current installation and will ask if you want to make a new install, or repair the current one. Choose "repair". If Windows does not find your previous installation, then your install is somehow so borked that you need to do a full reinstall anyway, so the whole thing is fairly foolproof (as long as you have any important files on the system root drive backed up ;) ).

If XP, like Win2K, also does not change the system root to C:\ instead of leaving it at the annoying D:\ (when there is in fact no C:\ any longer), instructions for how to do so (for Win2K in any case) can be found at 223188 - HOW TO: Restore the System/Boot Drive Letter in Windows on the Microsoft Knowledge Base.

Hope this helps.


All times are GMT -5. The time now is 06:24 AM.