Debian Bug report logs - #564083
error: fd1 cannot get C/H/S values on every boot with Asus M4A785-M

version graph

Package: grub-pc; Maintainer for grub-pc is GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>; Source for grub-pc is src:grub2.

Reported by: jurriaan <thunder7@xs4all.nl>

Date: Thu, 7 Jan 2010 15:54:01 UTC

Severity: important

Found in version grub2/1.98~20100101-1

Done: Macker Intel <mackerintel@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#564083; Package grub-pc. (Thu, 07 Jan 2010 15:54:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to jurriaan <thunder7@xs4all.nl>:
New Bug report received and forwarded. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Thu, 07 Jan 2010 15:54:05 GMT) Full text and rfc822 format available.

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

From: jurriaan <thunder7@xs4all.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: error: fd1 cannot get C/H/S values on every boot with Asus M4A785-M
Date: Thu, 07 Jan 2010 16:50:28 +0100
Package: grub-pc
Version: 1.98~20100101-1
Severity: important


My new Asus M4A785-M motherboard by default presents usb devices as floppies by default when booting.

This always breaks the boot, it says


error: fd1 cannot get C/H/S values

and leaves me at the rescue prompt.

If I type 

insmod /boot/grub/linux.mod
normal

I get the menu file as expected and everything works.

This is related to the BIOS of this motherboard, which presents USB storage devices as floppies during boot. The default setting 'Auto' for USB Mass Storage Device Configuration gives this error. If I set USB Mass Storage Device Configuration to 'Hard Disk', I don't get an error.

I did find a bug report during late night debugging somewhere on the web where the error from probing the 
floppy set the errno variable, which variable wasn't cleared in the next function (insmod, IIRC), so it
appeared the next function did return an error, and rescue mode was started.

Unfortunately, I haven't been able to find this report again on re-searching the WWW.

Hacking the source of grub-pc to display the C/H/S values found gave me:

error: fd1 cannot get C/H/S values (C/H/S 421/165/56)

At the moment, I've solved it by changing my BIOS setup, but an error (any error) about a floppy drive
where the grub.cfg doesn't need a floppy to boot shouldn't interrupt normal booting. It might warn, but
it shouldn't stop booting. Also, the message is at least misleading since there are C/H/S values found
internally.

The motherboard is a common AM2+ socket consumer motherboard with AMD's 785G chipset.

Kind regards,
Jurriaan
-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/a0f917c8-5e68-4726-81f9-4659034e80f4 / ext2 rw,relatime,errors=remount-ro 0 0
/dev/sdb1 /space1 ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sdd1 /space2 ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sdc4 /backup ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda5 /old ext2 rw,relatime,errors=continue 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
(hd2)	/dev/sdc
(hd3)	/dev/sdd
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set a0f917c8-5e68-4726-81f9-4659034e80f4
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
set locale_dir=/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set a0f917c8-5e68-4726-81f9-4659034e80f4
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md0)
	search --no-floppy --fs-uuid --set a0f917c8-5e68-4726-81f9-4659034e80f4
	linux	/boot/vmlinuz-2.6.32-trunk-amd64 root=UUID=a0f917c8-5e68-4726-81f9-4659034e80f4 ro  quiet
	initrd	/boot/initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64 (recovery mode)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md0)
	search --no-floppy --fs-uuid --set a0f917c8-5e68-4726-81f9-4659034e80f4
	linux	/boot/vmlinuz-2.6.32-trunk-amd64 root=UUID=a0f917c8-5e68-4726-81f9-4659034e80f4 ro single 
	initrd	/boot/initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-amd64" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md0)
	search --no-floppy --fs-uuid --set a0f917c8-5e68-4726-81f9-4659034e80f4
	linux	/boot/vmlinuz-2.6.30-2-amd64 root=UUID=a0f917c8-5e68-4726-81f9-4659034e80f4 ro  quiet
	initrd	/boot/initrd.img-2.6.30-2-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.30-2-amd64 (recovery mode)" {
	insmod raid
	insmod mdraid
	insmod ext2
	set root=(md0)
	search --no-floppy --fs-uuid --set a0f917c8-5e68-4726-81f9-4659034e80f4
	linux	/boot/vmlinuz-2.6.30-2-amd64 root=UUID=a0f917c8-5e68-4726-81f9-4659034e80f4 ro single 
	initrd	/boot/initrd.img-2.6.30-2-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.28          Debian configuration management sy
