Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-23-2007, 04:34 AM
|
#1
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Rep:
|
Can't initalize Windows XP (no boot.ini?)
Hi. I have installed first Windows XP, then installed Kubuntu. But Kubuntu didn't recognize Windows. I think I know why...
Anyway, here's what I've put on my menu.lst:
title Windows XP
rootnoverify (hd2,1)
makeactive
chainloader +1
I believe the disk information is correct, but correct me if I'm wrong:
IDE Primary Master: 80 GB, Kubuntu
IDE Primary Slave: DVD-RW
IDE Secondary Master: None
IDE Secondary Slave: 120 GB, data
First SATA: nothing
Second SATA: 250 GB, with a Win partition (sda2)
The problem is, when I select Windows XP, nothing happens. Just a "_" tilting, and nothing else.
Anyway, I believe I know the cause of the problem. When I installed Windows XP on that partition, it told me it had to give format to the then unformatted Primary Master, cause it had to write info there. I said OK.
I'm guessing there's where it installed NTLDR and all that stuff. But all that got wiped out when I installed Kubuntu there, with GRUB.
So now I go check the Win partition and I see there is no boot.ini, which I've just read is essential to booting Windows. Ahh, I'm tired of dealing with these things...
Is there any way I can fix WITHOUT having to reinstall any operating systems? I'm fed up with that by now
Thanks.
|
|
|
02-23-2007, 05:13 AM
|
#2
|
Member
Registered: Oct 2005
Distribution: FC5
Posts: 338
Rep:
|
Quote:
Originally Posted by bruno321
title Windows XP
rootnoverify (hd2,1)
makeactive
chainloader +1
|
For windows it can't be (hd2,1) it has to be (hd0,1)
Try this
Code:
title Windows XP
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd2,1)
makeactive
chainloader +1
|
|
|
02-23-2007, 05:20 AM
|
#3
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Original Poster
Rep:
|
Well, that seemed to work! Partially, at least.
Now what I get is: "Remove disks or drives. Press one key to continue" (not sic, but translated). I press a key and then NVIDIA Boot Agent loads up. I haven't got a clue why it does, I'm guessing it loads up when no other boot loader is present. As I said, I don't have the ntldr nor the boot.ini file on that partition.
|
|
|
02-23-2007, 05:31 AM
|
#4
|
Member
Registered: Oct 2005
Distribution: FC5
Posts: 338
Rep:
|
can you post the output of /sbin/fdisk -l
this has has to do with windows mbr which is always installed in the active partion of master disk, the actual programs & installation could be anywhere
|
|
|
02-23-2007, 05:35 AM
|
#5
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Original Poster
Rep:
|
Disco /dev/sda: 250.0 GB, 250059350016 bytes
255 cabezas, 63 sectores/pista, 30401 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes
Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/sda1 1 29126 233954563+ f W95 Ext'd (LBA)
/dev/sda2 * 29127 30401 10241437+ c W95 FAT32 (LBA)
/dev/sda5 1 15201 122101969+ b W95 FAT32
/dev/sda6 15202 29126 111852531 b W95 FAT32
Disco /dev/hda: 81.9 GB, 81964302336 bytes
255 cabezas, 63 sectores/pista, 9964 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes
Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/hda1 * 1 9777 78533721 83 Linux
/dev/hda2 9778 9964 1502077+ 5 Extendida
/dev/hda5 9778 9964 1502046 82 Linux swap / Solaris
Disco /dev/hdd: 122.9 GB, 122942324736 bytes
240 cabezas, 63 sectores/pista, 15881 cilindros
Unidades = cilindros de 15120 * 512 = 7741440 bytes
Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/hdd1 * 2 15881 120052296 c W95 FAT32 (LBA)
|
|
|
02-23-2007, 05:42 AM
|
#6
|
Member
Registered: Oct 2005
Distribution: FC5
Posts: 338
Rep:
|
Try
title Windows XP
map (hd0) (sd0)
map (sd0) (hd0)
rootnoverify (sd0,1)
makeactive
chainloader +1
the partitions with * mark are active, so sda2, hda1(linux), & hdd1,
since your windows installation is on 250 gb SATA, this should work though I am not sure about SATA drives
|
|
|
02-23-2007, 05:47 AM
|
#7
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Original Poster
Rep:
|
Tried it, all I get is:
"Error 23: error while parsing number..."
|
|
|
02-23-2007, 05:51 AM
|
#8
|
Member
Registered: Oct 2005
Distribution: FC5
Posts: 338
Rep:
|
I am sorry, cant help beyond this, maybe some else can help, you can always google for map command with ref to SATA drives, essentially you have to fool windows into thinking that it is installed in the first active partition of primary disk, so maybe playing with hd0,hd1 or sd0, sd1 may work
|
|
|
02-23-2007, 05:52 AM
|
#9
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Original Poster
Rep:
|
I see. Thanks a lot anyway! Will google some more 
|
|
|
02-23-2007, 05:54 AM
|
#10
|
Member
Registered: Oct 2005
Distribution: FC5
Posts: 338
Rep:
|
Your answer is here
http://www.linuxforums.org/forum/lin...dora-core.html
Quote:
Posts: 4
Got it working!
Thanks for all the replies.
I got it working: I had to change both the device.map and grub.conf files in \boot\grub. Here are the steps I followed:
1) As suggested I did a /sbin/fdisk -l. This showed my SATA disk as /dev/sda1.
2) I tried changing grub.conf to use sd0 but that generated an error 23: bad number
3) Added the following line to device.map
(hd1) /dev/sda
I suspect this line should have been added by Anaconda, but I installed FC3 with the SATA drive powered off.
4) Added windows entry to use hd1 as per the tutorial. The entry is
title Windows XP Pro
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1
|
Last edited by sn68; 02-23-2007 at 05:57 AM.
|
|
|
02-23-2007, 08:54 AM
|
#11
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Original Poster
Rep:
|
Well, I was going to try that, but:
3) Added the following line to device.map
(hd1) /dev/sda
That seemed like a moot point, seeing that I had already:
(hd2) /dev/sda
on my device.map.
So I replaced the values on the entry that person used with the ones I should use, but then again, it was the exact same thing you, snd68 had already told me to do and which hadn't worked.
I think the disk actually booted with that config, else it wouldn't have shown the "NVIDIA Boot Agent". But Windows doesn't appear :\
|
|
|
02-23-2007, 09:22 AM
|
#12
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,392
|
Quote:
Originally Posted by bruno321
I'm guessing there's where it installed NTLDR and all that stuff. But all that got wiped out when I installed Kubuntu there, with GRUB.
So now I go check the Win partition and I see there is no boot.ini, which I've just read is essential to booting Windows. Ahh, I'm tired of dealing with these things...
Is there any way I can fix WITHOUT having to reinstall any operating systems? I'm fed up with that by now 
|
Unfortunately, I think your analysis is correct. The XP installer (and bootloader) require a primary partition on the boot disk.
Looks like you overlaid it with Kubuntu.
Easiest for you would be to change the BIOS boot disK to the SATA, then re-install XP there. It will update the MBR of that disk - no matter. Then change the BIOS back, and using the menu.lst suggested by sn68 first response, try again.
|
|
|
02-23-2007, 09:30 AM
|
#13
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Original Poster
Rep:
|
I will try that... although it scares the hell out of me. I'm sick and tired of messing around with partitions and MBRs and all that stuff.
I hope I don't end up screwing every MBR on every disc as I did last time. Oh well.
Thanks a ton. It looks like it will work.
|
|
|
02-23-2007, 11:33 AM
|
#14
|
Member
Registered: Feb 2007
Location: Montevideo
Distribution: Kubuntu
Posts: 43
Original Poster
Rep:
|
Oh my god, I can't believe it. It worked! It worked! So this installation of Kubuntu + Windows XP costed me 3 kubuntu installs + 2 XP installs. But I eventually got there.
There's a detail I did differently though: I changed the boot order to load the SATA disc first, but the windows installation insisted on formatting the primary master drive (which has kubuntu). So I just unplugged the other two hard drives, leaving only the SATA disc where I would be installing Windows. I installed it, plugged in the other two discs, restored the boot order to the original state, and it automagically worked! (I had already configured GRUB using the first configuration sn68 recommended).
I can't stress this enough: THANKS, big thanks to both of you. I hope one day my Linux knowledge will be bigger so I will be able to help others as beautifully as the people on this wonderful community do.
(That was corny!)
|
|
|
All times are GMT -5. The time now is 08:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|