Manual configuration needed to boot Windows from second hard disk

Bug #8283 reported by axel c.
80
This bug affects 18 people
Affects Status Importance Assigned to Milestone
grub-installer (Debian)
Fix Released
Unknown
grub-installer (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

I have a small XP partition sitting on my 4th ide drive (i have 3 hard disks and
a cd writer). XP seems to barf when trying to boot it from a disk which is not
hd0, so i had to add a couple of map () statements to grub.conf to make it work:

In this case, my 4th hard disk is identified by grub as hd2 (took me a while and
a few reboots to figure that out).

title xp
map (hd2) (hd0)
map (hd0) (hd2)
rootnoverify (hd2,0)
chainloader +1

Maybe the installer should be aware of this kind of setup and automatically add
the maps?

Revision history for this message
In , Joey Hess (joeyh) wrote : reassign 269351 to grub-installer

# Automatically generated email from bts, devscripts version 2.8.4
reassign 269351 grub-installer

Revision history for this message
axel c. (axel-banzais) wrote :

I have a small XP partition sitting on my 4th ide drive (i have 3 hard disks and
a cd writer). XP seems to barf when trying to boot it from a disk which is not
hd0, so i had to add a couple of map () statements to grub.conf to make it work:

In this case, my 4th hard disk is identified by grub as hd2 (took me a while and
a few reboots to figure that out).

title xp
map (hd2) (hd0)
map (hd0) (hd2)
rootnoverify (hd2,0)
chainloader +1

Maybe the installer should be aware of this kind of setup and automatically add
the maps?

Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Salman Khilji (skhilji) wrote :

I can also confirm this. I had the exact same problem and I had to do the
following to get xp to boot:

title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

Revision history for this message
pointwood (jramskov) wrote :

Another confirmation as I had the same problem. Here's the relevant info from
the GRUB manual: http://www.gnu.org/software/grub/manual/html_node/map.html

Revision history for this message
In , Colin Watson (cjwatson) wrote : merging 269351 285508

# Automatically generated email from bts, devscripts version 2.8.14
merge 269351 285508

Revision history for this message
Colin Watson (cjwatson) wrote :

I just fixed this upstream. Thanks for the information.

Revision history for this message
In , Colin Watson (cjwatson) wrote : Fixed in NMU of grub-installer 1.08

tag 269351 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 20 May 2005 11:31:43 +0000
Source: grub-installer
Binary: grub-installer
Architecture: source i386
Version: 1.08
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <email address hidden>
Changed-By: Colin Watson <email address hidden>
Description:
 grub-installer - Install GRUB on a hard disk (udeb)
Closes: 269351
Changes:
 grub-installer (1.08) unstable; urgency=low
 .
   * Joey Hess
     - Since lvdisplay may exit 0 even if run with a non-lvm device (such as
       /dev/discs/disc0/part0, which it knows isn't a lvm device name and
       aborts with an error message, but no failure code due to bug #250906),
       try to make the isinstallable check for /boot on lvm more robust by
       grepping the lvdisplay output for strings that indicate it really found
       a lvm volume.
     - Note that above fix is only needed for lvm1, not the lvm2 used by
       default in d-i.
   * Matt Kraai
     - Fix the spelling of "file system".
   * Colin Watson
     - DOS/Windows can't deal with booting from a non-first hard drive, so,
       if we're asked to install to hd* other than hd0, include suitable
       'map' commands when chain-loading DOS or Windows (closes: #269351).
   * Updated translations:
     - Bulgarian (bg.po) by Ognyan Kulev
     - Bosnian (bs.po) by Safir Å ećerović
     - Welsh (cy.po) by Dafydd Harries
     - Greek (el.po) by Kostas Papadimas
     - Spanish (es.po) by Enrique Matias Sanchez
     - Basque (eu.po) by Piarres Beobide
     - Gallegan (gl.po) by Jacobo Tarrio
     - Hebrew (he.po) by Lior Kaplan
     - Lithuanian (lt.po) by Kęstutis BiliÅ«nas
     - Dutch (nl.po) by Bart Cornelis
     - Polish (pl.po) by Dominik Zablotny
     - Portuguese (Brazil) (pt_BR.po) by André Luís Lopes
     - Portuguese (pt.po) by Miguel Figueiredo
     - Romanian (ro.po) by Ovidiu Damian
     - Russian (ru.po) by Yuri Kozlov
     - Ukrainian (uk.po) by Eugeniy Meshcheryakov
     - Traditional Chinese (zh_TW.po) by Tetralet
Files:
 8d1447637f1ddf903396b685a8c2c318 714 debian-installer standard grub-installer_1.08.dsc
 58b10d154e16498af127cd18eb569a53 71514 debian-installer standard grub-installer_1.08.tar.gz
 20fd8566cf81eb66d8fd382271ba8956 54514 debian-installer standard grub-installer_1.08_i386.udeb
package-type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Colin Watson <email address hidden> -- Debian developer

iD8DBQFCjctX9t0zAhD6TNERAuLVAJ9/i5iCEL6cOGdSzJGxW1uvYmqFTACeNKJh
UhCNzLdvpH5T+2Chs/ALFsI=
=V6Hj
-----END PGP SIGNATURE-----

Revision history for this message
In , Colin Watson (cjwatson) wrote : [cjwatson@debian.org: Fixed in NMU of grub-installer 1.08]
Download full text (3.4 KiB)

Not an NMU.

--
Colin Watson [<email address hidden>]

----- Forwarded message from Colin Watson <email address hidden> -----

From: Colin Watson <email address hidden>
To: <email address hidden>
Cc: Colin Watson <email address hidden>,
 Debian Install System Team <email address hidden>
X-Katie: $Revision: 1.55 $
Subject: Fixed in NMU of grub-installer 1.08
Date: Fri, 20 May 2005 07:47:33 -0400
Delivered-To: <email address hidden>
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on riva.lab.dotat.at
X-Spam-Status: No, score=-1.9 required=4.5 tests=AWL,BAYES_00 autolearn=no
 version=3.0.2

tag 269351 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 20 May 2005 11:31:43 +0000
Source: grub-installer
Binary: grub-installer
Architecture: source i386
Version: 1.08
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <email address hidden>
Changed-By: Colin Watson <email address hidden>
Description:
 grub-installer - Install GRUB on a hard disk (udeb)
Closes: 269351
Changes:
 grub-installer (1.08) unstable; urgency=low
 .
   * Joey Hess
     - Since lvdisplay may exit 0 even if run with a non-lvm device (such as
       /dev/discs/disc0/part0, which it knows isn't a lvm device name and
       aborts with an error message, but no failure code due to bug #250906),
       try to make the isinstallable check for /boot on lvm more robust by
       grepping the lvdisplay output for strings that indicate it really found
       a lvm volume.
     - Note that above fix is only needed for lvm1, not the lvm2 used by
       default in d-i.
   * Matt Kraai
     - Fix the spelling of "file system".
   * Colin Watson
     - DOS/Windows can't deal with booting from a non-first hard drive, so,
       if we're asked to install to hd* other than hd0, include suitable
       'map' commands when chain-loading DOS or Windows (closes: #269351).
   * Updated translations:
     - Bulgarian (bg.po) by Ognyan Kulev
     - Bosnian (bs.po) by Safir Šećerović
     - Welsh (cy.po) by Dafydd Harries
     - Greek (el.po) by Kostas Papadimas
     - Spanish (es.po) by Enrique Matias Sanchez
     - Basque (eu.po) by Piarres Beobide
     - Gallegan (gl.po) by Jacobo Tarrio
     - Hebrew (he.po) by Lior Kaplan
     - Lithuanian (lt.po) by Kęstutis Biliūnas
     - Dutch (nl.po) by Bart Cornelis
     - Polish (pl.po) by Dominik Zablotny
     - Portuguese (Brazil) (pt_BR.po) by André Luís Lopes
     - Portuguese (pt.po) by Miguel Figueiredo
     - Romanian (ro.po) by Ovidiu Damian
     - Russian (ru.po) by Yuri Kozlov
     - Ukrainian (uk.po) by Eugeniy Meshcheryakov
     - Traditional Chinese (zh_TW.po) by Tetralet
Files:
 8d1447637f1ddf903396b685a8c2c318 714 debian-installer standard grub-installer_1.08.dsc
 58b10d154e16498af127cd18eb569a53 71514 debian-installer standard grub-installer_1.08.tar.gz
 20fd8566cf81eb66d8fd382271ba8956 54514 debian-installer standard grub-installer_1.08_i386.udeb
package-type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2...

Read more...

Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in grub-installer 1.08:

  * Colin Watson
    - DOS/Windows can't deal with booting from a non-first hard drive, so,
      if we're asked to install to hd* other than hd0, include suitable
      'map' commands when chain-loading DOS or Windows (closes: #269351).

Changed in grub-installer:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.