LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-15-2009, 12:11 AM   #1
bigalexe
Member
 
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]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS

[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, 01:30 AM   #2
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,112

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
Quote:
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:

http://www.linux.com/articles/113945
 
Old 03-15-2009, 04:36 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,497

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Quote:
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, 03:36 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,518

Rep: Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804
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
Code:
dd if=/dev/sdb3 of=/fedora9.bin bs=512 count=1
this is a fedora help page but will work for ubuntu
Quote:
-----------------------------
first boot with install dvd in " rescue mode"

chroot /mnt/sysimage
/* root login */
root
( 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*/

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

timeout=30

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 03:37 PM.
 
  


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 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 04:17 PM
How to include linux boot in boot.ini gkgm Linux - Enterprise 2 04-08-2008 08:42 AM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 05:34 AM
How to Edit boot.ini for linux AS 3? sathyguy Linux - Enterprise 3 11-19-2005 02:36 AM
edit windows boot ini to allow booting to lilo V_LESTAT Linux - Newbie 2 01-15-2004 07:58 PM


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