Debian Bug report logs - #659116
debian-installer: GRUB fails to be installed on machine with IDE and SATA disk

Package: grub-installer; Maintainer for grub-installer is Debian Install System Team <debian-boot@lists.debian.org>; Source for grub-installer is src:grub-installer.

Reported by: Hans Streibel <hans@streibel.net>

Date: Wed, 8 Feb 2012 14:18:02 UTC

Severity: important

Tags: d-i

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, hans@streibel.net, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#659116; Package debian-installer. (Wed, 08 Feb 2012 14:18:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hans Streibel <hans@streibel.net>:
New Bug report received and forwarded. Copy sent to hans@streibel.net, Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 08 Feb 2012 14:18:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Hans Streibel <hans@streibel.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: debian-installer: GRUB fails to be installed on machine with IDE and SATA disk
Date: Wed, 08 Feb 2012 14:39:58 +0100
[Message part 1 (text/plain, inline)]
Package: debian-installer
Version: 20110106+squeeze4
Severity: grave
Tags: d-i
Justification: renders package unusable

I tried to re-install Debian/Testing on the same hard disk where it had been
before. I installed from DVDs that I had made (jigdo) of the snapshot on
2012/02/06. I used the expert mode of the installer.

Installation failed when it came to the point where GRUB had to be installed.
I got an error message like "GRUB could not be installed to /target".
A subsequent boot of the machine stopped with a GRUB error message:
- Stage 1.5
- Error 22


I noticed the following:
My machine has 2 hard disk drives built in. One is an IDE drive, the other
is a SATA drive.
- The BIOS (Amibios, version 0226) says that the IDE disk is the first hard
  disk
- Linux was installed on the IDE drive
- GRUB was installed on the MBR of the IDE drive
- The IDE disk was assigned to /dev/sda
- The SATA disk was assigned to /dev/sdb

Now during the installation process I noticed that the order of
assignments was reversed:
- The IDE disk was assigned to /dev/sdb
- The SATA disk was assigned to /dev/sda

Because I wanted the new system to reside on the same disk as before
I installed it to /dev/sdb3.

When the installation came to the point where GRUB had to be installed
I was not asked where to install it. I *guess* that GRUB might have been
installed on /dev/sda whereas the boot process still boots from the
first disk (/dev/sdb) where it finds leftovers of the previous GRUB
installation.

-- System Information:
Removed the system information because I am writing this report
on a different, running system