ii  grub-common              1.98~20100101-1 GRand Unified Bootloader, version 
ii  libc6                    2.10.2-4        Embedded GNU C Library: Shared lib
ii  ucf                      3.0025          Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto

-- debconf information:
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline:
* grub-pc/install_devices: (hd0)
  grub-pc/postrm_purge_boot_grub: false
* grub2/linux_cmdline:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
  grub-pc/chainload_from_menu.lst: true




Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#564083; Package grub-pc. (Sun, 17 Jan 2010 09:21:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to kilobug@freesurf.fr (Gaël Le Mignot):
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Sun, 17 Jan 2010 09:21:07 GMT) Full text and rfc822 format available.

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

From: kilobug@freesurf.fr (Gaël Le Mignot)
To: 564083@bugs.debian.org
Subject: Problem confirmed
Date: Sun, 17 Jan 2010 10:00:11 +0100
Hello,

I have exactly the same problem on my ASRock motherboard.

There are work-arounds,  but since it breaks boot  and leaves the user
pretty confused, it would be nice to have a fix in a way or another.

Good luck to the Debian and GRUB hackers ;)




Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#564083; Package grub-pc. (Thu, 25 Feb 2010 12:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Francesco Potortì <Potorti@isti.cnr.it>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Thu, 25 Feb 2010 12:57:03 GMT) Full text and rfc822 format available.

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

From: Francesco Potortì <Potorti@isti.cnr.it>
To: 564083@bugs.debian.org
Subject: same problem on Asus M4A785TD-M
Date: Thu, 25 Feb 2010 13:52:39 +0100
I have the same problem on an Asus M4A785TD-M EVO motherboard.
My workaround till now has been to

 grub rescue> insmod /boot/grub/normal.mod
 grub rescue> normal

but a non-sophisticated user would just be blocked by this.

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: Potorti@isti.cnr.it
(entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/





Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#564083; Package grub-pc. (Mon, 22 Mar 2010 23:24:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Oliver Rompcik" <oliver@rompcik.de>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Mon, 22 Mar 2010 23:24:06 GMT) Full text and rfc822 format available.

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

From: "Oliver Rompcik" <oliver@rompcik.de>
To: 564083@bugs.debian.org
Subject: Bug confirmed
Date: Mon, 22 Mar 2010 23:53:17 +0100 (CET)
I can confirm this bug, trying to boot a RAID 1 /boot-partition on a Dell
T105.

Although many users have reported some workarounds (like connecting a
floppy and activating it in BIOS), there is a RAID-patch from Vladimir
Serbinenko which should fix the problem, see
http://savannah.gnu.org/bugs/?28815

Patch:
http://savannah.gnu.org/bugs/download.php?file_id=19785

This should work on 1.97 and 1.98-versions of grub.





Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#564083; Package grub-pc. (Fri, 23 Apr 2010 11:45:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Fri, 23 Apr 2010 11:45:08 GMT) Full text and rfc822 format available.

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

From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: 564083@bugs.debian.org
Subject: Re: fd1 cannot get C/H/S values on every boot with Asus M4A785-M
Date: Fri, 23 Apr 2010 13:44:07 +0200
[Message part 1 (text/plain, inline)]
Should be fixed in 1.98

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[signature.asc (application/pgp-signature, attachment)]

Reply sent to Macker Intel <mackerintel@gmail.com>:
You have taken responsibility. (Sun, 05 Sep 2010 22:57:10 GMT) Full text and rfc822 format available.

Notification sent to jurriaan <thunder7@xs4all.nl>:
Bug acknowledged by developer. (Sun, 05 Sep 2010 22:57:10 GMT) Full text and rfc822 format available.

Message #30 received at 564083-done@bugs.debian.org (full text, mbox):

From: Macker Intel <mackerintel@gmail.com>
To: 564083-done@bugs.debian.org
Cc: thunder7@xs4all.nl
Subject: Closing
Date: Mon, 06 Sep 2010 00:55:16 +0200
I have reasons to belive this bug to be fixed and the reporter failed to
respond to retest request in quite a long time




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 04 Oct 2010 07:37:18 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 18:55:52 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.