PDA

View Full Version : [SOLVED] Grub rescue... me too



ctrlf5
May 13th, 2011, 04:02 PM
Short story: upgraded to Natty, slowed graphics, re-installed Lucid, got Error: file not found and grub rescue prompt


Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.
=> Syslinux is installed in the MBR of /dev/sdb

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Fat32
Boot sector info: According to the info in the boot sector, sdb1 starts
at sector 0. But according to the info from fdisk,
sdb1 starts at sector 62.
Operating System:
Boot files/dirs:

=========================== 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 * 2,048 620,652,543 620,650,496 83 Linux
/dev/sda2 620,654,590 625,141,759 4,487,170 5 Extended
/dev/sda5 620,654,592 625,141,759 4,487,168 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 4103 MB, 4103938560 bytes
127 heads, 62 sectors/track, 1017 cylinders, total 8015505 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 * 62 8,007,857 8,007,796 c W95 FAT32 (LBA)


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 5380ecea-6bab-483c-ab13-107b510e7901 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 7bc01697-4e0f-4704-8ca6-3cd7a5f2e48d swap
/dev/sda: PTTYPE="dos"
/dev/sdb1 1B00-DFDE vfat
/dev/sdb: PTTYPE="dos"

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

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


=========================== 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 $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 recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5380ecea-6bab-483c-ab13-107b510e7901
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
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5380ecea-6bab-483c-ab13-107b510e7901
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5380ecea-6bab-483c-ab13-107b510e7901
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=5380ecea-6bab-483c-ab13-107b510e7901 ro quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5380ecea-6bab-483c-ab13-107b510e7901
echo 'Loading Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=5380ecea-6bab-483c-ab13-107b510e7901 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5380ecea-6bab-483c-ab13-107b510e7901
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5380ecea-6bab-483c-ab13-107b510e7901
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 nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=5380ecea-6bab-483c-ab13-107b510e7901 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=7bc01697-4e0f-4704-8ca6-3cd7a5f2e48d none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


313.6GB: boot/grub/core.img
103.2GB: boot/grub/grub.cfg
313.6GB: boot/initrd.img-2.6.32-28-generic
313.6GB: boot/vmlinuz-2.6.32-28-generic
313.6GB: initrd.img
313.6GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 48 d0 50 52 c0 b1 82 d4 b5 30 ac 46 d1 6c 42 33 |H.PR.....0.F.lB3|
00000010 fe b0 de b7 8c c1 c0 c7 b7 37 74 cf db 62 4e af |.........7t..bN.|
00000020 d8 4b 06 60 53 4d 33 2a 9a b8 db 0a 08 ac c5 19 |.K.`SM3*........|
00000030 17 ea 64 62 9e 7f a3 bd 62 01 90 60 9e 49 3c b2 |..db....b..`.I<.|
00000040 e1 3c 18 82 20 a5 1e a2 a7 05 25 94 b3 84 4d a5 |.<.. .....%...M.|
00000050 25 87 c4 bb 65 9d 07 02 a1 07 48 c0 bf 00 cd 1c |%...e.....H.....|
00000060 0c b8 74 47 c6 e2 e9 db 1a f1 19 51 14 02 8d f3 |..tG.......Q....|
00000070 56 10 cc a5 9b 78 fd 8d d3 00 53 d7 f9 41 53 2a |V....x....S..AS*|
00000080 db a1 97 58 cd 4b c2 11 83 74 18 cf 21 35 d2 50 |...X.K...t..!5.P|
00000090 a6 fa a0 1f 16 00 74 b9 f0 22 2e 11 d6 19 9b e4 |......t.."......|
000000a0 26 ba f0 29 d7 dd e0 17 95 a3 6d f5 b6 19 14 08 |&..)......m.....|
000000b0 ea 42 89 70 b3 29 d8 a2 24 3e 2c 0a 74 86 fd 63 |.B.p.)..$>,.t..c|
000000c0 14 15 51 78 6f 84 44 13 22 c7 c1 8e 85 3e a6 29 |..Qxo.D."....>.)|
000000d0 3b d0 2a c9 a6 c2 56 fb a9 c1 32 70 d7 5e 14 f7 |;.*...V...2p.^..|
000000e0 e5 27 94 7b 12 08 97 86 b3 44 13 31 44 26 a7 c1 |.'.{.....D.1D&..|
000000f0 0f d2 fa 2b a6 95 7f 75 b3 5d d1 87 0f 01 4f ae |...+...u.]....O.|
00000100 87 6c 0e f4 97 ad eb 22 e6 81 cf 6d 6c 0b c7 41 |.l....."...ml..A|
00000110 95 3e 14 f6 e1 3d 1d b1 c4 cd 0d 6a 4e 18 92 2a |.>...=.....jN..*|
00000120 ad 97 c2 dd 25 87 a9 f0 a7 c9 9e f3 20 73 1b 66 |....%....... s.f|
00000130 2e 04 84 52 4e cd c0 3e a2 ee 40 39 2f 61 54 26 |...RN..>..@9/aT&|
00000140 f0 18 d0 53 aa 2b c1 67 94 41 de 41 df 4e 8f 6d |...S.+.g.A.A.N.m|
00000150 53 93 fc b2 d6 a5 cc 51 a3 11 e4 4c b1 20 14 ff |S......Q...L. ..|
00000160 94 97 fb 83 de c2 46 fa 07 7d 74 92 1a 3f 76 02 |......F..}t..?v.|
00000170 9b c3 35 db f8 c8 29 f1 07 3a 34 cb 47 40 5f fe |..5...)..:4.G@_.|
00000180 40 fa d8 e9 2a 52 7f 68 eb 1b cb c4 57 94 68 af |@...*R.h....W.h.|
00000190 d1 4c bb 3c 9a 12 7b fe 92 cc 52 85 97 05 3f d4 |.L.<..{...R...?.|
000001a0 45 05 15 e5 ff 74 0b d3 4d 60 8a 92 14 93 2b f8 |E....t..M`....+.|
000001b0 8f 35 a5 1c 2b 48 28 5a 6e 81 dd ce 8e a6 00 fe |.5..+H(Zn.......|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 78 44 00 00 00 |...........xD...|
000001d0 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




*I've got a USB drive plugged in but the BIOS doesn't allow me to boot from it. I'm using a CD.

Please help.

ctrlf5
May 13th, 2011, 10:01 PM
Installed on another drive and it worked fine.