[ltp] Installed Grub to MBR, now can't boot XP (dual boot config)

Paul Fox linux-thinkpad@linux-thinkpad.org
Wed, 17 Jan 2007 09:25:35 -0500


i'm not the original poster, but i've got clarification
questions, below.  i'm interested because i'm just about to
start trying to use the XP partition on my X41 for the first time.

simon wrote:
 > Greg Kimberly wrote:
 > > I have a T41 upon which I've installed Ubuntu 6.10 (Edgy). I'm now in
 > > the seemly unusual situation of being able to boot linux and the
 > > recovery tools, but not XP. My drive layout is:
 > > 
 > > hda1 XP
 > > hda2 swap
 > > hda3 ext3 (root of ubuntu)
 > > hda4 (extended partition)
 > > 	hda5 rescue and recovery
 > > 
 > > I started with 
 > > 
 > > title           Windows
 > >  root            (hd0,0)
 > >  chainloader     +1
 > > 
 > > This boots the rescue and recovery section.
 > 
 > you need to add the line:
 > rootnoverify (hd0,0)

what does "rootnoverify" do?

 > 
 > >>From http://thinkwiki.org/wiki/Rescue_and_Recovery
 > > 
 > > I got the following for a grub boot profile 
 > > 
 > > title           Windows
 > >  root            (hd0,0)
 > >  hide            (hd0,4)
 > >  chainloader     +1
 > 
 > Ditch the hidden stuff- you don't need it.
 > 
 > > And I then played with trying various hide cmds and now it  won't boot
 > > at all. I now get an error 17 from grub. Never mind that parted (reached
 > > via the Ubuntu bootable CD) doesn't show any hidden bits set at all -
 > > apparently grub sets them in a way that parted can't see? Ack!
 > 
 > The partitions are hidden while grub is "running", so they are only 
 > hidden to systems that grub has booted. It does not change anything on 
 > your disk.

is there a "not" missing in the first sentence of the above paragraph?

 > 
 > Reboot to the ubuntu CD, you haven't booted grub on your hdd so the 
 > partitions are visible- mount your ubuntu partition so you can see 
 > /boot. Remove the hidden lines from /boot/grub/menu.lst. Reboot and it's 
 > all fixed.

why must this be done from the CD?  i thought the original poster could
boot linux, but not XP.  if he can boot linux, then can't he just make
the edits from there?

thank,
paul

 > 
 > > As for the original error (can't boot XP only rescue) I take it that
 > > when I installed Ubuntu, it squashed the windows boot loader and thus
 > > there isn't a normal XP bootloader? 
 > 
 > Well, yes and no. Windows is semi-helpful in the sense that while their 
 > bootloaders are completely rubbish, they are required for loading 
 > windows and store them in the partition (/dev/hda1) rather than the MBR 
 > (/dev/hda). There is a very simple bootloader installed in the MBR which 
 > essentially does that same as grub- it chainloads the bootloader on 
 > /dev/hda1. That is the one you will have wiped and so it doesn't matter.
 > 
 > Hope this helps
 > Simon
 > -- 
 > The linux-thinkpad mailing list home page is at:
 > http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

=---------------------
 paul fox, pgf@foxharp.boston.ma.us (arlington, ma, where it's 5.9 degrees)