Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 05:09 AM
Bart Vantieghem
 
Posts: n/a
Default Problems starting Windows XP after gentoo installation

Hi group,

I have installed gentoo for about a few months now and I really love it,
but there is a "small" problem. I cannot boot Windows XP anymore.

After the installation of gentoo, I didn't check to see if windows still
worked, since I normally don't need this OS to get my work done, until now.
I have to work on a new project, which uses Visual Studio .NET, so I tried
to start Windows XP from the grub menu, but it failed to do so.
Then I tried to do a "fdisk /mbr" (I started the laptop with an old
windows '98 boot disk), but this didn't restore the Win mbr (I think)

So my question is, can someone tell me what to do? I don't want to
reinstall my computer again, just to work with windows for only a few
months...

Some information:

Partition table:

Device Boot Start End Blocks Id System
/dev/hda1 1 2 16033+ de Dell Utility
/dev/hda2 3 8 48195 83 Linux
/dev/hda3 * 9 859 6835657+ 7 HPFS/NTFS
/dev/hda4 860 3648 22402642+ f Win95 Ext'd (LBA)
/dev/hda5 860 2453 12803773+ b Win95 FAT32
/dev/hda6 2454 3577 9028498+ 83 Linux
/dev/hda7 3578 3648 570276 82 Linux swap

My grub.conf
timeout 30
default 0
splashimage=(hd0,1)/boot/grub/splash.xpm.gz


# For booting GNU/Linux
title = GNU/Linux
root (hd0,1)
kernel /boot/vmlinuz-2.4.21 root=/dev/hda6 vga=794 hdb=ide-scsi

# For booting Windows NT or Windows95
title = WinXP
root (hd0,2)
makeactive
chainloader #+1


Thanks in advance,

Bart


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 05:09 AM
Styvaen
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation


"Bart Vantieghem" <bart@NOvantieghem.SPAM.net.invalid> wrote in message
newsan.2003.09.06.23.14.22.332219@NOvantieghem.S PAM.net.invalid...
> Hi group,
>
> I have installed gentoo for about a few months now and I really love it,
> but there is a "small" problem. I cannot boot Windows XP anymore.
>
> After the installation of gentoo, I didn't check to see if windows still
> worked, since I normally don't need this OS to get my work done, until

now.
> I have to work on a new project, which uses Visual Studio .NET, so I tried
> to start Windows XP from the grub menu, but it failed to do so.
> Then I tried to do a "fdisk /mbr" (I started the laptop with an old
> windows '98 boot disk), but this didn't restore the Win mbr (I think)
>
> So my question is, can someone tell me what to do? I don't want to
> reinstall my computer again, just to work with windows for only a few
> months...
>
> Some information:
>
> Partition table:
>
> Device Boot Start End Blocks Id System
> /dev/hda1 1 2 16033+ de Dell Utility
> /dev/hda2 3 8 48195 83 Linux
> /dev/hda3 * 9 859 6835657+ 7 HPFS/NTFS
> /dev/hda4 860 3648 22402642+ f Win95 Ext'd (LBA)
> /dev/hda5 860 2453 12803773+ b Win95 FAT32
> /dev/hda6 2454 3577 9028498+ 83 Linux
> /dev/hda7 3578 3648 570276 82 Linux swap
>
> My grub.conf
> timeout 30
> default 0
> splashimage=(hd0,1)/boot/grub/splash.xpm.gz
>
>
> # For booting GNU/Linux
> title = GNU/Linux
> root (hd0,1)
> kernel /boot/vmlinuz-2.4.21 root=/dev/hda6 vga=794 hdb=ide-scsi
>
> # For booting Windows NT or Windows95
> title = WinXP
> root (hd0,2)
> makeactive
> chainloader #+1
>


Assuming the above was not a typo:
chainloader #+1
Lose the #

Try fixmbr and fixboot from a winxp install disk instead of fdisk /mbr.

When you squeezed the linux primary boot partition before windows you didn't
clobber windows, did you? It looks suspicious to me.

Styvaen.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 05:09 AM
walt
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

Bart Vantieghem <bart@NOvantieghem.SPAM.net.invalid> writes:

> Hi group,
>
> I have installed gentoo for about a few months now and I really love it,
> but there is a "small" problem. I cannot boot Windows XP anymore...


You have already taken the most important step. You saved a copy of
your partition table by posting it to usenet. Now when you trash
your MBR following everyone's advice you can just download it from
google (I'm not joking!) Saving your partition table is the
most important thing to do before you start trying to solve this
problem. Print it out also, or write it down.

Sadly, I don't know the RIGHT way to restore XP's boot block to the
XP partition, so what I have done in the past is this: I go through
the XP installation CD to the point where it discovers the existing XP
installation and offers the choice of rescuing the prior install or
doing a fresh new install.

I choose the rescue operation which then reinstalls the original XP
system files and make the XP partition bootable again but does NOT
remove the Registry or any applications you already have installed.

This means that when you reboot you will need to do these things:

1. Reinstall GRUB to your Master Boot Record (MBR). A GRUB floppy
or Gentoo install diskette is the easiest way to do this. After
rescuing XP you may not be able to use GRUB until you re-install
it. (I'm can't recall whether XP writes over GRUB or not.)

2. Reinstall all the WinXP Service Packs and hot'fixes' from the
WindowsUpdate website. You will NOT need to re-install any apps
like mozilla or Visual Studio or Office, etc, as long as you
refuse to do a fresh install of XP.

If anyone knows how to re-install the XP bootblock to the XP
partition without all these extra steps, please speak up!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 05:09 AM
Bart Vantieghem
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

On Sun, 07 Sep 2003 00:57:37 +0100, Styvaen wrote:


[snip]
>> # For booting Windows NT or Windows95
>> title = WinXP
>> root (hd0,2)
>> makeactive
>> chainloader #+1
>>

>
> Assuming the above was not a typo:
> chainloader #+1
> Lose the #
>
> Try fixmbr and fixboot from a winxp install disk instead of fdisk /mbr.
>
> When you squeezed the linux primary boot partition before windows you didn't
> clobber windows, did you? It looks suspicious to me.


Dear Styvaen,

the "#" wasn't a typo. I remove the character, but that didn't solve my
problem. When I select the WinXP option from grub, I (briefly) see the 3
commands grub tries to execute and then it displays the grub-menu again.

I'm going to try your "fixmbr" or "fixboot" suggestion, when I can get
hold of a WinXP install disk (I don't think it can be done from the cdrom)

I don't think I messed up the windows partition, since I partitioned it
first with partition magic (I have to admit that I didn't try afterwards
to boot windows)


Cheers,
Bart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 05:09 AM
Bart Vantieghem
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

On Sat, 06 Sep 2003 16:57:45 -0700, walt wrote:

> Bart Vantieghem <bart@NOvantieghem.SPAM.net.invalid> writes:
>
>> Hi group,
>>
>> I have installed gentoo for about a few months now and I really love it,
>> but there is a "small" problem. I cannot boot Windows XP anymore...

>
> You have already taken the most important step. You saved a copy of
> your partition table by posting it to usenet. Now when you trash
> your MBR following everyone's advice you can just download it from
> google (I'm not joking!) Saving your partition table is the
> most important thing to do before you start trying to solve this
> problem. Print it out also, or write it down.


Just printed it, thank you for the advice

>
> Sadly, I don't know the RIGHT way to restore XP's boot block to the
> XP partition, so what I have done in the past is this: I go through
> the XP installation CD to the point where it discovers the existing XP
> installation and offers the choice of rescuing the prior install or
> doing a fresh new install.
>
> I choose the rescue operation which then reinstalls the original XP
> system files and make the XP partition bootable again but does NOT
> remove the Registry or any applications you already have installed.


I only had the option to do an F2 thing (I think it was called recovery
console) but when I pressed this button, it told me to type "exit" and to
reboot the machine. After the reboot I got the grub menu again.

Maybe I corrupted the windows partition after all? (I hope I didn't...)


Cheers,
Bart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 05:10 AM
Jason
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

Windows XP installs the NT Boot Loader to the MBR. If that's where
you installed GRUB then that is part of your problem (Can Windows
NT/2K/XP be loaded directly from anything other than the NT Boot
Loader?). Sorry, but I don't know how to fix it. I have my dual-boot
boxes setup to load GRUB from the NT Boot Loader.

On Sun, 07 Sep 2003 02:26:39 +0200, Bart Vantieghem
<bart@NOvantieghem.SPAM.net.invalid> wrote:

>On Sat, 06 Sep 2003 16:57:45 -0700, walt wrote:
>
>> Bart Vantieghem <bart@NOvantieghem.SPAM.net.invalid> writes:
>>
>>> Hi group,
>>>
>>> I have installed gentoo for about a few months now and I really love it,
>>> but there is a "small" problem. I cannot boot Windows XP anymore...

>>
>> You have already taken the most important step. You saved a copy of
>> your partition table by posting it to usenet. Now when you trash
>> your MBR following everyone's advice you can just download it from
>> google (I'm not joking!) Saving your partition table is the
>> most important thing to do before you start trying to solve this
>> problem. Print it out also, or write it down.

>
>Just printed it, thank you for the advice
>
>>
>> Sadly, I don't know the RIGHT way to restore XP's boot block to the
>> XP partition, so what I have done in the past is this: I go through
>> the XP installation CD to the point where it discovers the existing XP
>> installation and offers the choice of rescuing the prior install or
>> doing a fresh new install.
>>
>> I choose the rescue operation which then reinstalls the original XP
>> system files and make the XP partition bootable again but does NOT
>> remove the Registry or any applications you already have installed.

>
>I only had the option to do an F2 thing (I think it was called recovery
>console) but when I pressed this button, it told me to type "exit" and to
>reboot the machine. After the reboot I got the grub menu again.
>
>Maybe I corrupted the windows partition after all? (I hope I didn't...)
>
>
>Cheers,
>Bart


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 05:10 AM
Martin Cooper
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

Bart Vantieghem <bart@NOvantieghem.SPAM.net.invalid> wrote:

>
> I only had the option to do an F2 thing (I think it was called recovery
> console) but when I pressed this button, it told me to type "exit" and to
> reboot the machine. After the reboot I got the grub menu again.
>
> Maybe I corrupted the windows partition after all? (I hope I didn't...)
>


Hi,
I think you mis-understood the message, which is :-

Microsoft Windows(R) Recovery Console

The Recovery Console provides system repair and recovery functionality.
Type EXIT to quit the Recovery Console and restart the computer.


It means that when you have finished, type exit to restart, its not an
instruction to do it straight away. Instead of typing exit, run the
commands :-

fixmbr
fixboot c:

This should make sure the boot loader is installed. Next you need to check
that the bootloder is configured correctly. First, try the command :-

bootcfg /list

This will produce a list of menu options (as displayed by the windows start
menu). One of those options should list your XP installation. If so, exit
the recovery console and reboot.

If not, then you need to add the installation to this menu as follows :-

bootcfg /scan

This will take a while, but after scanning your disks for valid
installations, it will produce a list of OS's found such as :-

1) Windows XP Home Addition


Their may be more than one option listed. Next you need to add this to the
boot loader with :-

bootcfg /add 1

Repeat this procedure for each item listed that you need to add to the boot
loader. Finally, run the command :-

bootcfg /rebuild

then type exit to leave the recovery console and reboot. Unless you have
corrupted the installation, you should now be able to boot XP.

FYI, I have XP on my main drive, and gentoo on hdb. I have also tried using
grub to boot XP, but it always fails. Instead, I use the XP boot menu to
run linux. This involves telling grub to install to a partition rather than
the MBR, so say your root partition is /dev/hdb1, and your /boot partition
is /dev/hdb2 you would run the grub command from iside linux and then :-

root (hd1,1)
setup(hd1,0)

This will install the needed files onto /dev/hdb1 partition. Now quit grub,
and still inside linux type :-

dd if=/dev/hdb1 of=/tmp/linux.img bs=512 count=1

This will produce a file that can be used with the XP bootl;oader to boot
into gentoo. Copy this file to somewhere you can get at it from inside XP,
then reboot and run XP. Inside XP, copy the linux.img file onto your c:\
drive. Note that it must be inthe root directory, not a subdirectory.

Now goto 'control panel->system' and select the advanced tab. Press the
button labelled 'Settings' under the 'Startup and Recovery' section. In the
resulting dialog, press the 'Edit' button in the 'System stratup' section.
You should get a file in notepad containing something like this :-

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windo ws XP" /fastdetect

Change this to look like :-

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windo ws XP" /fastdetect
c:\linux1.img="Gentoo Linux"

Now save this file, close notepad and OK out of the various dialogs. The
next time you reboot, the NT boot loader will run and display a 'Gentoo
Linux' option. To boot into gentoo, select this option. At least this way,
XP will still boot correctly afterwards.

--

Martin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 05:10 AM
Philipp Becker
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

Jason wrote:

> Can Windows NT/2K/XP be loaded directly from anything other than the NT
> Boot Loader?).


I don't know anything about NT or XP, but at least I can boot 2K using Lilo.

--
Ciao,
Philipp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 05:10 AM
David
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

Philipp Becker wrote:

> Jason wrote:
>
>> Can Windows NT/2K/XP be loaded directly from anything other than the NT
>> Boot Loader?).

>
> I don't know anything about NT or XP, but at least I can boot 2K using
> Lilo.
>


Same here, LILO works fine for Win2k and earlier. You might want to see if
it can fix your XP boot issue. Here's a sample /etc/lilo.conf that can
boot Win2K (devices are specific to my machine):

# $Header: /home/cvsroot/gentoo-x86/sys-apps/lilo/files/lilo.conf,v 1.3
2002/09/30 00:55:18 woodchip Exp $
# Author: Ultanium
# Start LILO global section
menu-scheme=Wb
boot = /dev/ataraid/disc0/disc
default = win2k
prompt
#compact # faster, but won't work on all systems.
lba32
#if lba32 do not work, use linear
#linear
#if you always want to see the prompt with a 10 second timeout:
timeout=100
delay = 50
vga = normal # Normal VGA console
# Linux bootable partition config begins

image = /boot/vmlinuz-2.4.20-gentoo-r6
vga = 791
root = /dev/hdf5
append = "hda=ide-scsi hdc=ide-scsi video=vesa:mttr"
initrd = /boot/initrd-1024x768
label = 2420-gentoo-r6
read-only # read-only for checking

# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/ataraid/disc0/part1
label = win2k
# DOS bootable partition config ends


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 05:10 AM
Bart Vantieghem
 
Posts: n/a
Default Re: Problems starting Windows XP after gentoo installation

On Sun, 07 Sep 2003 09:49:54 +0100, Martin Cooper wrote:

> Bart Vantieghem <bart@NOvantieghem.SPAM.net.invalid> wrote:
>
>
> Hi,
> I think you mis-understood the message, which is :-
>
> Microsoft Windows(R) Recovery Console
>
> The Recovery Console provides system repair and recovery functionality.
> Type EXIT to quit the Recovery Console and restart the computer.


I indeed misunderstood the message :-)


I borrowed a cd from a friend (winternals) and this allowed me to start up
a more advanced (read: graphical :-)) version of the recovery console. But
alas, the program didn't find any valid windows partition.
To finish my story: I think I messed up my windows partition... My c:\
drive had no more data on it.
So I think I have to reinstall windows. :-(

Does somebody knows how to save my gentoo installation (can I just copy it
to another computer and then, after the windows installation, copy it
again to my portable?)


I want to thank everyone for their input! Thank you very much!


Cheers,
Bart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493