Bug#341381: marked as done (grub: Grub shell cannot find hard disk)
Debian Bug Tracking System
owner at bugs.debian.org
Tue Dec 27 13:18:08 UTC 2005
Your message dated Tue, 27 Dec 2005 14:07:42 +0100
with message-id <43B1207E.4070506 at web.de>
and subject line Problem is gone in version 0.97-2
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 30 Nov 2005 10:39:00 +0000
>From sven_joachim at web.de Wed Nov 30 02:39:00 2005
Return-path: <sven_joachim at web.de>
Received: from smtp05.web.de ([217.72.192.209])
by spohr.debian.org with esmtp (Exim 4.50)
id 1EhPMa-0005ne-BE
for submit at bugs.debian.org; Wed, 30 Nov 2005 02:39:00 -0800
Received: from [217.251.235.239] (helo=[127.0.0.1])
by smtp05.web.de with asmtp (WEB.DE 4.105 #333)
id 1EhPM5-0001Uw-00
for submit at bugs.debian.org; Wed, 30 Nov 2005 11:38:29 +0100
Message-ID: <438D80CB.8070400 at web.de>
Date: Wed, 30 Nov 2005 11:36:59 +0100
From: Sven Joachim <sven_joachim at web.de>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017)
X-Accept-Language: de-DE, de, en-us, en
MIME-Version: 1.0
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: grub: Grub shell cannot find hard disk
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: sven_joachim at web.de
X-Sender: sven_joachim at web.de
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: grub
Version: 0.97-1
Severity: important
After updating Grub to version 0.97-1, "grub-install /dev/hda" failed
with the error message
The file /boot/grub/stage1 not read correctly.
The following log is left in /tmp:
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> dump (hd0,2)/grub/stage1 /tmp/grublr2v3E
Error 21: Selected disk does not exist
grub> quit
Running grub manually gives the same "Error 21" when typing "root (hd0,2)",
for instance. I am not certain how severe this problem is; since I had
used Grub before and the stage* files have been correctly copied to the
directory /boot/grub by grub-install, it did not break anything for me.
But it could be a _big_ problem if Grub is not yet installed on the hard
disk. :-(
The file /boot/grub/device.map looks as follows:
(fd0) /dev/fd0
(hd0) /dev/hda
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (3, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.32
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages grub depends on:
ii libc6 2.3.5-8 GNU C Library: Shared libraries an
ii libncurses5 5.5-1 Shared libraries for terminal hand
grub recommends no packages.
-- no debconf information
---------------------------------------
Received: (at 341381-done) by bugs.debian.org; 27 Dec 2005 13:13:53 +0000
>From sven_joachim at web.de Tue Dec 27 05:13:53 2005
Return-path: <sven_joachim at web.de>
Received: from smtp06.web.de ([217.72.192.224])
by spohr.debian.org with esmtp (Exim 4.50)
id 1ErEeG-00033n-Th; Tue, 27 Dec 2005 05:13:53 -0800
Received: from [217.13.171.59] (helo=[192.168.5.16])
by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256)
(WEB.DE 4.105 #340)
id 1ErEdl-0003ki-00; Tue, 27 Dec 2005 14:13:21 +0100
Message-ID: <43B1207E.4070506 at web.de>
Date: Tue, 27 Dec 2005 14:07:42 +0100
From: Sven Joachim <sven_joachim at web.de>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017)
X-Accept-Language: de-DE, de, en-us, en
MIME-Version: 1.0
To: 341381-done at bugs.debian.org
CC: 341888 at bugs.debian.org, joeyh at debian.org
Subject: Problem is gone in version 0.97-2
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: sven_joachim at web.de
X-Sender: sven_joachim at web.de
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
In the new grub package 0.97-2, I no longer see the dreadful message
Error 21: Selected disk does not exist
when running grub unter a 2.4 kernel. AFICT, the only change that can be
responsible for this welcome change is the removal of the odirect.diff
patch, which was supposed to close #341888. And in the manpage for open(2)
I found the following statement about a difference between 2.4 and 2.6
kernelswhich supports this conjecture:
O_DIRECT
Try to minimize cache effects of the I/O to and from this file.
In general this will degrade performance, but it is useful in
special situations, such as when applications do their own
caching. File I/O is done directly to/from user space buffers.
The I/O is synchronous, i.e., at the completion of a read(2) or
write(2), data is guaranteed to have been transferred. Under
Linux 2.4 transfer sizes, and the alignment of user buffer and
file offset must all be multiples of the logical block size of
the file system. Under Linux 2.6 alignment to 512-byte boundaries
suffices.
So it seems that the odirect.diff patch introduced the problem, and since
it has been removed I'm closing this bug.
More information about the Pkg-grub-devel
mailing list