[SOLVED] error: hd0 out of disk Please Help

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[SOLVED] error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 3:27 pm

Hello guys, first of all if this is in the wrong place please forgive me and move to the correct place. Also I know there are a lot of posts about this but I have tried some suggestions and nothing is working.

I have a triple boot setup that is Windows Vista, Linux Mint 12 and Linux Mint 13 where LM13 is my primary option on the boot screen. Everything has worked fine until yesterday I did a sudo apt-get update & sudo apt-get upgrade and updated whatever it asked to update, now none of my partitions will boot I get the following errors before the GRUB screen:

Code: Select all
error: hd0 out of disk
error: out of disk
error: hd0 out of disk
error: no suitable mode found
error: out of disk
error: out of disk
error: out of disk



After that I get the GRUB menu but when I click enter to boot on Linux Mint 13 I get:
Code: Select all
error: no such partition
error: unknown filesystem

Press any key to continue...


Then it used to just hang there and do nothing. All three of my partitions LM12, LM13, and Win Vista do this, with the exception that Vista will finally load after a few seconds and I can continue with no problem. I tell you I have never been so happy to see the Microsoft Windows logo come up on my screen. After trying a few suggestions I can now boot to my Linux Mint 13 (I am typing this from it) but I still get the same errors if I try to reboot or shutdown and then boot.

I have tried reinstalling GRUB, updating grub, etc. but nothing is working. I would appreciate if some kind soul can help me as this is beginning to worry me.

The following is the output of sudo fdisk -l
Code: Select all
geo@geo-pc ~ $ sudo fdisk -l
[sudo] password for geo:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb53a46d5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   308254719   154127328+   7  HPFS/NTFS/exFAT
/dev/sda2       468482048   488390655     9954304    7  HPFS/NTFS/exFAT
/dev/sda3       308256766   468482047    80112641    5  Extended
/dev/sda5       308256768   436248575    63995904   83  Linux
/dev/sda6       464347136   468482047     2067456   82  Linux swap / Solaris
/dev/sda7       436250624   458582015    11165696   83  Linux
/dev/sda8       458584064   464343039     2879488   82  Linux swap / Solaris

Partition table entries are not in disk order



Please help and thank you in advance. Also I am still fairly a Linux newbie.
Last edited by gorellana09 on Tue Jun 19, 2012 7:46 pm, edited 1 time in total.
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Linux Mint is funded by ads and donations.
 

Re: error: hd0 out of disk Please Help

Postby mintybits on Tue Jun 19, 2012 3:32 pm

If you download and run this http://bootinfoscript.sourceforge.net/ and post the results inside code tags we can see what is going on.
mintybits
Level 5
Level 5
 
Posts: 568
Joined: Fri Jan 27, 2012 5:09 pm

Re: error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 3:40 pm

mintybits wrote:If you download and run this http://bootinfoscript.sourceforge.net/ and post the results inside code tags we can see what is going on.


Thanks for your fast response I will do that right now and post back.
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Re: error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 3:50 pm

@mintybits, at the risk of sounding like a major noob, the script is not working for me following the instructions on the download page. I get:

Code: Select all
geo@geo-pc ~ $ sudo bash ~/Desktop/bootinfoscript.sh
[sudo] password for geo:
bash: /home/geo/Desktop/bootinfoscript.sh: No such file or directory


I unzipped it to my Desktop
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Re: error: hd0 out of disk Please Help

Postby mintybits on Tue Jun 19, 2012 3:56 pm

Ah. Their instructions are out of date. Try
sudo bash ~/Desktop/bootinfoscript
mintybits
Level 5
Level 5
 
Posts: 568
Joined: Fri Jan 27, 2012 5:09 pm

Re: error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 3:59 pm

mintybits wrote:Ah. Their instructions are out of date. Try
sudo bash ~/Desktop/bootinfoscript


Thank you that worked. Here is the output.

Code: Select all
                  Boot Info Script 0.61      [1 April 2012]


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

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    for (,msdos5)/boot/grub on this drive.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows Vista
    Boot files:        /bootmgr /boot/bcd

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System: 
    Boot files:        /bootmgr

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info:

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Linux Mint 13 Maya
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________________________________

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

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Linux Mint 12 Lisa
    Boot files:        /boot/grub/grub.cfg /etc/fstab
                       /boot/extlinux/extlinux.conf /boot/grub/core.img

sda8: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *             63   308,254,719   308,254,657   7 NTFS / exFAT / HPFS
/dev/sda2         468,482,048   488,390,655    19,908,608   7 NTFS / exFAT / HPFS
/dev/sda3         308,256,766   468,482,047   160,225,282   5 Extended
/dev/sda5         308,256,768   436,248,575   127,991,808  83 Linux
/dev/sda6         464,347,136   468,482,047     4,134,912  82 Linux swap / Solaris
/dev/sda7         436,250,624   458,582,015    22,331,392  83 Linux
/dev/sda8         458,584,064   464,343,039     5,758,976  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        C6CA2D63CA2D514B                       ntfs       
/dev/sda2        12BC0490BC047091                       ntfs       HP_RECOVERY
/dev/sda5        2f5948c5-31db-4fda-b2b1-fad2c6d29e4d   ext4       
/dev/sda6        aa7c21a4-5a8a-4ad5-83d2-467f64d59679   swap       
/dev/sda7        03bd0ed6-b08d-4305-8253-6f1e1bc815a3   ext4       
/dev/sda8        6d211696-1a36-493d-a40a-c0fc06776592   swap       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda5        /                        ext4       (rw,errors=remount-ro)


=========================== sda5/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 ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

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

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 2f5948c5-31db-4fda-b2b1-fad2c6d29e4d
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos5)'
  search --no-floppy --fs-uuid --set=root 2f5948c5-31db-4fda-b2b1-fad2c6d29e4d
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="$1"
   if [ "$1" = "keep" ]; then
      set vt_handoff=vt.handoff=7
   else
      set vt_handoff=
   fi
}
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 13 Cinnamon 32-bit, 3.2.0-23-generic (/dev/sda5)' --class linuxmint --class gnu-linux --class gnu --class os {
   recordfail
   gfxmode $linux_gfx_mode
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set=root 2f5948c5-31db-4fda-b2b1-fad2c6d29e4d
   linux   /boot/vmlinuz-3.2.0-23-generic root=UUID=2f5948c5-31db-4fda-b2b1-fad2c6d29e4d ro   quiet splash reboot=acpi $vt_handoff
   initrd   /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Linux Mint 13 Cinnamon 32-bit, 3.2.0-23-generic (/dev/sda5) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
   recordfail
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set=root 2f5948c5-31db-4fda-b2b1-fad2c6d29e4d
   echo   'Loading Linux 3.2.0-23-generic ...'
   linux   /boot/vmlinuz-3.2.0-23-generic root=UUID=2f5948c5-31db-4fda-b2b1-fad2c6d29e4d ro recovery nomodeset
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-3.2.0-23-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set=root 2f5948c5-31db-4fda-b2b1-fad2c6d29e4d
   linux16   /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set=root 2f5948c5-31db-4fda-b2b1-fad2c6d29e4d
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" --class windows --class os {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root C6CA2D63CA2D514B
   chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda2)" --class windows --class os {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos2)'
   search --no-floppy --fs-uuid --set=root 12BC0490BC047091
   chainloader +1
}
menuentry "Linux Mint 12 32-bit, 3.0.0-12-generic (/dev/sda7) (on /dev/sda7)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos7)'
   search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
   linux /boot/vmlinuz-3.0.0-12-generic root=UUID=03bd0ed6-b08d-4305-8253-6f1e1bc815a3 ro quiet splash vt.handoff=7
   initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry "Linux Mint 12 32-bit, 3.0.0-12-generic (/dev/sda7) -- recovery mode (on /dev/sda7)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos7)'
   search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
   linux /boot/vmlinuz-3.0.0-12-generic root=UUID=03bd0ed6-b08d-4305-8253-6f1e1bc815a3 ro recovery nomodeset
   initrd /boot/initrd.img-3.0.0-12-generic
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda5 during installation
UUID=2f5948c5-31db-4fda-b2b1-fad2c6d29e4d /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=aa7c21a4-5a8a-4ad5-83d2-467f64d59679 none            swap    sw              0       0
# swap was on /dev/sda8 during installation
UUID=6d211696-1a36-493d-a40a-c0fc06776592 none            swap    sw              0       0
--------------------------------------------------------------------------------

=================== sda5: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

 185.269451141 = 198.931558400  boot/grub/core.img                             1
 197.441413879 = 212.001103872  boot/grub/grub.cfg                             1
 150.161655426 = 161.234849792  boot/initrd.img-3.2.0-23-generic               2
 197.121128082 = 211.657199616  boot/vmlinuz-3.2.0-23-generic                  1
 150.161655426 = 161.234849792  initrd.img                                     2
 150.161655426 = 161.234849792  initrd.img.old                                 2
 197.121128082 = 211.657199616  vmlinuz                                        1

=========================== sda7/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 ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="6"
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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

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

insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos7)'
  search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 12 32-bit, 3.0.0-12-generic (/dev/sda7)' --class linuxmint --class gnu-linux --class gnu --class os {
   recordfail
   set gfxpayload=$linux_gfx_mode
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos7)'
   search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
   linux   /boot/vmlinuz-3.0.0-12-generic root=UUID=03bd0ed6-b08d-4305-8253-6f1e1bc815a3 ro   quiet splash vt.handoff=7
   initrd   /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Linux Mint 12 32-bit, 3.0.0-12-generic (/dev/sda7) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
   recordfail
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos7)'
   search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
   echo   'Loading Linux 3.0.0-12-generic ...'
   linux   /boot/vmlinuz-3.0.0-12-generic root=UUID=03bd0ed6-b08d-4305-8253-6f1e1bc815a3 ro recovery nomodeset
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos7)'
   search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
   linux16   /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos7)'
   search --no-floppy --fs-uuid --set=root 03bd0ed6-b08d-4305-8253-6f1e1bc815a3
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" --class windows --class os {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set=root C6CA2D63CA2D514B
   chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda2)" --class windows --class os {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos2)'
   search --no-floppy --fs-uuid --set=root 12BC0490BC047091
   chainloader +1
}
menuentry "Linux Mint 11, 2.6.38-8-generic (/dev/sda5) (on /dev/sda5)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set=root 899f0eb0-2701-41c1-8814-a8c2a4d710de
   linux /boot/vmlinuz-2.6.38-8-generic root=UUID=899f0eb0-2701-41c1-8814-a8c2a4d710de ro vga=786 quiet splash vt.handoff=7
   initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry "Linux Mint 11, 2.6.38-8-generic (/dev/sda5) -- recovery mode (on /dev/sda5)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set=root 899f0eb0-2701-41c1-8814-a8c2a4d710de
   linux /boot/vmlinuz-2.6.38-8-generic root=UUID=899f0eb0-2701-41c1-8814-a8c2a4d710de ro single vga=786
   initrd /boot/initrd.img-2.6.38-8-generic
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda7/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda7 during installation
UUID=03bd0ed6-b08d-4305-8253-6f1e1bc815a3 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda8 during installation
UUID=6d211696-1a36-493d-a40a-c0fc06776592 none            swap    sw              0       0
--------------------------------------------------------------------------------

====================== sda7/boot/extlinux/extlinux.conf: =======================

--------------------------------------------------------------------------------
## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: extlinux-update


default l0
prompt 1
timeout 50

include themes/debian/theme.cfg
--------------------------------------------------------------------------------

=================== sda7: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

 209.073753357 = 224.491233280  boot/grub/core.img                             1
 208.511775970 = 223.887814656  boot/grub/grub.cfg                             1
 213.181636810 = 228.902039552  boot/initrd.img-3.0.0-12-generic               3
 214.545215607 = 230.366171136  boot/vmlinuz-3.0.0-12-generic                  1
 213.181636810 = 228.902039552  initrd.img                                     3
 214.545215607 = 230.366171136  vmlinuz                                        1

================= sda7: Location of files loaded by Syslinux: ==================

           GiB - GB             File                                 Fragment(s)

 214.152088165 = 229.944053760  boot/extlinux/chain.c32                        1
 214.160037994 = 229.952589824  boot/extlinux/extlinux.conf                    1

============== sda7: Version of COM32(R) files used by Syslinux: ===============

 boot/extlinux/chain.c32            :  COM32R module (v4.xx)

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda3

00000000  54 1d 00 00 28 1e 00 00  af 00 00 00 c4 c6 16 00  |T...(...........|
00000010  01 00 00 00 12 00 0b 11  f8 ff ff ff 74 00 00 00  |............t...|
00000020  69 54 61 62 00 00 00 00  02 00 06 00 0e 00 39 11  |iTab..........9.|
00000030  05 c7 16 00 01 00 00 00  8c 3b 01 00 0e 00 39 11  |.........;....9.|
00000040  2a c7 16 00 01 00 00 00  d5 61 01 00 02 00 06 00  |*........a......|
00000050  4a 00 10 11 00 00 00 00  94 1f 00 00 00 00 00 00  |J...............|
00000060  bc 00 00 00 0b 00 00 00  b6 00 00 00 a9 61 01 00  |.............a..|
00000070  80 c7 16 00 01 00 01 43  4d 46 43 4f 75 74 6c 6f  |.......CMFCOutlo|
00000080  6f 6b 42 61 72 54 6f 6f  6c 42 61 72 3a 3a 4f 6e  |okBarToolBar::On|
00000090  55 70 64 61 74 65 43 6d  64 55 49 00 1e 00 12 10  |UpdateCmdUI.....|
000000a0  10 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000b0  00 00 00 00 00 00 00 80  02 00 00 00 12 00 0b 11  |................|
000000c0  f0 ff ff ff 9c 61 01 00  74 68 69 73 00 00 00 00  |.....a..this....|
000000d0  16 00 0b 11 08 00 00 00  d8 3a 00 00 5f 5f 66 6f  |.........:..__fo|
000000e0  72 6d 61 6c 00 00 00 00  16 00 0b 11 0c 00 00 00  |rmal............|
000000f0  74 00 00 00 5f 5f 66 6f  72 6d 61 6c 00 00 00 00  |t...__formal....|
00000100  16 00 03 11 50 1e 00 00  70 1f 00 00 ab 00 00 00  |....P...p.......|
00000110  8b c7 16 00 01 00 00 00  0e 00 0b 11 fc ff ff ff  |................|
00000120  74 00 00 00 69 00 00 00  16 00 03 11 00 1f 00 00  |t...i...........|
00000130  6c 1f 00 00 7d 00 00 00  b4 c7 16 00 01 00 00 00  |l...}...........|
00000140  16 00 0b 11 f4 ff ff ff  75 00 00 00 6e 4e 65 77  |........u...nNew|
00000150  53 74 79 6c 65 00 00 00  12 00 0b 11 f8 ff ff ff  |Style...........|
00000160  74 00 00 00 69 54 61 62  00 00 00 00 02 00 06 00  |t...iTab........|
00000170  02 00 06 00 0e 00 39 11  03 c8 16 00 01 00 00 00  |......9.........|
00000180  8c 3b 01 00 0e 00 39 11  2f c8 16 00 01 00 00 00  |.;....9./.......|
00000190  d0 31 01 00 02 00 06 00  4a 00 10 11 00 00 00 00  |.1......J.......|
000001a0  a0 20 00 00 00 00 00 00  77 00 00 00 0b 00 00 00  |. ......w.......|
000001b0  71 00 00 00 ae 61 01 00  50 c8 16 00 01 00 00 fe  |q....a..P.......|
000001c0  ff ff 83 fe ff ff 02 00  00 00 00 00 a1 07 00 fe  |................|
000001d0  ff ff 05 fe ff ff 02 b0  4d 09 00 28 3f 00 00 00  |........M..(?...|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


========= Devices which don't seem to have a corresponding hard drive: =========

sdb

=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt


gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Re: error: hd0 out of disk Please Help

Postby mintybits on Tue Jun 19, 2012 4:31 pm

The bootinfoscript output looks ok to me. So I don't know what the problem is.
You said that it used to hang when you selected Mint 13 but you found a way to boot it. How did you do that?

The hd0 errors prior to the Grub menu are suspicious. I'm not sure what is producing those errors. "no such partition" and "out of disk" suggest some disk read problems. There may be a problem with your disk or your disk's cables, however, it is suscpicious that this has started occuring coincident with an Mint 13 upgrade.

Would you check your disk's SMART data? To do this:
sudo apt-get install smartmontools
sudo smartctl -a /dev/sda


This will show a load of performance data for your disk (assuming your disk supports SMART). You want to look for non-zero values in "raw read error rate", "seek error rate", "reallocated sector count".
mintybits
Level 5
Level 5
 
Posts: 568
Joined: Fri Jan 27, 2012 5:09 pm

Re: error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 4:41 pm

I got it to boot after following some suggestions on similar threads to reinstall grub. It still hangs there however not forever, it will boot after a good minute or so.


Here is the output on the command you suggested:

Code: Select all
geo@geo-pc ~ $ sudo smartctl -a /dev/sda
smartctl 5.41 2011-06-09 r3365 [i686-linux-3.2.0-23-generic] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Scorpio Blue Serial ATA
Device Model:     WDC WD2500BEVS-60UST0
Serial Number:    WD-WXE508JW8650
LU WWN Device Id: 5 0014ee 256fbde90
Firmware Version: 01.01A01
User Capacity:    250,059,350,016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Tue Jun 19 13:34:44 2012 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.

General SMART Values:
Offline data collection status:  (0x00)   Offline data collection activity
               was never started.
               Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)   The previous self-test routine completed
               without error or no self-test has ever
               been run.
Total time to complete Offline
data collection:       ( 9600) seconds.
Offline data collection
capabilities:           (0x5b) SMART execute Offline immediate.
               Auto Offline data collection on/off support.
               Suspend Offline collection upon new
               command.
               Offline surface scan supported.
               Self-test supported.
               No Conveyance Self-test supported.
               Selective Self-test supported.
SMART capabilities:            (0x0003)   Saves SMART data before entering
               power-saving mode.
               Supports SMART auto save timer.
Error logging capability:        (0x01)   Error logging supported.
               General Purpose Logging supported.
Short self-test routine
recommended polling time:     (   2) minutes.
Extended self-test routine
recommended polling time:     ( 115) minutes.
SCT capabilities:           (0x303f)   SCT Status supported.
               SCT Error Recovery Control supported.
               SCT Feature Control supported.
               SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       2589
  3 Spin_Up_Time            0x0027   189   188   021    Pre-fail  Always       -       1533
  4 Start_Stop_Count        0x0032   098   098   000    Old_age   Always       -       2333
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002f   100   253   051    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   073   073   000    Old_age   Always       -       20143
 10 Spin_Retry_Count        0x0033   100   100   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   051    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   098   098   000    Old_age   Always       -       2246
187 Reported_Uncorrect      0x0032   028   001   000    Old_age   Always       -       1889
188 Command_Timeout         0x0032   095   094   000    Old_age   Always       -       51540394045
190 Airflow_Temperature_Cel 0x0022   046   038   040    Old_age   Always   In_the_past 54
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       145
193 Load_Cycle_Count        0x0032   187   187   000    Old_age   Always       -       39775
194 Temperature_Celsius     0x0022   093   085   000    Old_age   Always       -       54
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       4
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       28
200 Multi_Zone_Error_Rate   0x0009   100   253   051    Pre-fail  Offline      -       0

SMART Error Log Version: 1
ATA Error Count: 1967 (device log contains only the most recent five errors)
   CR = Command Register [HEX]
   FR = Features Register [HEX]
   SC = Sector Count Register [HEX]
   SN = Sector Number Register [HEX]
   CL = Cylinder Low Register [HEX]
   CH = Cylinder High Register [HEX]
   DH = Device/Head Register [HEX]
   DC = Device Command Register [HEX]
   ER = Error register [HEX]
   ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1967 occurred at disk power-on lifetime: 20141 hours (839 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 08 d0 80 af e0  Error: UNC 8 sectors at LBA = 0x00af80d0 = 11501776

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 08 d0 80 af 18 00      04:09:45.988  READ DMA EXT
  ec 00 00 00 00 00 00 00      04:09:45.988  IDENTIFY DEVICE
  ef 03 45 00 00 00 00 00      04:09:45.987  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 00 00      04:09:45.987  IDENTIFY DEVICE
  25 00 08 d0 80 af 18 00      04:09:41.024  READ DMA EXT

Error 1966 occurred at disk power-on lifetime: 20141 hours (839 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 08 d0 80 af e0  Error: UNC 8 sectors at LBA = 0x00af80d0 = 11501776

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 08 d0 80 af 18 00      04:09:41.024  READ DMA EXT
  ec 00 00 00 00 00 00 00      04:09:41.024  IDENTIFY DEVICE
  ef 03 45 00 00 00 00 00      04:09:41.023  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 00 00      04:09:41.023  IDENTIFY DEVICE
  25 00 08 d0 80 af 18 00      04:09:36.101  READ DMA EXT

Error 1965 occurred at disk power-on lifetime: 20141 hours (839 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 08 d0 80 af e0  Error: UNC 8 sectors at LBA = 0x00af80d0 = 11501776

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 08 d0 80 af 18 00      04:09:36.101  READ DMA EXT
  ec 00 00 00 00 00 00 00      04:09:36.101  IDENTIFY DEVICE
  ef 03 45 00 00 00 00 00      04:09:36.100  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 00 00      04:09:36.100  IDENTIFY DEVICE
  25 00 08 d0 80 af 18 00      04:09:31.164  READ DMA EXT

Error 1964 occurred at disk power-on lifetime: 20141 hours (839 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 08 d0 80 af e0  Error: UNC 8 sectors at LBA = 0x00af80d0 = 11501776

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 08 d0 80 af 18 00      04:09:31.164  READ DMA EXT
  ec 00 00 00 00 00 00 00      04:09:31.164  IDENTIFY DEVICE
  ef 03 45 00 00 00 00 00      04:09:31.163  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 00 00      04:09:31.163  IDENTIFY DEVICE
  25 00 08 d0 80 af 18 00      04:09:26.371  READ DMA EXT

Error 1963 occurred at disk power-on lifetime: 20141 hours (839 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 08 d0 80 af e0  Error: UNC 8 sectors at LBA = 0x00af80d0 = 11501776

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 00 08 d0 80 af 18 00      04:09:26.371  READ DMA EXT
  ec 00 00 00 00 00 00 00      04:09:26.370  IDENTIFY DEVICE
  ef 03 45 00 00 00 00 00      04:09:26.370  SET FEATURES [Set transfer mode]
  ec 00 00 00 00 00 00 00      04:09:26.369  IDENTIFY DEVICE
  25 00 08 d0 80 af 18 00      04:09:21.590  READ DMA EXT

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.




Once logged in, the system seems to be running fine without a problem, same thing if I boot on WIndows, however if I reboot or shutdown I will get the same errors.
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Re: error: hd0 out of disk Please Help

Postby mintybits on Tue Jun 19, 2012 4:59 pm

Sorry, bad news. The SMART data is showing a lot of uncorrectable disk errors, unfortunately, the last one within the last 2 hours. And a high "raw read error rate". I now suspect this is the problem. The boot delays are being caused by read retries.
If you haven't already done so, back up all your critical files now to another device. Then you'll need to get a replacement disk and try to restore your stuff to it.

It may be that the bad sectors happen to be in locations that affect Grub or the boot process since you installed Mint 13.
mintybits
Level 5
Level 5
 
Posts: 568
Joined: Fri Jan 27, 2012 5:09 pm

Re: error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 5:12 pm

mintybits wrote:Sorry, bad news. The SMART data is showing a lot of uncorrectable disk errors, unfortunately, the last one within the last 2 hours. And a high "raw read error rate". I now suspect this is the problem. The boot delays are being caused by read retries.
If you haven't already done so, back up all your critical files now to another device. Then you'll need to get a replacement disk and try to restore your stuff to it.

It may be that the bad sectors happen to be in locations that affect Grub or the boot process since you installed Mint 13.



Thanks I was afraid of that.
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Re: error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 7:45 pm

I have fixed the errors that prompted this thread. First I installed boot-repair and then ran it and chose the option that says "ATA disk support (solves the [out-of-disk] error). After doing that I rebooted and got a nasty error saying grub rescue> or something of the sort, I was afraid I had ruined my laptop for good. But then I used the LiveCD to boot and reinstall grub again, only this time upon rebooting I got the grub menu and was able to boot to LM13 with no errors. I then updated grub to make sure any changes were saved, rebooted again and no problems.

So my problem was definitely grub related after I updated whatever I was given in the mint update. But I do think my disk is badly failing as you pointed out due to old age so I will certainly start looking into replacing it.
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Re: [SOLVED] error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 7:53 pm

Out of curiousity I went through that script you asked earlier to see if there was any difference with then and now and this is what I found:

in the previous output these lines are missing:
Code: Select all
Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *             63   299,483,729   299,483,667   7 NTFS / exFAT / HPFS
/dev/sdb2         299,483,730   312,576,704    13,092,975   7 NTFS / exFAT / HPFS
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Re: [SOLVED] error: hd0 out of disk Please Help

Postby mintybits on Tue Jun 19, 2012 8:43 pm

That's very intresting. There is a clue in the original results.txt at the end...sdb not found. I assumed you only had one disk.
Glad you figured it out.
mintybits
Level 5
Level 5
 
Posts: 568
Joined: Fri Jan 27, 2012 5:09 pm

Re: [SOLVED] error: hd0 out of disk Please Help

Postby gorellana09 on Tue Jun 19, 2012 9:06 pm

As far as I know I only have one disk. But thanks for the help though your suggestions pointed me to where to look.
gorellana09
Level 1
Level 1
 
Posts: 45
Joined: Wed May 04, 2011 1:53 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Google [Bot], Spearmint2, tonywhelan and 22 guests