[ltp] windows won't boot on dual boot T40
Matthias Posseldt
linux-thinkpad@linux-thinkpad.org
Mon, 22 Dec 2003 15:10:59 +0100
On Monday 22 December 2003 03:55, Paul Kaplan wrote:
> Can you re-install the Windows boot loader to the MBR (I've seen the
> routine somewhere, but can't recall where), boot XP to verify that
> the installation isn't corrupt and then re-install lilo? You may
> need to let XP do a chkdsk or try to let the XP installer do a
> repair.
You can boot from a WinXP CD and start the recovery console and type
"fixmbr" and "fixboot". I often use it when I install new harddrives
which don't have any MBR.
> > Here is some background info:
> > I used qtparted to partition the disk leaving Windows in
> > hda1 and installing Linux in hda2 and hda4, with swap in hda3.
> > fdisk reports:
> >
> > Disk /dev/hda: 80.0 GB, 80026361856 bytes
> > 240 heads, 63 sectors/track, 10337 cylinders
> > Units = cylinders of 15120 * 512 = 7741440 bytes
> >
> > Device Boot Start End Blocks Id System
> > /dev/hda1 * 1 948 7166848+ c W95 FAT32
> > (LBA) /dev/hda2 * 949 1078 982800 83 Linux
> > /dev/hda3 1079 1208 982800 82 Linux swap
> > /dev/hda4 1209 9921 65870280 83 Linux
You should also toggle the bootable flag for /dev/hda2. That is not a
valid partition table for a windows boot record since there is more
than one partition bootable.
For booting WinXP the best thing is to use grub. See
http://www.linux-sxs.org/administration/grubxp.html for details. The
simplest entry to boot Windows in /boot/grub/menu.lst is:
title Windows XP
root(hd0,0) [or rootnoverify]
chainloader +1
to boot Windows from /dev/hda1.
Ciao, Matthias
--
There is still the danger of EU software patents!
http://swpat.ffii.org/