7/19/2006

Boot.ini file in Windows 2000, XP, & Server 2003

I made a mistake in my boot.ini on a Dell XPS computer (of course it applies to anyone with a PC no matter what vendor) and was greeted with this error message:
Windows could not start because of a computer disk hardware configuration problem.

Could not read from the selected boot disk. Check boot path and disk hardware.

Please check the Windows documentation about hardware disk configuration and your hardware reference manuals for additional information.


The easiest solution to this problem was to:
1) Insert your Windows disk and when you are prompted, press R to enter the Windows Recovery Console.
2) You'll then need to select one of your Windows installation and enter the Administrator's password.
3) When you reach the command prompt, type bootcfg /rebuild and hit Enter.

If you need more help, I recommend this Microsoft Knowledge base:
http://support.microsoft.com/?kbid=314477

While going through that problem I learned quite a bit about the boot.ini file and ended up writing this brief guide.

The boot.ini file format is a standard ini file that determines which Windows operating system to load at boot, and also determines which Windows installations are available from the menu at boot up. From Microsoft: "Windows (specifically Ntldr) uses the Boot.ini file to determine the operating system options to display during the startup (boot) process"

Here's a sample boot.ini file from a Dell computer with XP Home and Professional installed:
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptIn
multi(0)disk(1)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect


The first line, [boot loader] contains two variables, the first one, timeout, corresponds to the amount of seconds to display the boot menu. The second value, default, specifies the Windows installation that will boot if no other installation is chosen. In this case, the Dell computer defaults to loading the Windows XP Home installation, on the first hard drive.

Multi refers to the type of hard disk interface. In this case it is multi, which means that it is either an IDE, EIDE, ESDI drive, or a SCSI adapter with no built in BIOS. In other words, the only time you'd replace multi, is if you had a SCSI interface with a built in BIOS. disk(0) refers to the 1st physical hard drive. disk(1) would refer to the second hard drive on that channel. rdisk(0) is specific to SCSI drives, and is usually fine at 0. partition(1) means the actual 1st partition on the drive, so in the above example, the Windows XP Home installation is on the first hard disk on the first partition. Windows XP Professional is on the second hard disk, and on the second partition on that hard drive. \WINDOWS="Microsoft Windows XP Home Edition" says that the Windows folder is located at \WINDOWS and the "Microsoft Windows XP Home Edition" tells the NTLDR boot screen to literally display "Microsoft Windows XP Home Edition" as the selection. The final boot options we'll discuss are /fastdetect /NoExecute=OptIn which are flags that pass parameters to Windows when loading. The following list is from Wikipedia:

/3gb - Allocate 3 GB of virtual address space to programs and 1 GB to the kernel; used for some programs that require more than the standard 2gb allocation for user programs.
/basevideo - The computer starts up using the standard VGA video driver.
/baudrate=nnn - Sets the baud rate of the debug port that is used for kernel debugging.
/bootlog - Write a log file when Windows boots
/burnmemory - Amount of memory Windows is not allowed to use
/channel - Use with /debug and /debugport to have kernel debugging messages sent over an IEEE 1394 (firewire) port
/crashdebug -
/debug -
/debugport=comx -
/fastdetect - Turn off mouse detection
/HAL=filename - Define Hardware Abstraction Layer to use
/kernel=filename - Use an alternate kernel on boot
/maxmem=nn - Set maximum memory Windows can use (use /burnmemory recommended instead).
/nodebug - Turn off debugging; can cause Stop Error if a program uses debugging.
/noexecute=optin (DEP)
/noguiboot - Don't use the bitmap progress bar when starting up.
/nopae - Do Not Support Physical Address Extension.
/noserialmice:comx -
/numproc - Set number of processors Windows is allowed to use; useful if some processors are failing or defective.
/onecpu -
/pae - Support Physical Address Extension.
/pcilock - Let the BIOS assign device addresses instead of Windows.
/redirect - Turn on Emergency Management Services on certain versions of Windows.
/safeboot - Enter Safe Mode.
/usepmtimer -
/userva - Specify additional memory rules in combination with /3gb switch.
/sos - Display driver names while loading.
/w95 -
/w95dos -
/year -


A complete list can be found here.

