Share your knowledge at the LQ Wiki.
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 09-28-2004, 06:21 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
XP -- boot.ini

Hello, I am not sure if anyone will be able to help me as I have asked many people who are not very familiar with this area. Anyway here it goes. I run windows XP on a laptop which was duel booted with Suse(school laptop) and by default it used the windows bootloader to choose between these.

I am still new to linux but feel more comfortable working with Mandrake so wiped the linux partition(s) in Computer Management/Disk Management and installed Mandrake 10.0. I am now using the linux bootloader, Lilo, but the windows bootloader was still coming up after choosing to log into windows so I cleared the boot.ini file. Fortunately this works but it does produce an error (INVALID boot.ini file) which is only up for about a second before it boots into windows.

This error doesn't cause any problems but its still there for that split second and perfectionist in me wants to fix it. So my questions I guess would be what would happen if I delete the boot.ini file? will my windows partition be cooked? I cant use fdisk to get into this to repair the file if it is and will have to get it re-imaged. Are there are series of files that need to be erased/edited? Do I have to change any registry entries?

Anyway thanks for any help someone is able to provide me, I would appreciate it

Old 09-28-2004, 06:27 PM   #2
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
you can make a new boot.ini file with you note pad and save it as boot.ini to the root of C:, but, on a dual boot youll need linux to handle the MBR not Windows
Old 09-28-2004, 07:35 PM   #3
LQ Newbie
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
so in that case can I delete the boot.ini file without running into errors? cause its not liking having the blank boot.ini file as it is right now.


Old 09-28-2004, 07:42 PM   #4
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well...good advice....don't delete but rename it.
furthermore there is smth. wrong in that file.......
maybe post it.......( i'm not sure if that's allowed ???)

Old 09-28-2004, 07:51 PM   #5
Registered: Aug 2002
Posts: 20,205

Rep: Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454
You can use the Recovery Console, and then use the bootcfg.exe tool to rebuild the Boot.ini file
Old 09-28-2004, 08:07 PM   #6
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I wouldn't delete it or rename it. I'm surprised that it even booted when you cleared out the information.
To solve the original problem of the windows boot screen showing even though you are using the linux bootloader, change the boot.ini

If you don't have luck with the recovery console, here is an example boot.ini
[boot loader]
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\Windows="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
Old 09-28-2004, 10:23 PM   #7
LQ Newbie
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks a ton guys for all the help you offered, the solution that worked for my situation was part of the code that Homey suggested, basically what I did was go back to my backup that I kept of the original boot.ini file and I cleared the suse linux part from the operating systems section and then the part that I took from Homey's code was the line


which I added after the windows XP entry and now all is golden! Thanks again everyone!!!


01101110 00110000 00110000 01100010


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
WinXP Won't boot - Write to NTFS Boot.ini File GNewbie Linux - Newbie 9 11-14-2005 12:41 AM
Dual Boot - XP & Suse 9.1 - Need help with boot.ini johnnytriumph Linux - Newbie 1 04-05-2005 06:18 AM
Boot Linux Suse using boot.ini from Windows XP theewolizer SUSE / openSUSE 10 10-21-2004 01:11 PM
Dual Boot Win2000Pro & RH 8 w/Boot.ini JinxU1 Linux - Newbie 9 01-31-2003 09:49 PM
Editing boot.ini for dual boot nixdisciple Linux - General 1 06-02-2002 11:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 AM.

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
Open Source Consulting | Domain Registration