Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-14-2009, 11:11 PM   #1
Registered: Apr 2006
Location: SE michigan
Distribution: Ubuntu, Currently Chained to Windows
Posts: 67

Rep: Reputation: 15
How do i edit Windows XP boot.ini to include Ubuntu?

Ok i have seen MANY tutorials on using GRUB to dual boot, and i am confused. What id like to do is edit the boot.ini file to include Ubuntu on my second HDD.

Currently i have 2 HDD's with Windows XP on Disk 0 and Ubuntu on Disk 1. My boot.ini appears as follows:

[boot loader]

[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home" /noexecute=optin /fastdetect
multi(0)disk(1)rdisk(0)partition(1)\WINDOWS="Ubuntu 8.10 Interpid Ibex" /fastdetect /NoExecute=OptIn

This is returning errors probably related to the "\WINDOWS" section of the second entry which tells the system where the OS is located in the filesystem. What do i need to do to fix this?
Old 03-15-2009, 12:30 AM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,701

Rep: Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924
This is returning errors probably related to the "\WINDOWS" section of the second entry
I don't think so. Actually, the part of the entry prior to this tells the system where to look and the part after windows is more like the title line in Grub, just what appears on your screen. Not really sure about that though.

Anyhow, you missed a couple of steps. You need to copy the mbr from your Ubuntu drive to a file and then to the root of the windows drive and also put an entry in your xp boot.ini file. Take a look at this site for details:
Old 03-15-2009, 03:36 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,366

Rep: Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310
Originally Posted by yancek View Post
You need to copy the mbr from your Ubuntu drive to a file and then to the root of the windows drive
Not quite - you need to copy the boot sector record from a partition that has had grub/lilo installed into it rather than the MBR.
The referenced article covers all this quite well.

I suspect this will require a re-install of grub as the default for Ubuntu is to install to the MBR.
Old 03-15-2009, 02:36 PM   #4
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,125

Rep: Reputation: Disabled
you will first need to use the " dd " command to make a .bin file of the ubuntu grub
something like this
My command for fedora 9
dd if=/dev/sdb3 of=/fedora9.bin bs=512 count=1
this is a fedora help page but will work for ubuntu
first boot with install dvd in " rescue mode"

chroot /mnt/sysimage
/* root login */
( my password)
mkdir /mnt/windows
mount -t ntfs-3g /dev/sda1 /mnt/windows
dd if=/dev/sd?? of=/fedora.bin bs=512 count=1
/* ?? is where the boot is */
cp /fedora.bin /mnt/windows
/* or run */
dd if=/dev/sd?? of=/mnt/windows/fedora.bin bs=512 count=1
nano /mnt/windows/boot.ini
/* and add C:\fedora.bin= " Fedora "
(ctrl+o ) and <enter> to save*/

edit boot.ini to look like this
[boot loader]


default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect

C:\Fedora.bin= " Fedora 9"

Last edited by John VV; 03-15-2009 at 02:37 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to edit lilo to include ubuntu rixtr66 Linux - Newbie 1 08-20-2008 03:17 PM
How to include linux boot in boot.ini gkgm Linux - Enterprise 2 04-08-2008 07:42 AM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
How to Edit boot.ini for linux AS 3? sathyguy Linux - Enterprise 3 11-19-2005 01:36 AM
edit windows boot ini to allow booting to lilo V_LESTAT Linux - Newbie 2 01-15-2004 06:58 PM

All times are GMT -5. The time now is 04:23 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