Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Grub error, error: fd0 read error

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
_stefanos_
Posts: 8
Joined: 2011-06-17 05:58

Re: Grub error, error: fd0 read error

#16 Post by _stefanos_ »

I'm afraid I don't know how to do it. Can you please provide me with the necessary command so I may help?

Cheers

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: Grub error, error: fd0 read error

#17 Post by kiyop »

Thanks for your kind consideration.

Please execute the following with root privilege.

Code: Select all

apt-get update
apt-get install wget unzip
wget http://downloads.sourceforge.net/project/bootinfoscript/bootinfoscript/0.60/boot_info_script060.zip
unzip boot_info_script060.zip
bash ./boot_info_script.sh
The result is saved in the file named "RESULTS.txt".
Please open with text editor and so on and submit its content.

Thanks in advance.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

_stefanos_
Posts: 8
Joined: 2011-06-17 05:58

Re: Grub error, error: fd0 read error

#18 Post by _stefanos_ »

The latest script has an issue, I guess somewhere with a closing fi-if because the complain about parentheses seems fine to me; maybe I am wrong. But anyway, I have downloaded the 0.55 edition and ran the test. Here you are

Code: Select all

                Boot Info Script 0.55    dated February 15th, 2010                    

============================= Boot Info Summary: ==============================

 => Grub 2 is installed in the MBR of /dev/sda and looks for Wvt.

sda1: _________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info:  
    Mounting failed:
mount: unknown filesystem type ''

sda2: _________________________________________________________________________

    File system:       LVM2_member
    Boot sector type:  -
    Boot sector info:  

DesktopPC-root: _________________________________________________________________________

    File system:       ext3
    Boot sector type:  Grub 2
    Boot sector info:  Grub 2 is installed in the boot sector of 
                       DesktopPC-root and looks at sector 148907 of the same 
                       hard drive for core.img, but core.img can not be found 
                       at this location.
    Operating System:  Debian GNU/Linux wheezy/sid
    Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

DesktopPC-swap_1: _________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:  

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sda1    *             63       498,014       497,952  83 Linux
/dev/sda2             498,015   625,137,344   624,639,330  8e Linux LVM


blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                         

/dev/mapper/DesktopPC-root 5737b5d1-dc33-492b-972e-f78d49e4c006   ext3                                     
/dev/mapper/DesktopPC-swap_1                                        swap                                     
/dev/sda2        W27y8M-vK1C-jMqV-eF3i-1isz-zE5Z-n4hIX4 LVM2_member                               
/dev/sda: PTTYPE="dos" 

=============================== "ls -R /dev/mapper/" output: ===============================
/dev/mapper:
control
DesktopPC-root
DesktopPC-swap_1

============================ "mount | grep ^/dev  output: ===========================

Device           Mount_Point              Type       Options

/dev/mapper/DesktopPC-root /                        ext3       (rw,errors=remount-ro,commit=0)


====================== DesktopPC-root/boot/grub/grub.cfg: ======================

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

### BEGIN /etc/grub.d/00_header ###
insmod lvm
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod lvm
insmod part_msdos
insmod ext2
set root='(DesktopPC-root)'
search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod lvm
  insmod part_msdos
  insmod ext2
  set root='(DesktopPC-root)'
  search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
  set locale_dir=($root)/boot/grub/locale
  set lang=C
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod lvm
insmod part_msdos
insmod ext2
set root='(DesktopPC-root)'
search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/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.38-2-686' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod lvm
	insmod part_msdos
	insmod ext2
	set root='(DesktopPC-root)'
	search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
	echo	'Loading Linux 2.6.38-2-686 ...'
	linux	/boot/vmlinuz-2.6.38-2-686 root=/dev/mapper/DesktopPC-root ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.38-2-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38-2-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod lvm
	insmod part_msdos
	insmod ext2
	set root='(DesktopPC-root)'
	search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
	echo	'Loading Linux 2.6.38-2-686 ...'
	linux	/boot/vmlinuz-2.6.38-2-686 root=/dev/mapper/DesktopPC-root ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.38-2-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod lvm
	insmod part_msdos
	insmod ext2
	set root='(DesktopPC-root)'
	search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/DesktopPC-root ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod lvm
	insmod part_msdos
	insmod ext2
	set root='(DesktopPC-root)'
	search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=/dev/mapper/DesktopPC-root ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod lvm
	insmod part_msdos
	insmod ext2
	set root='(DesktopPC-root)'
	search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
	echo	'Loading Linux 2.6.26-2-686 ...'
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/mapper/DesktopPC-root ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod lvm
	insmod part_msdos
	insmod ext2
	set root='(DesktopPC-root)'
	search --no-floppy --fs-uuid --set=root 5737b5d1-dc33-492b-972e-f78d49e4c006
	echo	'Loading Linux 2.6.26-2-686 ...'
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/mapper/DesktopPC-root ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.26-2-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

