LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-15-2007, 08:20 PM   #1
dbough
LQ Newbie
 
Registered: Sep 2006
Distribution: Various - getting my feet wet!
Posts: 19

Rep: Reputation: 0
Adding CentOS to Windows Boot.ini


Greetings,

My setup:

SATA1: Windows XP NTFS
SATA2: NTFS Storage
PATA1: CentOS 4.4 (100MB Boot Partition, the rest is root) LVM / ext3)

While installing CentOS I decided to put GRUB on the primary partition of the PATA drive (or so I thought) and not part of the MBR. I was under the assumption I could go into the boot.ini on the Windows HD and add CentOS as an option at boot time.

My issue is, I cannot figure out the path to put in the boot.ini to point to CentOS. Windows reads the root partion on the PATA drive as "H" and does not recognize the boot partition at all.

Am I able to make CentOS part of the Windows bootloader?

Thanks!

Dan

Last edited by dbough; 04-15-2007 at 08:21 PM.
 
Old 04-15-2007, 08:52 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Follow the directions found here; http://www.redhat.com/advice/tips/dualboot.html

Starting from: "You may choose to let another boot loader handle the install, in which case you will want to:"

Boot from the installation media into rescue mode (linux rescue) answer a few questions and use chroot as instructed on screen to create the file mentioned in the link.

Last edited by Lenard; 04-15-2007 at 08:56 PM.
 
Old 04-15-2007, 08:55 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
What you can do is copy the boot sector from the primary partition of pata1 to your windows drive (i.e., extract it “dd if=/dev/hda1 of=bootsect bs=512 count=1”, then copy bootsect to your windows partition, then use the bootsect file instead of “multi(…” to describe your linux target in boot.ini).
 
Old 04-15-2007, 09:36 PM   #4
dbough
LQ Newbie
 
Registered: Sep 2006
Distribution: Various - getting my feet wet!
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, this is what I have tried (without success.)

I've booted to the rescue linux prompt.

I've typed the following:

"dd if=/dev/hda1 of=/bootsect.lnx bs=512 count=1"

It would then tell me that it cannot find /dev/hda1. I ran LS in the dev directory - the closest thing I could find was /hdb so i used /hdb1 instead. It told me "1 files out, 0 files in" or something to that sort.

I've added the line to windows bootloader but of course it wouldn't work.

Am I missing something?
 
Old 04-15-2007, 10:00 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
First of all make sure what you extracted is actually the volume boot sector (it should be exactly 512 bytes in size, and the command “file bootsect.lnx” should say “x86 boot sector” or something similar). Now you have to copy it to your windows root partition (i.e., “C:\”). You can do this many ways (floppy, flash drive, direct ntfs write with ntfs-3g, read your ext partition from within windows, email an attachment, etc.). Then reference it in boot.ini by its windows path (e.g., “C:\bootsect.lnx”).
 
Old 04-15-2007, 10:38 PM   #6
dbough
LQ Newbie
 
Registered: Sep 2006
Distribution: Various - getting my feet wet!
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, thats definatly where the issue is (I need to copy the bootsect to the other drives - via removable media.

bootsect.lnx now lies at the root of my linux drive

-ls shows it along with /etc /dev and all of the other folders.

It was copied from /dev/hdb1

Now I'm at the point where I want to copy the file onto a USB drive - however I can't find the usb stick at all. Does it need to be mounted first? (I assume this is where my problem lies.) I'm still rather new so I appologize for all of the questions.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't initalize Windows XP (no boot.ini?) bruno321 Ubuntu 13 02-23-2007 12:33 PM
help with windows boot. ini ?? ramaswamyps General 2 12-23-2005 12:50 AM
Adding GRUB to boot.ini help req shandy Linux - Software 12 10-18-2005 11:56 AM
Adding a Boot.ini entry Tinochelli General 2 01-30-2005 03:20 AM
Boot Linux Suse using boot.ini from Windows XP theewolizer SUSE / openSUSE 10 10-21-2004 02:11 PM


All times are GMT -5. The time now is 11:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration