LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-06-2004, 05:03 AM   #1
suwandy_chandra
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian & Mandrake
Posts: 44

Rep: Reputation: 15
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
 
Old 03-06-2004, 05:19 AM   #2
lucky pressure
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
have you tried to activated drive d:?
 
Old 03-06-2004, 05:24 AM   #3
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
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
 
Old 03-06-2004, 05:24 AM   #4
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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

Last edited by Demonbane; 03-06-2004 at 06:01 AM.
 
Old 03-06-2004, 05:58 AM   #5
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHAS, Kubuntu, Solaris, TRU64
Posts: 381

Rep: Reputation: 31
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.
 
Old 03-06-2004, 08:14 AM   #6
Andrakus
LQ Newbie
 
Registered: Mar 2004
Location: Chile
Distribution: Mandrake, Gentoo
Posts: 7

Rep: Reputation: 0
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.
 
Old 03-06-2004, 09:14 AM   #7
suwandy_chandra
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian & Mandrake
Posts: 44

Original Poster
Rep: Reputation: 15
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 couldnt load since one of the following files have been missing.
C:Windowssystem32ntoskrnl.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)
 
Old 03-06-2004, 02:44 PM   #8
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
can u do a "fdisk -l" and post the output?
 
Old 03-06-2004, 04:50 PM   #9
suwandy_chandra
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian & Mandrake
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 03-07-2004, 04:03 AM   #10
suwandy_chandra
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian & Mandrake
Posts: 44

Original Poster
Rep: Reputation: 15
And um, what is this Lilo rescue disk means? Do you mean the bootdisk created when we set our bootloader?
 
Old 03-07-2004, 08:19 AM   #11
Andrakus
LQ Newbie
 
Registered: Mar 2004
Location: Chile
Distribution: Mandrake, Gentoo
Posts: 7

Rep: Reputation: 0
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.
 
Old 03-07-2004, 08:24 AM   #12
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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.

Last edited by Demonbane; 03-07-2004 at 08:27 AM.
 
Old 03-07-2004, 08:28 AM   #13
suwandy_chandra
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Debian & Mandrake
Posts: 44

Original Poster
Rep: Reputation: 15
hi, the same thing happened in Linux, it also returned 'command not found'.
 
Old 03-07-2004, 09:26 AM   #14
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
/sbin/fdisk -l
 
Old 03-07-2004, 09:40 AM   #15
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
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.

Last edited by motub; 03-07-2004 at 09:41 AM.
 
  


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
Need help fixing PERL installation chriswoo Suse/Novell 1 04-01-2005 04:04 AM
PLEASE HELP. I ruined windows booter while fixing GRUB Frelov Linux - Newbie 3 03-12-2005 10:05 AM
Fixing windows from Linux Janneman Red Hat 2 11-14-2004 11:35 AM
Fixing windows in linux squishy Linux - Newbie 2 05-07-2004 03:34 PM
mandrake 9.1 fixing tweaking kernel JUDOLIZARD Linux - Newbie 4 12-15-2003 04:30 PM


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