========================== DesktopPC-root/etc/fstab: ==========================

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/DesktopPC-root /               ext3    errors=remount-ro 0       1
#/dev/sda1       /boot           ext2    defaults        0       2
#UUID=1a602b40-cc39-4cea-9894-d28ff3451d80       /boot           ext2    defaults        0       2
/dev/mapper/DesktopPC-swap_1 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/scd1       /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

============== DesktopPC-root: Location of files loaded by Grub: ==============


 230.6GB: boot/grub/core.img
 229.5GB: boot/grub/grub.cfg
 128.9GB: boot/initrd.img-2.6.26-2-686
 128.9GB: boot/initrd.img-2.6.26-2-686.bak
 128.9GB: boot/initrd.img-2.6.32-5-686
  91.3GB: boot/initrd.img-2.6.38-2-686
 128.9GB: boot/vmlinuz-2.6.26-2-686
 128.9GB: boot/vmlinuz-2.6.32-5-686
 128.9GB: boot/vmlinuz-2.6.38-2-686

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: Grub error, error: fd0 read error

#19 Post by kiyop »

Thanks for your posting the result.
In my installed debian (on non-lvm partition), boot info script version 0.60 correctly worked and posted the result.
Maybe, version 0.60 has some bug in dealing LVM or so, about parentheses and/or if-fi.

The result of boot info script is interesting. I will analyze more.
But boot info script version 0.55 may give wrong report for new version of GRUB2 or on LVM, though I am not sure.

Anyway, thank you very much for posting the result.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

mimo
Posts: 1
Joined: 2011-07-05 12:46

Re: Grub error, error: fd0 read error

#20 Post by mimo »

Have you worked this one out? Or made any progress? I have a very similar case. I have done two installs/upgrades on almost identical machines and have the "wait + fd0 read error + wait" issue on one machine only.

Here's what I did (or better say what I can remember).
  • had migrated my system from 32 bit to 64 bit Debian Lenny using debootstrap on the swap partition on a serial console
  • upgraded to grub2 (1.96 haha!)
  • all looking good, now convert to a raid1 ready system
  • I copied my basic system from /dev/sda1 to /dev/md1 (consisting of a degraded array of two devices with only /dev/sda2 present)
  • rebooted into that system - all fine
  • created /dev/md0 consisting of /dev/sda1 and a missing device
  • copied my system back to /dev/md0
  • ran update-grub etc
  • reboot
  • the wait + fd0 read error + wait happens. The system boots still okay but it's slightly disconcerting and anotehr sysadmin here might panic and just hit reset while waiting
I've tried most of the things I've found - like grub-install --no-floppy --recheck, ran update-grub two million times etc. I can't try the scarier things like dd'ing sda because the machine is in the co-lo center.
Anything else I could try?

noni
Posts: 1
Joined: 2012-08-23 07:36

Re: Grub error, error: fd0 read error

#21 Post by noni »

I got the same error and disabled the floppy drive in BIOS. All is well now :-)

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: Grub error, error: fd0 read error

#22 Post by kiyop »

noni wrote:I got the same error and disabled the floppy drive in BIOS. All is well now :-)
Nice method! Cheers! :)
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

Al.Harris
Posts: 1
Joined: 2014-11-19 14:06

Re: Grub error, error: fd0 read error

#23 Post by Al.Harris »

Same error here. Running software mirroring with a new install of Wheezy. I disabled the floppy through the BIOS settings and that took care of it for me as well. Thanks for the help.

Post Reply