-- no debconf information
[syslog.gz (application/x-gzip, attachment)]
[partman.gz (application/x-gzip, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#659116; Package debian-installer. (Thu, 09 Feb 2012 07:48:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hans Streibel <hans@streibel.net>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Thu, 09 Feb 2012 07:48:03 GMT) Full text and rfc822 format available.

Message #10 received at 659116@bugs.debian.org (full text, mbox):

From: Hans Streibel <hans@streibel.net>
To: 659116@bugs.debian.org
Subject: debian-installer: GRUB fails to be installed on machine with IDE and SATA disk
Date: Thu, 9 Feb 2012 08:03:50 +0100
[Message part 1 (text/plain, inline)]
Some additional information:

Yesterday I started the rescue system from the installation DVD.
Using this I was able to successfully install GRUB.
The new Linux system came up after the next boot.
However the Windows system on the hard disk did not boot.


I repeated the installation procedere.
This is the error message I got on the screen:

!! Install the GRUB boot loader on a hard disk
GRUB installation failed
The 'grub-pc' package failed to install into /target/.
Without the GRUB boot loader, the installed system will not boot.

The syslog file is again in the appendix.
[syslog.gz (application/octet-stream, attachment)]

Bug reassigned from package 'debian-installer' to 'grub-installer'. Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (Tue, 21 Feb 2012 16:48:16 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions debian-installer/20110106+squeeze4. Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (Tue, 21 Feb 2012 16:48:17 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#659116; Package grub-installer. (Fri, 02 Mar 2012 13:30:14 GMT) Full text and rfc822 format available.

Acknowledgement sent to cbd <cbd1049@telenet.be>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Fri, 02 Mar 2012 13:30:16 GMT) Full text and rfc822 format available.

Message #19 received at 659116@bugs.debian.org (full text, mbox):

From: cbd <cbd1049@telenet.be>
To: 659116@bugs.debian.org
Cc: hans@streibel.net
Subject: 'grub2' not installing in /boot partition.
Date: Fri, 02 Mar 2012 14:27:46 +0100
Additional notes on 659116 posted by David Kennedy.

Problem: 'grub2' not installing on /boot partition during installation
of Debian Squeeze.

Installation mode: Graphical expert.

Package: grub-installer
Version: 20110106+squeeze4
Severity: grave
Tags:
Justification: prevents installation completing.

System
CPU: Intel i7-870 2.93 GHz
Board: Gigabyte GA-P55A-UD4 1156
RAM: 4 x DDR3-2GB
HD SATA Western Digital 2TB
Graphics: NVIDIA Quadro NVS 295 DVI

Current OS: SuSE 11.3 (since Debian installation failed).
Partitioning description: Encrypted LVM with a separate'/boot' partition.
This is the partitioning system on the current SuSE 11.3 and was also
the partitioning system chosen and installed on the Debian Squeeze that
failed with the above problem.

Partitioning:

Device                Size        Enc    Type            FS Type    Mount
/dev/sda            2.0 TB            WDC ...diskname       

/dev/sda1            256.00 MB        Linux native        Ext4        /boot
/dev/sda2            2.0 TB        Encrypted    Linux LVM           

/dev/VOLUME        2.0 TB            LVM2
/dev/VOLUME/HOME     800.00 GB        LV            Ext4        /home
/dev/VOLUME/ROOT     200.00 GB        LV            Ext4        /
/dev/VOLUME/SWAP       16.00 GB        LV            SWAP        SWAP
/dev/VOLUME/TEMP     400.00 GB        LV            Ext4        /tmp
/dev/VOLUME/USER     446.75 GB        LV            Ext4        /usr

Details.
The installation went without problem until the installation attempted
to load 'grub2' into the /boot partition.

The problem occurred when: this installation was attempted automatically
by the installation
or
manually by selecting /dev/sda1 as the partition on which to install grub.

The message: 'Installing grub on /dev/sda1' was displayed for around 2
minutes (after the manual selection).
Then a message similar to: 'grub could not be installed on /dev/sda1 do
you want to continue with the installation?' was displayed.

Using 'dmesg' the following possibly relevant information was noted by hand:
...
'Attempting to install a partition instead of a MBR. This is a bad idea!'
....
'grub-probe: sending ioctl 1261 to partition'
...
'GRUB can only be installed using block lists.
Blocklists unreliable use discouraged.'
...
more ioctl 1261 messages
...
...
'grub-installer: Installation finished. No error reported'
'grub-instsaller: grub-install ran successfully'
...
more ioctl 1261 messages
...
'--ratelimit: 106 callbacks supressed'

Thank you for your work on the Debian system,

David Kennedy











Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#659116; Package grub-installer. (Fri, 02 Mar 2012 16:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to lsorense@csclub.uwaterloo.ca (Lennart Sorensen):
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Fri, 02 Mar 2012 16:00:03 GMT) Full text and rfc822 format available.

Message #24 received at 659116@bugs.debian.org (full text, mbox):

From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
To: cbd <cbd1049@telenet.be>, 659116@bugs.debian.org
Cc: hans@streibel.net
Subject: Re: Bug#659116: 'grub2' not installing in /boot partition.
Date: Fri, 2 Mar 2012 10:49:00 -0500
On Fri, Mar 02, 2012 at 02:27:46PM +0100, cbd wrote:
> Additional notes on 659116 posted by David Kennedy.
> 
> Problem: 'grub2' not installing on /boot partition during installation
> of Debian Squeeze.
> 
> Installation mode: Graphical expert.
> 
> Package: grub-installer
> Version: 20110106+squeeze4
> Severity: grave
> Tags:
> Justification: prevents installation completing.
> 
> System
> CPU: Intel i7-870 2.93 GHz
> Board: Gigabyte GA-P55A-UD4 1156
> RAM: 4 x DDR3-2GB
> HD SATA Western Digital 2TB
> Graphics: NVIDIA Quadro NVS 295 DVI
> 
> Current OS: SuSE 11.3 (since Debian installation failed).
> Partitioning description: Encrypted LVM with a separate'/boot' partition.
> This is the partitioning system on the current SuSE 11.3 and was also
> the partitioning system chosen and installed on the Debian Squeeze that
> failed with the above problem.
> 
> Partitioning:
> 
> Device                Size        Enc    Type            FS Type    Mount
> /dev/sda            2.0 TB            WDC ...diskname       
> 
> /dev/sda1            256.00 MB        Linux native        Ext4        /boot
> /dev/sda2            2.0 TB        Encrypted    Linux LVM           
> 
> /dev/VOLUME        2.0 TB            LVM2
> /dev/VOLUME/HOME     800.00 GB        LV            Ext4        /home
> /dev/VOLUME/ROOT     200.00 GB        LV            Ext4        /
> /dev/VOLUME/SWAP       16.00 GB        LV            SWAP        SWAP
> /dev/VOLUME/TEMP     400.00 GB        LV            Ext4        /tmp
> /dev/VOLUME/USER     446.75 GB        LV            Ext4        /usr
> 
> Details.
> The installation went without problem until the installation attempted
> to load 'grub2' into the /boot partition.
> 
> The problem occurred when: this installation was attempted automatically
> by the installation
> or
> manually by selecting /dev/sda1 as the partition on which to install grub.
> 
> The message: 'Installing grub on /dev/sda1' was displayed for around 2
> minutes (after the manual selection).
> Then a message similar to: 'grub could not be installed on /dev/sda1 do
> you want to continue with the installation?' was displayed.
> 
> Using 'dmesg' the following possibly relevant information was noted by hand:
> ...
> 'Attempting to install a partition instead of a MBR. This is a bad idea!'
> ....
> 'grub-probe: sending ioctl 1261 to partition'
> ...
> 'GRUB can only be installed using block lists.
> Blocklists unreliable use discouraged.'
> ...
> more ioctl 1261 messages
> ...
> ...
> 'grub-installer: Installation finished. No error reported'
> 'grub-instsaller: grub-install ran successfully'
> ...
> more ioctl 1261 messages
> ...
> '--ratelimit: 106 callbacks supressed'
> 
> Thank you for your work on the Debian system,

When using GPT rather than old DOS partition tables (which is required
for 2TB+ drives), you are supposed to create a boot partition (not
/boot), that grub can install to since there isn't room to embed after
the partition table on GPT setups.

The type of the partition is supposed to be 'ef02 BIOS boot partition'

Once you have one of those, grub will happily install to /dev/sda by
embedding in that partition.

-- 
Len Sorensen




Severity set to 'important' from 'grave' Request was from edward@allcutt.me.uk to control@bugs.debian.org. (Sat, 03 Mar 2012 17:57:10 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#659116; Package grub-installer. (Wed, 07 Mar 2012 19:12:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to "heckle@btinternet.com" <heckle@btinternet.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 07 Mar 2012 19:12:10 GMT) Full text and rfc822 format available.

Message #31 received at 659116@bugs.debian.org (full text, mbox):

From: "heckle@btinternet.com" <heckle@btinternet.com>
To: lsorense@csclub.uwaterloo.ca (Lennart Sorensen), lsorense@csclub.uwaterloo.ca (Lennart Sorensen), 659116@bugs.debian.org
Subject: Re: Bug#659116: 'grub2' not installing in /boot partition.
Date: Wed, 07 Mar 2012 19:09:26 -0000
[Message part 1 (text/plain, inline)]
Please do not send bug reports
-------------------------------------------
On 2 Mar 2012 at 10:49, Lennart Sorensen wrote:

Subject:        	Bug#659116: 'grub2' not installing in /boot 
partition.
Send reply to:  	lsorense@csclub.uwaterloo.ca (Lennart Sorensen), 
659116@bugs.debian.org
Forwarded by:   	lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
Forwarded to:   	debian-bugs-dist@lists.debian.org
Date forwarded: 	Fri, 02 Mar 2012 16:00:01 +0000
Date sent:      	Fri, 2 Mar 2012 10:49:00 -0500
To:             	cbd <cbd1049@telenet.be>, 
659116@bugs.debian.org
Copies to:      	hans@streibel.net
From:           	lsorense@csclub.uwaterloo.ca (Lennart Sorensen)

[ Double-click this line for list subscription options ] 

On Fri, Mar 02, 2012 at 02:27:46PM +0100, cbd wrote:
> Additional notes on 659116 posted by David Kennedy.
> 
> Problem: 'grub2' not installing on /boot partition during installation
> of Debian Squeeze.
> 
> Installation mode: Graphical expert.
> 
> Package: grub-installer
> Version: 20110106+squeeze4
> Severity: grave
> Tags:
> Justification: prevents installation completing.
> 
> System
> CPU: Intel i7-870 2.93 GHz
> Board: Gigabyte GA-P55A-UD4 1156
> RAM: 4 x DDR3-2GB
> HD SATA Western Digital 2TB
> Graphics: NVIDIA Quadro NVS 295 DVI
> 
> Current OS: SuSE 11.3 (since Debian installation failed).
> Partitioning description: Encrypted LVM with a separate'/boot' partition.
> This is the partitioning system on the current SuSE 11.3 and was also
> the partitioning system chosen and installed on the Debian Squeeze that
> failed with the above problem.
> 
> Partitioning:
> 
> Device                Size        Enc    Type            FS Type    Mount
> /dev/sda            2.0 TB            WDC ...diskname       
> 
> /dev/sda1            256.00 MB        Linux native        Ext4        /boot
> /dev/sda2            2.0 TB        Encrypted    Linux LVM           
> 
> /dev/VOLUME        2.0 TB            LVM2
> /dev/VOLUME/HOME     800.00 GB        LV            Ext4        /home
> /dev/VOLUME/ROOT     200.00 GB        LV            Ext4        /
> /dev/VOLUME/SWAP       16.00 GB        LV            SWAP        SWAP
> /dev/VOLUME/TEMP     400.00 GB        LV            Ext4        /tmp
> /dev/VOLUME/USER     446.75 GB        LV            Ext4        /usr
> 
> Details.
> The installation went without problem until the installation attempted
> to load 'grub2' into the /boot partition.
> 
> The problem occurred when: this installation was attempted automatically
> by the installation
> or
> manually by selecting /dev/sda1 as the partition on which to install grub.
> 
> The message: 'Installing grub on /dev/sda1' was displayed for around 2
> minutes (after the manual selection).
> Then a message similar to: 'grub could not be installed on /dev/sda1 do
> you want to continue with the installation?' was displayed.
> 
> Using 'dmesg' the following possibly relevant information was noted by hand:
> ...
> 'Attempting to install a partition instead of a MBR. This is a bad idea!'
> ....
> 'grub-probe: sending ioctl 1261 to partition'
> ...
> 'GRUB can only be installed using block lists.
> Blocklists unreliable use discouraged.'
> ...
> more ioctl 1261 messages
> ...
> ...
> 'grub-installer: Installation finished. No error reported'
> 'grub-instsaller: grub-install ran successfully'
> ...
> more ioctl 1261 messages
> ...
> '--ratelimit: 106 callbacks supressed'
> 
> Thank you for your work on the Debian system,

When using GPT rather than old DOS partition tables (which is required
for 2TB+ drives), you are supposed to create a boot partition (not
/boot), that grub can install to since there isn't room to embed after
the partition table on GPT setups.

The type of the partition is supposed to be 'ef02 BIOS boot partition'

Once you have one of those, grub will happily install to /dev/sda by
embedding in that partition.

-- 
Len Sorensen



-- 
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact 
listmaster@lists.debian.org
Archive: 
http://lists.debian.org/20120302154900.GJ22241@caffeine.csclub.uwaterlo
o.ca

[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 18:34:29 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.