12 Comments:

  • Great Info. Thanks!

    By Anonymous Anonymous, at 11:40 AM, September 12, 2006  

  • I was wondering if anyonoe could tell me or help me figure out how to edit this script to boot from just the c: drive (not from the recovery console.

    This is my Boot.ini Record I am assuming the last part is why I can not clone the c: drive and get it to boot with out the recovery partition??

    [boot loader]
    timeout=0
    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Media Center Edition" /noexecute=optin /fastdetect
    C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons


    What I am trying to do is
    1. Make a clone of my C: Drive (using virtual drive 7-now called ghost).

    2. Delete/format/destory/ the hard drive and recovery partition (I already have made the cd's/DvD's just doesnt make any sense to hog up so much of the hard drive with another copy of the recovery partition that you wont be able to get into anyway if your core files go bad...)

    3. Use the clone (made by Farstone's virtual drive7) to just have my c: drive with all the stuff that I had and wanted before with out the recovery partition.

    Just a note...I have tryed cloning it 3 times now to no avail!

    Get errors such as boot.ini, MBR,Partition errors etc etc.

    *Has anyone been able to clone a hp pavilion a1530n HDD with out the recovery partition ?????******

    Thanks to all who are willing to help me out! I need it!

    By Anonymous Anonymous, at 12:40 PM, September 12, 2006  

  • I was able to do this on my 1530 using Ghost 8.2.

    1. Create a partition image of your C: partition. (in Ghost 8.2, choose Local --> Partition --> To image)

    2. Restore it as a disk image. (Local --> Disk --> From Image)

    By Anonymous bill, at 3:59 PM, October 04, 2006  

  • Hi. Thanks for the insights. Visit us at Computer Tips

    By Blogger Earn A LifeTime of Income From Anywhere!, at 2:54 PM, December 16, 2006  

  • Use Acronis Disk Director

    By Anonymous Anonymous, at 3:37 PM, December 27, 2006  

  • I have a Windows XP and when we boot and the desktop populate, the Windows Installer pops up and begins the insatlation of photo gallery, but we don't have photo gallery. Does anyone know where I can find this extentiion and how to get rid of it.
    jester986@cavtel.net

    By Blogger jester986, at 1:22 PM, July 28, 2008  

  • I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you!

    Sorry for offtopic

    By Anonymous Anonymous, at 6:47 PM, November 08, 2009  

  • Who knows where to download XRumer 5.0 Palladium?
    Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

    By Anonymous Anonymous, at 4:42 AM, November 14, 2009  

  • To anyone else having the same problem as the second anonymous trying to clone his drive:

    The last line has no effect on the clone "failing". It's the second to last line that's doing it.

    If you remove a partition from in front of the one you want, you must decrement the partition numbers in all lines referring to partitions after the one you remove.

    In this case, you're removing partition 0 and keeping 1. But then, 1 becomes 0 so the first line under [operating systems] becomes:

    multi(0)disk(0)rdisk(0)partition(0)\WINDOWS="Windows XP Media Center Edition" /noexecute=optin

    By Anonymous AlexaD, at 4:08 AM, March 06, 2010  

  • If you want to look ed hardy clothes and feel sexy, a Christian audigier maternity cocktail ed hardy shoes dress may be the ed hardy outlet fashion choice. There ed hardy Bikini are a variety ed hardy hats of cocktail dresses ed hardy swimsuits available, from a sexy ed hardy clothing black to an eye catching red. You can ed hardy glasses either choose a dramatic wrap-dress ed hardy or a sophisticated jersey dress. There ed hardy iphone cases are a variety of styles, patterns, and designs ed hardy dresses to suit any occasion. If you are looking for a bit more ed hardy Jackets dazzle, consider a comfy waist band mini skirt.

    By Blogger gaohui, at 5:32 PM, September 03, 2010  

  • Thanks for the help in this question. I did not know it.

    By Anonymous oem downloadable software, at 1:58 AM, September 24, 2011  

  • It was very interesting to read about this in your article. blood pressure Read a useful article about tramadol tramadol

    By Anonymous Anonymous, at 3:10 AM, February 02, 2012  

Post a Comment

Links to this post:

Create a Link

<< Home