Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-10-2003, 10:48 PM   #1
LQ Newbie
Registered: Feb 2003
Posts: 3

Rep: Reputation: 0
Lilo (MDK9.0 + WinXP) BOOT ERROR!

OK. Let me begin by saying I'm really enjoying Linux. I'm currently a C++ student, so I thought I would give the opensource world a chance =)

After many new topics on which distro to download, I went with Debian. Don't ask why. I was absolutely clueless to what I was doing, but I did manage to make it to a command prompt, but I wanted GNOME/KDE or some other desktop environment, and was looking for a distro for newbies, so I went with Mandrake 9.0. I installed Win98, then installed XP over top of it on my 80 gig harddrive (hda). I then installed Linux immediately on my 15 gig harddrive (hdb).

My problem is, I can't get into Windows anymore at all. I went with the recommended installation (as opposed to the expert installation), and it installed Mandrake with no problems. I'm typing this post while sitting in Mandrake as a matter of fact.

When I reboot my computer I come with a menu (which I assume to be LILO - I could be wrong) that has a bunch of options: linux, linux-nonfsb, windows, failsafe, floppy (not necessarily in that order). I pick linux, and it loads up KDE 3.0 fine. I later reboot and pick Windows, and then it goes to what I think is DOS< and it says Loading Windows:

And then on the next line after that is a bunch of scrambled garbage. Looks like all the weird characters from the Start->Program Files->Accessories->System->Character Map, there is about 10 of them though...and it then locks up and doesn't do anything.

I put in a boot disk, and it cd into c: and type dir, and it doesn't even list anything, and lists my harddrive as having 76gig free.

I find it hard to believe that an operating system sitting on D: somehow reformatted my C: drive.

Does anyone know how to fix this? I'm consider reformatting c:, then reinstalling my 80 gig harddrive, putting win98, then xp on it, and seeing if that will fix my problem, but that's sort of a last resort.

I'm getting really turned off by this, because I really want to learn linux, but I need windows for some programs that I have for school.
Old 02-11-2003, 08:01 AM   #2
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Your problem is that you loaded 98 (Fat32) and XP (NTFS) on the same partition. A complete reinstall of both is your only option. You can install 98 first and then use the XP partition program to make an NTFS partition and then install XP on it or install XP as FAT32. If at all possible, I would not install 98. This will overwrite your MBR but you can recover Mandrake with your install CD (F1) and rerun Lilo or make a boot floppy.

Last edited by Allen614; 02-11-2003 at 08:07 AM.
Old 02-11-2003, 09:31 AM   #3
LQ Newbie
Registered: Feb 2003
Posts: 3

Original Poster
Rep: Reputation: 0
I was under the impression that when I was loading up XP, that it gave me an option of converting the drive to NTFS or leaving it the way it was (FAT32).

Some more information on the problem. I installed 98, then picked the option of a full installation (completely deleting my old windows drive - then installing XP over it). Then it asked me did I want to convert to NTFS, or leave it alone. I picked leave it alone.

I did this 4 times, installing Linux everytime afterwards...and everytime it wouldn't work =/ BTW, before I installed Linux, I made sure I could boot into WindowsXP if that makes any difference.
Old 02-11-2003, 10:31 AM   #4
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Bane you definitely get an A+ for persistance. First make a boot floppy for ML if you haven't already. Put your XP CD in and go to Recovery Console. At the prompt type "fixmbr". It should give you a "Do you want to " say Yes. This should restore XP. Check your C to make sure it's FAT32. (XP has been known to lie.) You can still boot ML9 off the floppy. You may have to change the boot sequence in your BIOS to A,C,whatever. When you get to there we'll rebuild Lilo to the Root partition instead of the MBR and boot Linux off the "ntldr".
Old 02-11-2003, 04:42 PM   #5
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
In addition to fixmbr, run fixboot also. I agree that NTLDR is the best option if you are using two versions of Windows in addition to Linux.

This is a Red Hat site, but has some good info:
Old 02-11-2003, 05:17 PM   #6
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
This is an example using the Windows "ntldr" to boot XP,Debian,Slackware and Minslack (CLI only). I created a softlink from the /boot/image (vmlinuz or bzimage) to "/" in order to forego the pleasure of having 2 bootscreens and
booting straight to the kernel. The examples are from Slackware but they're generic. Here's an example of lilo.conf with everything commented out except the essentials.

# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
boot = /dev/hdb6
#message = /boot/boot_message.txt
#timeout = 1
# Override dangerous defaults that rewrite the partition table:
# Normal VGA console
vga = normal
# End LILO global section
# DOS bootable partition config begins

# DOS bootable partition config ends
# Linux bootable partition config begins
image = /vmlinuz-ide-2.4.18
root = /dev/hdb6
label = Slackware
# Linux bootable partition config ends

Note that the image= is not in the /boot. Run "/sbin/lilo" If you get a "Warning" that this is not the first partition. You did good. Now create your bootsect file.

root@whatever#dd if=/dev/hdb6 of=/bootsect.slk bs=512 count=1

Copy the bootsect.slk to the drive where "ntldr" and "boot.ini" reside. (Normally C)by using a dos format floppy or e-mail it to yourself.(Not my idea but it was too cool) If your Windows drive is vfat just mount the drive and copy straight to it. Then add a line to "boot.ini" Here's mine.

[boot loader]
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
C:\bootsect.dbn ="Debian"

Reboot and pic your flavor.
Old 02-11-2003, 10:32 PM   #7
LQ Newbie
Registered: Feb 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Ahhh! I'll try that, thanks. I ended up deleting and reinstalling both my harddrives and reinstalling XP for now, because I have a COBOL program due that I need to work on. I'll probably retry this weekend.

I am determined to get this to work! =p

Thanks for all your help.


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
lilo and grub won't boot winXP mshahwan Linux - Software 2 10-21-2004 07:57 PM
Need dual boot help...LILO..Winxp wont boot Scrag Linux - Hardware 2 09-01-2004 12:26 AM
triple-boot LILO XP+MDK9.2+Slack 9.1 WannaLearnLinux Linux - Newbie 45 04-06-2004 08:50 PM
lilo wont boot winxp razey Linux - Software 6 12-06-2001 08:09 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration