PDA

View Full Version : [ubuntu] GRUB recovery needed (have boot_script output!)



cefola
June 24th, 2010, 02:25 AM
Any help with this would be greatly appreciated.
Installed Ubuntu 10.04 from a liveCD
Can't get the system to boot and currently running via LiveCD
Box: Compaq Evo N610C 250 GB Western Digital HD
(listed as SCSI1 (sda) 250.1 GB ATA WD2500BEV-O
ISO: Ubuntu web site burned with K3B


boot_script output listed below:


Boot Info Script 0.55 dated February 15th, 2010

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

=> No boot loader is installed in the MBR of /dev/sda

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 310676392 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System: Ubuntu 10.04 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:

sdb: __________________________________________________ _______________________

File system: vfat
Boot sector type: MSWIN4.1: Fat 32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

=========================== 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 End Size Id System

/dev/sda1 * 2,048 485,414,911 485,412,864 83 Linux
/dev/sda2 485,416,958 488,396,799 2,979,842 5 Extended
/dev/sda5 485,416,960 488,396,799 2,979,840 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/ramzswap0 swap
/dev/sda1 5aaee39a-4dbc-434b-8273-a4e5bd65b1c5 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 de7f667b-d851-4413-86e3-2d4a4bc0c7f9 swap
/dev/sda: PTTYPE="dos"
/dev/sdb 6282-0258 vfat

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

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb /media/6282-0258 vfat (rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,sh ortname=mixed,dmask=0077,utf8=1,flush)


=========================== 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 5aaee39a-4dbc-434b-8273-a4e5bd65b1c5
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 5aaee39a-4dbc-434b-8273-a4e5bd65b1c5
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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5aaee39a-4dbc-434b-8273-a4e5bd65b1c5
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=5aaee39a-4dbc-434b-8273-a4e5bd65b1c5 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-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 5aaee39a-4dbc-434b-8273-a4e5bd65b1c5
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=5aaee39a-4dbc-434b-8273-a4e5bd65b1c5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-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 5aaee39a-4dbc-434b-8273-a4e5bd65b1c5
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 5aaee39a-4dbc-434b-8273-a4e5bd65b1c5
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=5aaee39a-4dbc-434b-8273-a4e5bd65b1c5 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=de7f667b-d851-4413-86e3-2d4a4bc0c7f9 none swap sw 0 0

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


159.0GB: boot/grub/core.img
197.8GB: boot/grub/grub.cfg
159.0GB: boot/initrd.img-2.6.32-21-generic
.2GB: boot/vmlinuz-2.6.32-21-generic
159.0GB: initrd.img
.2GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 dc 15 51 7c dc 2b a0 eb 56 27 4f 72 7a 85 dd 82 |..Q|.+..V'Orz...|
00000010 81 02 12 0c 1a 54 5d 21 0e 37 0f 36 0f b3 04 40 |.....T]!.7.6...@|
00000020 00 00 01 1e 53 b7 47 f3 06 2d 2a c2 f3 8f 4e 50 |....S.G..-*...NP|
00000030 eb 08 63 53 f1 46 8a c7 05 09 90 06 4a 08 08 03 |..cS.F......J...|
00000040 3d 08 fd 0b f8 8e 80 27 c6 33 c5 3b 3b ad b0 0a |=......'.3.;;...|
00000050 be 76 e0 12 1b bf 29 33 af a9 fc b1 03 4a a2 4b |.v....)3.....J.K|
00000060 23 7c f8 29 98 11 85 b3 89 9d cc 73 a2 f8 c0 f5 |#|.).......s....|
00000070 6d ce 22 9b e5 f3 05 9a 3d c0 d8 1d a2 24 40 bb |m.".....=....$@.|
00000080 d9 0b 58 06 a0 72 80 01 e8 b0 f6 96 bb 73 41 83 |..X..r.......sA.|
00000090 ff cd 8f 1e 1d 78 29 39 54 34 ab 19 08 10 64 ee |.....x)9T4....d.|
000000a0 b4 18 11 91 fe cb 02 12 0a 00 d4 85 b9 45 f0 03 |.............E..|
000000b0 a0 07 e5 15 f7 c3 16 a2 68 61 7b ee 30 4b 1d 58 |........ha{.0K.X|
000000c0 e5 1d cf 58 d3 c2 85 c9 c5 1f d3 db 7c 06 89 ca |...X........|...|
000000d0 bc ea 1f 3a a8 69 76 22 8a 36 4b 33 b6 c3 cd 09 |...:.iv".6K3....|
000000e0 41 07 56 1a 49 e7 18 80 35 33 fe 69 eb 0e 01 a5 |A.V.I...53.i....|
000000f0 98 0d 3f ff 58 eb b2 fc 08 78 2d a3 18 ee eb 6c |..?.X....x-....l|
00000100 a8 b5 b2 85 b4 37 0f 3a f9 cc 38 8b 18 4e a6 ed |.....7.:..8..N..|
00000110 db 30 b2 90 91 1e 2d 08 4a db b0 fb f8 05 61 47 |.0....-.J.....aG|
00000120 d1 cb c1 e3 0d 75 4c 74 53 d3 61 68 b6 82 51 21 |.....uLtS.ah..Q!|
00000130 9b 1e c6 c9 40 67 65 a9 c0 7f 07 7e 39 44 7a 77 |....@ge....~9Dzw|
00000140 c7 af 01 c8 83 4d 43 cc a6 61 48 cd 95 a4 7e fb |.....MC..aH...~.|
00000150 1e 22 4f 3d 94 12 ed 01 8d d8 92 c8 d9 61 66 4a |."O=.........afJ|
00000160 27 dd 35 56 9a 23 16 e8 14 03 ea cc 66 ca 5c 7f |'.5V.#......f.\.|
00000170 4e 0b 0a 01 f4 84 36 15 89 10 ab ab 7c 19 c5 b0 |N.....6.....|...|
00000180 c5 2c 5c 03 f0 e8 94 86 c9 77 c8 27 93 e6 ec e3 |.,\......w.'....|
00000190 76 65 6e b3 a2 2d 91 29 af cc 67 7e b6 14 1f 0e |ven..-.)..g~....|
000001a0 e3 95 a2 fb b1 e7 af e1 1a fb 7c fb 6e e4 8c 1c |..........|.n...|
000001b0 74 45 bb af 6c 2e 13 30 ad cd 06 3f ff a0 00 fe |tE..l..0...?....|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 78 2d 00 00 00 |...........x-...|
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

darkod
June 24th, 2010, 02:32 AM
=> No boot loader is installed in the MBR of /dev/sda

Somehow you didn't put the bootloader (grub2) on the MBR of the disk. From live mode do:

sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda

and it should be fine.

cefola
June 25th, 2010, 12:00 PM
Thanks for the advice, darkod!
Your posts help so many other users as well as this forum.
In my reading of many posts, this was my solution.
1. automatic partitioning during Lucid install did NOT install the boot loader.
2. obtained recommended partitions via Debian Lenny Live CD
3. used those recommendations for manual partition during Lucid install
4. PROBLEM SOLVED
Thanks again----I learned a lot.
:popcorn: