PDA

View Full Version : [SOLVED] grub error please HELP!!



catlover2
March 10th, 2010, 04:38 AM
i get this error when i try to boot from harddrive:

grub loading
error: no such disk
grub rescue>_


please help asap!!

lidex
March 10th, 2010, 08:42 AM
Click on the boot info script in my signature and follow the instructions there. Post your results back to this thread. Probably the best diagnostic tool for this kind of problem.

catlover2
March 10th, 2010, 09:11 AM
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
(UUID=b4f9a26a-2d00-420c-9b81-225fbb080417)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sdb1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb2: __________________________________________________ _______________________

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

sdb5: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders, total 78140160 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x9206b4d5

Partition Boot Start End Size Id System

/dev/sda1 * 63 75,360,914 75,360,852 83 Linux
/dev/sda2 75,360,915 78,140,159 2,779,245 5 Extended
/dev/sda5 75,360,978 78,140,159 2,779,182 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x7f3ba0f6

Partition Boot Start End Size Id System

/dev/sdb1 63 973,988,819 973,988,757 83 Linux
/dev/sdb2 973,988,820 976,768,064 2,779,245 5 Extended
/dev/sdb5 973,988,883 976,768,064 2,779,182 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 0290abc9-47ad-4799-ab27-6f7cfc416d7d ext4
/dev/sda5 6ad945df-5edd-4c43-abb9-be9f4b99552d swap
/dev/sdb1 b4f9a26a-2d00-420c-9b81-225fbb080417 ext4
/dev/sdb5 6bf2da5f-6489-432c-b277-930440543b90 swap

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

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro)
/dev/sdb1 /media/b4f9a26a-2d00-420c-9b81-225fbb080417 ext4 (rw,nosuid,nodev,uhelper=devkit)


=========================== sda1/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 ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
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
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-19-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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 defaults 0 0
# / was on /dev/sda1 during installation
UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=6ad945df-5edd-4c43-abb9-be9f4b99552d none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


4.8GB: boot/grub/core.img
4.8GB: boot/grub/grub.cfg
1.6GB: boot/initrd.img-2.6.31-14-generic
6.0GB: boot/initrd.img-2.6.31-19-generic
1.3GB: boot/vmlinuz-2.6.31-14-generic
5.6GB: boot/vmlinuz-2.6.31-19-generic
6.0GB: initrd.img
1.6GB: initrd.img.old
5.6GB: vmlinuz
1.3GB: vmlinuz.old

=========================== sdb1/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 ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set b4f9a26a-2d00-420c-9b81-225fbb080417
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
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set b4f9a26a-2d00-420c-9b81-225fbb080417
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b4f9a26a-2d00-420c-9b81-225fbb080417 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set b4f9a26a-2d00-420c-9b81-225fbb080417
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=b4f9a26a-2d00-420c-9b81-225fbb080417 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, Linux 2.6.31-19-generic (on /dev/sda1)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode) (on /dev/sda1)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sda1)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sda1)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0290abc9-47ad-4799-ab27-6f7cfc416d7d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0290abc9-47ad-4799-ab27-6f7cfc416d7d ro single
initrd /boot/initrd.img-2.6.31-14-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 ###

=============================== sdb1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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 defaults 0 0
# / was on /dev/sdb1 during installation
UUID=b4f9a26a-2d00-420c-9b81-225fbb080417 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=6bf2da5f-6489-432c-b277-930440543b90 none swap sw 0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


.8GB: boot/grub/core.img
.8GB: boot/grub/grub.cfg
.8GB: boot/initrd.img-2.6.31-14-generic
.5GB: boot/vmlinuz-2.6.31-14-generic
.8GB: initrd.img
.5GB: vmlinuz

catlover2
March 10th, 2010, 08:47 PM
im not sure what to do with this now??

presence1960
March 10th, 2010, 08:56 PM
which ubuntu 9.10 do you want to use? You have 9.10 installed to sda1 & sdb1?

catlover2
March 10th, 2010, 09:52 PM
i want to use my internal harddrive.

i do not know witch one is sdb1 or sda1

i have ubuntu 9.10 on my internal and external harddrive.

I'll be more specific,
IF the external is connected and it is first in boot order it says somthing
about my sound card and a invalid partition table.

IF my external is connected and is second in boot order i get a
multi-boot screen that asks me if i want to boot from the internal or the external.

IF my external is NOT connected i get this:

grub loading
error:no such disk
grub rescue>_

Stankoman
March 10th, 2010, 10:40 PM
the solution was posted yesterday. please use search

presence1960
March 11th, 2010, 01:24 AM
the solution was posted yesterday. please use search

Not a very helpful answer. But I will give the OP a precise set of instructions to solve the issue.

OP boot from the ubuntu Live CD/USB. Choose "try ubuntu without any changes", when the desktop loads open a terminal (Applications > Accessories > Terminal) and run this command
sudo mount /dev/sda1 /mntThis will mount your ubuntu / partition on the internal disk.

next in terminal run
sudo grub-install --root-directory=/mnt/ /dev/sdaWhen completed reboot without the Live CD and boot into Ubuntu. You should be good to go.

If you are going to use the internal disk do not make the external boot first! Especially since it has a windows MBR. If I were you I would delete the ubuntu on the external as it serves no real purpose to have 2 installs.

catlover2
March 11th, 2010, 01:44 AM
thanks prescene1960!!
that worked great!
i will delete the ubuntu partiton on my external hd with partermagic.

presence1960
March 11th, 2010, 01:53 AM
thanks prescene1960!!
that worked great!
i will delete the ubuntu partiton on my external hd with partermagic.

Glad you got it working! Enjoy ubuntu. You can do it right from ubuntu with gparted. if you don't have gparted installed open a terminal and run
sudo apt-get install gparted

You can run gparted by opening a terminal and running
gksu gparted or go System > Administration > Gparted