Thread: GRUB Rescue in Dual Boot, Need Some Help
hey guys,
i've been playing around system detriment, apparently. have laptop 120 gb ssd split 85/20 between windows 7 , ubuntu with, 750 gb hdd storage well. wanted extend ubuntu partition, went format on , reinstall (i couldn't in gparted whatever reason), , when did had grub errors. after reinstalling error whenever tried configure grub or update it, or upgrade precise pangolin. however, grub loader still worked same.
posted error message here:
http://askubuntu.com/questions/16773...all-partitions
couple of days ago, nobody responded.
today playing around again , tried change of device.map stuff , after reboot, greeted grub recovery prompt. boot windows recovery disk , fix mbr, want fix first. it's looking device on /dev/sdb should never have been there. haven't tried install grub there knowingly.
saw had boot info script , ran that. here results live cd:
i have important off of /dev/sda (the ssd) backed up, if need reinstall it's not end of world. i've exhausted google (to best of abilities) , appreciate help.code:boot info script 0.61 [1 april 2012] ============================= boot info summary: =============================== => grub2 (v1.99) installed in mbr of /dev/sda , looks @ sector 1 of same hard drive core.img. core.img @ location , looks (,msdos5)/mt/boot/grub on drive. => grub2 (v1.99) installed in mbr of /dev/sdb , looks @ sector 1 of same hard drive core.img. core.img @ location , looks (,msdos8)/boot/grub on drive. => syslinux mbr (4.04 , higher) installed in mbr of /dev/sdc. sda1: __________________________________________________________________________ file system: ntfs boot sector type: windows vista/7: ntfs boot sector info: no errors found in boot parameter block. operating system: boot files: /bootmgr /boot/bcd sda2: __________________________________________________________________________ file system: ntfs boot sector type: windows vista/7: ntfs boot sector info: no errors found in boot parameter block. operating system: windows 7 boot files: /windows/system32/winload.exe sda3: __________________________________________________________________________ file system: extended partition boot sector type: - boot sector info: sda5: __________________________________________________________________________ file system: ext4 boot sector type: - boot sector info: operating system: ubuntu 12.04 lts boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sda6: __________________________________________________________________________ file system: swap boot sector type: - boot sector info: sdb1: __________________________________________________________________________ file system: ntfs boot sector type: windows vista/7: ntfs boot sector info: according info in boot sector, sdb1 starts @ sector 2048. according info fdisk, sdb1 starts @ sector 63. according info in boot sector, sdb1 has 1465141247 sectors, according info fdisk, has 1465147056 sectors. operating system: boot files: sdc1: __________________________________________________________________________ file system: vfat boot sector type: syslinux 4.06 4.06-pre1 boot sector info: syslinux looks @ sector 2127944 of /dev/sdc1 second stage. syslinux installed in directory. integrity check of adv area failed. no errors found in boot parameter block. operating system: boot files: /syslinux/syslinux.cfg /ldlinux.sys ============================ drive/partition info: ============================= drive: sda _____________________________________________________________________ disk /dev/sda: 120.0 gb, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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 * 2,048 411,647 409,600 7 ntfs / exfat / hpfs /dev/sda2 411,648 176,766,975 176,355,328 7 ntfs / exfat / hpfs /dev/sda3 176,769,022 234,440,703 57,671,682 5 extended /dev/sda5 176,769,024 217,853,951 41,084,928 83 linux /dev/sda6 217,856,000 234,440,703 16,584,704 82 linux swap / solaris drive: sdb _____________________________________________________________________ disk /dev/sdb: 750.2 gb, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 4096 bytes partition boot start sector end sector # of sectors id system /dev/sdb1 63 1,465,147,119 1,465,147,057 42 sfs drive: sdc _____________________________________________________________________ disk /dev/sdc: 4047 mb, 4047502848 bytes 4 heads, 32 sectors/track, 61759 cylinders, total 7905279 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/sdc1 * 32 7,905,278 7,905,247 c w95 fat32 (lba) "blkid" output: ________________________________________________________________ device uuid type label /dev/loop0 squashfs /dev/sda1 9e0677e10677b93b ntfs system /dev/sda2 801e7bef1e7bdc9a ntfs os /dev/sda5 0794bfe2-b2a8-4348-9dc2-214ed2935d3f ext4 /dev/sda6 33b4e6e6-1085-4976-bc0c-81ea877f6000 swap /dev/sdb1 72ba6b91ba6b50a1 ntfs atoombs media /dev/sdc1 1c0d-1f27 vfat pendrive ================================ mount points: ================================= device mount_point type options /dev/loop0 /rofs squashfs (ro,noatime) /dev/sdc1 /cdrom vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) =========================== sda5/boot/grub/grub.cfg: =========================== -------------------------------------------------------------------------------- # # not edit file # # automatically generated grub-mkconfig using templates # /etc/grub.d , settings /etc/default/grub # ### begin /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; set have_grubenv=true load_env fi set default="0" if [ "${prev_saved_entry}" ]; 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}" ]; saved_entry="${chosen}" save_env saved_entry fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; if [ -z "${boot_once}" ]; 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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f if loadfont /usr/share/grub/unicode.pf2 ; set gfxmode=auto load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root 0794bfe2-b2a8-4348-9dc2-214ed2935d3f set locale_dir=($root)/boot/grub/locale set lang=en_us insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ]; 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 44,0,30; clear fi ### end /etc/grub.d/05_debian_theme ### ### begin /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" if [ "${1}" = "keep" ]; set vt_handoff=vt.handoff=7 else set vt_handoff= fi } if [ "${recordfail}" != 1 ]; if [ -e ${prefix}/gfxblacklist.txt ]; if hwmatch ${prefix}/gfxblacklist.txt 3; if [ ${match} = 0 ]; 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" ]; load_video; fi menuentry 'ubuntu, linux 3.2.0-27-generic-pae' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f linux /boot/vmlinuz-3.2.0-27-generic-pae root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-27-generic-pae } menuentry 'ubuntu, linux 3.2.0-27-generic-pae (recovery mode)' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f echo 'loading linux 3.2.0-27-generic-pae ...' linux /boot/vmlinuz-3.2.0-27-generic-pae root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f ro recovery nomodeset echo 'loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-27-generic-pae } submenu "previous linux versions" { menuentry 'ubuntu, linux 3.2.0-27-generic' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f linux /boot/vmlinuz-3.2.0-27-generic root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-27-generic } menuentry 'ubuntu, linux 3.2.0-27-generic (recovery mode)' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f echo 'loading linux 3.2.0-27-generic ...' linux /boot/vmlinuz-3.2.0-27-generic root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f ro recovery nomodeset echo 'loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-27-generic } menuentry 'ubuntu, linux 3.0.0-23-generic-pae' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f linux /boot/vmlinuz-3.0.0-23-generic-pae root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f ro quiet splash $vt_handoff initrd /boot/initrd.img-3.0.0-23-generic-pae } menuentry 'ubuntu, linux 3.0.0-23-generic-pae (recovery mode)' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f echo 'loading linux 3.0.0-23-generic-pae ...' linux /boot/vmlinuz-3.0.0-23-generic-pae root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f ro recovery nomodeset echo 'loading initial ramdisk ...' initrd /boot/initrd.img-3.0.0-23-generic-pae } menuentry 'ubuntu, linux 3.0.0-12-generic' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f linux /boot/vmlinuz-3.0.0-12-generic root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f ro quiet splash $vt_handoff initrd /boot/initrd.img-3.0.0-12-generic } menuentry 'ubuntu, linux 3.0.0-12-generic (recovery mode)' --class ubuntu --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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f echo 'loading linux 3.0.0-12-generic ...' linux /boot/vmlinuz-3.0.0-12-generic root=uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f 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/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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f 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 0794bfe2-b2a8-4348-9dc2-214ed2935d3f linux16 /boot/memtest86+.bin console=ttys0,115200n8 } ### end /etc/grub.d/20_memtest86+ ### ### begin /etc/grub.d/30_os-prober ### menuentry "windows 7 (loader) (on /dev/sda1)" --class windows --class os { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 9e0677e10677b93b chainloader +1 } ### end /etc/grub.d/30_os-prober ### ### begin /etc/grub.d/40_custom ### # file provides easy way add custom menu entries. type # menu entries want add after comment. careful not change # 'exec tail' line above. ### end /etc/grub.d/40_custom ### ### begin /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; source $prefix/custom.cfg; fi ### end /etc/grub.d/41_custom ### -------------------------------------------------------------------------------- =============================== sda5/etc/fstab: ================================ -------------------------------------------------------------------------------- # /etc/fstab: static file system information. # # use 'blkid' print universally unique identifier # device; may used uuid= more robust way name devices # works if disks added , removed. see fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / on /dev/sda5 during installation uuid=0794bfe2-b2a8-4348-9dc2-214ed2935d3f / ext4 errors=remount-ro 0 1 # swap on /dev/sda6 during installation uuid=33b4e6e6-1085-4976-bc0c-81ea877f6000 none swap sw 0 0 -------------------------------------------------------------------------------- =================== sda5: location of files loaded grub: ==================== gib - gb file fragment(s) = boot/grub/core.img 1 = boot/grub/grub.cfg 1 = boot/initrd.img-3.0.0-12-generic 2 = boot/initrd.img-3.0.0-23-generic-pae 2 = boot/initrd.img-3.2.0-27-generic 2 = boot/initrd.img-3.2.0-27-generic-pae 2 = boot/vmlinuz-3.0.0-12-generic 1 = boot/vmlinuz-3.0.0-23-generic-pae 1 = boot/vmlinuz-3.2.0-27-generic 1 = boot/vmlinuz-3.2.0-27-generic-pae 1 = vmlinuz 1 = vmlinuz.old 1 ========================= sdc1/syslinux/syslinux.cfg: ========================== -------------------------------------------------------------------------------- # d-i config version 2.0 include menu.cfg default vesamenu.c32 prompt 0 timeout 50 # if use new menu , presented option install or run usb @ startup, remove # following line. line commented out (by request of many) allow old menu presented , enable booting straight live environment! # ui gfxboot bootlogo -------------------------------------------------------------------------------- ================= sdc1: location of files loaded syslinux: ================== gib - gb file fragment(s) ?? = ?? ldlinux.sys 1 ?? = ?? syslinux/chain.c32 1 ?? = ?? syslinux/gfxboot.c32 1 ?? = ?? syslinux/syslinux.cfg 1 ?? = ?? syslinux/vesamenu.c32 1 ============== sdc1: version of com32(r) files used syslinux: =============== syslinux/chain.c32 : com32r module (v4.xx) syslinux/gfxboot.c32 : com32r module (v4.xx) syslinux/vesamenu.c32 : com32r module (v4.xx) =============================== stderr messages: =============================== xz: (stdin): compressed data corrupt xz: (stdin): compressed data corrupt awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in /home/ubuntu/desktop/bootinfoscript: line 1646: [: 2.73495e+09: integer expression expected
thanks.
there odd bit results.txt:
normally it's (,msdos5)/boot/...=> grub2 (v1.99) installed in mbr of /dev/sda , looks @ sector 1 of
same hard drive core.img. core.img @ location , looks
(,msdos5)/mt/boot/grub on drive.
@ grub prompt, run these commands:
which one, if either, contains normal boot files such kernel , initrd image?code:ls (hd0,5)/boot ls (hd0,5)/mt/boot
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] GRUB Rescue in Dual Boot, Need Some Help
Ubuntu
Comments
Post a Comment