Announcement

Collapse
No announcement yet.

Grub2 disaster...(Solved with fresh Install)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Grub2 disaster...(Solved with fresh Install)

    Hey guys well I saved my Kubuntu 11.04 and everything worked after the upgrade... the thing is that after I booted into my Kubuntu I ran Grub-customizer, that I always use...I edited some entries so that only appears Kubuntu and kubuntu recovery and Windows 7, and rebooted.

    When the Grub loaded it only showed Windows 7 and didnt show Kubuntu...so I ran Ubuntu Live cd and run startupmanager...but didnt work (gdbus error bla bla) and the problem is that is GRUB2 not 1.5 so no menu.lst appears...

    Any help to fix it?? Thanks.

    Kira

    #2
    Re: Grub2 disaster...

    Its now grub.cfg. You find it here /boot/grub/grub.cfg

    See my link and download and run boot_info_script, then open RESULTS.txt file to see where all you boot info is. Paste it back here for more analysis.
    Boot Info Script

    Comment


      #3
      Re: Grub2 disaster...

      Just follow the steps here: http://www.webupd8.org/2009/12/how-t...ub2-linux.html
      ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

      Comment


        #4
        Re: Grub2 disaster...

        Originally posted by ubuntuku
        I followed the steps this is what I got :/

        To run a command as administrator (user "root"), use "sudo <command>".
        See "man sudo_root" for details.

        ubuntu@ubuntu:~$ sudo fdisk -l

        Disk /dev/sda: 500.1 GB, 500107862016 bytes
        255 heads, 63 sectors/track, 60801 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        Sector size (logical/physical): 512 bytes / 512 bytes
        I/O size (minimum/optimal): 512 bytes / 512 bytes
        Disk identifier: 0x1786ece7

        Device Boot Start End Blocks Id System
        /dev/sda1 * 1 192 1536000 27 Unknown
        /dev/sda2 192 33940 271079424 7 HPFS/NTFS
        /dev/sda3 33940 59436 204797953 f W95 Ext'd (LBA)
        /dev/sda4 59436 60802 10970112 17 Hidden HPFS/NTFS
        /dev/sda5 33940 34195 2048000 82 Linux swap / Solaris
        /dev/sda6 34195 59436 202748928 83 Linux

        Disk /dev/sdb: 4215 MB, 4215275520 bytes
        255 heads, 63 sectors/track, 512 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        Sector size (logical/physical): 512 bytes / 512 bytes
        I/O size (minimum/optimal): 512 bytes / 512 bytes
        Disk identifier: 0xe9eb40d2

        Device Boot Start End Blocks Id System
        /dev/sdb1 * 1 513 4116448+ c W95 FAT32 (LBA)
        Partition 1 has different physical/logical endings:
        phys=(511, 254, 63) logical=(512, 121, 57)
        ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt
        ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda6
        /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
        /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
        /usr/sbin/grub-setup: error: will not proceed with blocklists.
        ubuntu@ubuntu:~$ sudo update-grub
        /usr/sbin/grub-probe: error: cannot stat `aufs'.
        ubuntu@ubuntu:~$

        Comment


          #5
          Re: Grub2 disaster...

          Originally posted by verndog
          Its now grub.cfg. You find it here /boot/grub/grub.cfg

          See my link and download and run boot_info_script, then open RESULTS.txt file to see where all you boot info is. Paste it back here for more analysis.
          This is what I got

          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 b2d.
          => Syslinux is installed in the MBR of /dev/sdb

          sda1: __________________________________________________ _______________________

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

          sda2: __________________________________________________ _______________________

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

          sda3: __________________________________________________ _______________________

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

          sda5: __________________________________________________ _______________________

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

          sda6: __________________________________________________ _______________________

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

          sda4: __________________________________________________ _______________________

          File system: ntfs
          Boot sector type: Windows Vista/7
          Boot sector info: No errors found in the Boot Parameter Block.
          Operating System:
          Boot files/dirs: /BOOTMGR /BOOT/BCD

          sdb1: __________________________________________________ _______________________

          File system: vfat
          Boot sector type: Unknown
          Boot sector info: No errors found in the Boot Parameter Block.
          Operating System:
          Boot files/dirs: /boot/grub/grub.cfg

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

          Drive: sda ___________________ __________________________________________________ ___

          Disk /dev/sda: 500.1 GB, 500107862016 bytes
          255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 3,074,047 3,072,000 27 Hidden HPFS/NTFS
          /dev/sda2 3,074,048 545,232,895 542,158,848 7 HPFS/NTFS
          /dev/sda3 545,234,942 954,830,847 409,595,906 f W95 Ext d (LBA)
          /dev/sda5 545,234,944 549,330,943 4,096,000 82 Linux swap / Solaris
          /dev/sda6 549,332,992 954,830,847 405,497,856 83 Linux
          /dev/sda4 954,832,896 976,773,119 21,940,224 17 Hidden HPFS/NTFS


          Drive: sdb ___________________ __________________________________________________ ___

          Disk /dev/sdb: 4215 MB, 4215275520 bytes
          255 heads, 63 sectors/track, 512 cylinders, total 8232960 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 * 63 8,232,959 8,232,897 c W95 FAT32 (LBA)


          blkid -c /dev/null: __________________________________________________ __________

          Device UUID TYPE LABEL

          /dev/loop0 squashfs
          /dev/sda1 8CAC355AAC35404E ntfs System
          /dev/sda2 0A2C5B692C5B4F37 ntfs kira
          /dev/sda3: PTTYPE="dos"
          /dev/sda4 A42C81A82C8175D8 ntfs HDDRECOVERY
          /dev/sda5 35dacd6d-43d1-45ae-8350-c32494ccd2a9 swap
          /dev/sda6 a59af576-50ab-4746-94d4-0aad5cd1e5f5 ext4
          /dev/sda: PTTYPE="dos"
          /dev/sdb1 17F0-0C73 vfat PENDRIVE
          /dev/sdb: PTTYPE="dos"

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

          Device Mount_Point Type Options

          aufs / aufs (rw)
          /dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1,shortname=mixed,errors=remount-ro)
          /dev/loop0 /rofs squashfs (ro,noatime)
          /dev/sda6 /mnt ext4 (rw)


          =========================== sda6/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='(/dev/sda,msdos6)'
          search --no-floppy --fs-uuid --set=root a59af576-50ab-4746-94d4-0aad5cd1e5f5
          if loadfont /usr/share/grub/unicode.pf2 ; then
          set gfxmode=1024x768x24
          load_video
          insmod gfxterm
          fi
          terminal_output gfxterm
          insmod part_msdos
          insmod ext2
          set root='(/dev/sda,msdos6)'
          search --no-floppy --fs-uuid --set=root a59af576-50ab-4746-94d4-0aad5cd1e5f5
          set locale_dir=($root)/boot/grub/locale
          set lang=en_US
          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 ###
          insmod part_msdos
          insmod ext2
          set root='(/dev/sda,msdos6)'
          search --no-floppy --fs-uuid --set=root a59af576-50ab-4746-94d4-0aad5cd1e5f5
          insmod jpeg
          if background_image /boot/grub/mac_linux_windows_OS_GRUB-1024x768.jpg; then
          true
          else
          set menu_color_normal=white/black
          set menu_color_highlight=black/light-gray
          if background_color 0,71,115; then
          clear
          fi
          fi
          ### END /etc/grub.d/05_debian_theme ###

          ### BEGIN /etc/grub.d/30_os-prober_proxy ###
          menuentry "Windows 7" {
          insmod part_msdos
          insmod ntfs
          set root='(/dev/sda,msdos1)'
          search --no-floppy --fs-uuid --set=root 8CAC355AAC35404E
          chainloader +1
          }
          ### END /etc/grub.d/30_os-prober_proxy ###

          =============================== sda6/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/sda6 during installation
          UUID=a59af576-50ab-4746-94d4-0aad5cd1e5f5 / ext4 errors=remount-ro 0 1
          # swap was on /dev/sda5 during installation
          UUID=35dacd6d-43d1-45ae-8350-c32494ccd2a9 none swap sw 0 0

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


          416.6GB: boot/grub/core.img
          360.8GB: boot/grub/grub.cfg
          318.4GB: boot/initrd.img-2.6.38-8-generic-pae
          316.4GB: boot/vmlinuz-2.6.38-8-generic-pae
          318.4GB: initrd.img
          316.4GB: vmlinuz

          =========================== sdb1/boot/grub/grub.cfg: ===========================


          if loadfont /boot/grub/font.pf2 ; then
          set gfxmode=auto
          insmod efi_gop
          insmod efi_uga
          insmod gfxterm
          terminal_output gfxterm
          fi

          set menu_color_normal=white/black
          set menu_color_highlight=black/light-gray

          menuentry "Try Ubuntu without installing" {
          set gfxpayload=keep
          linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
          initrd /casper/initrd.lz
          }
          menuentry "Install Ubuntu" {
          set gfxpayload=keep
          linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash --
          initrd /casper/initrd.lz
          }
          menuentry "Check disc for defects" {
          set gfxpayload=keep
          linux /casper/vmlinuz boot=casper integrity-check quiet splash --
          initrd /casper/initrd.lz
          }

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


          ??GB: boot/grub/grub.cfg
          =========================== Unknown MBRs/Boot Sectors/etc =======================

          Unknown BootLoader on sdb1

          00000000 eb 58 90 53 59 53 4c 49 4e 55 58 00 02 04 20 00 |.X.SYSLINUX... .|
          00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 3f 00 00 00 |........?...?...|
          00000020 c1 9f 7d 00 92 3e 00 00 00 00 00 00 02 00 00 00 |..}..>..........|
          00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
          00000040 80 00 29 73 0c f0 17 4e 4f 20 4e 41 4d 45 20 20 |..)s...NO NAME |
          00000050 20 20 46 41 54 33 32 20 20 20 fa fc 31 c9 8e d1 | FAT32 ..1...|
          00000060 bc 76 7b 52 06 57 1e 56 8e c1 b1 26 bf 78 7b f3 |.v{R.W.V...&.x{.|
          00000070 a5 8e d9 bb 78 00 0f b4 37 0f a0 56 20 d2 78 1b |....x...7..V .x.|
          00000080 31 c0 b1 06 89 3f 89 47 02 f3 64 a5 8a 0e 18 7c |1....?.G..d....||
          00000090 88 4d bc 50 50 50 50 cd 13 eb 5c 8b 55 aa 8b 75 |.M.PPPP...\.U..u|
          000000a0 a8 c1 ee 04 01 f2 81 fa b7 07 73 2b f6 45 b4 7f |..........s+.E..|
          000000b0 75 25 38 4d b8 74 20 66 3d 21 47 50 54 75 10 80 |u%8M.t f=!GPTu..|
          000000c0 7d b8 ed 75 0a 66 ff 75 ec 66 ff 75 e8 eb 0f 51 |}..u.f.u.f.u...Q|
          000000d0 51 66 ff 75 bc eb 07 51 51 66 ff 36 1c 7c b4 08 |Qf.u...QQf.6.|..|
          000000e0 cd 13 72 13 20 e4 75 0f c1 ea 08 42 89 16 1a 7c |..r. .u....B...||
          000000f0 83 e1 3f 89 0e 18 7c fb bb aa 55 b4 41 8a 16 74 |..?...|...U.A..t|
          00000100 7b cd 13 72 10 81 fb 55 aa 75 0a f6 c1 01 74 05 |{..r...U.u....t.|
          00000110 c6 06 45 7d 00 66 b8 48 7d 00 00 66 ba 00 00 00 |..E}.f.H}..f....|
          00000120 00 bb 00 7e e8 10 00 66 81 3e 24 7e d4 ff 73 72 |...~...f.>$~..sr|
          00000130 75 76 ea 38 7e 00 00 66 03 06 60 7b 66 13 16 64 |uv.8~..f..`{f..d|
          00000140 7b b9 10 00 eb 2b 66 52 66 50 06 53 6a 01 6a 10 |{....+fRfP.Sj.j.|
          00000150 89 e6 66 60 b4 42 e8 7f 00 66 61 8d 64 10 72 01 |..f`.B...fa.d.r.|
          00000160 c3 66 60 31 c0 e8 70 00 66 61 e2 da c6 06 45 7d |.f`1..p.fa....E}|
          00000170 2b 66 60 66 0f b7 36 18 7c 66 0f b7 3e 1a 7c 66 |+f`f..6.|f..>.|f|
          00000180 f7 f6 31 c9 87 ca 66 f7 f7 66 3d ff 03 00 00 77 |..1...f..f=....w|
          00000190 17 c0 e4 06 41 08 e1 88 c5 88 d6 b8 01 02 e8 37 |....A..........7|
          000001a0 00 66 61 72 01 c3 e2 c9 31 f6 8e d6 bc 68 7b 8e |.far....1....h{.|
          000001b0 de 66 8f 06 78 00 be df 7d e8 09 00 31 c0 cd 16 |.f..x...}...1...|
          000001c0 cd 19 f4 eb fd 66 60 ac 20 c0 74 09 b4 0e bb 07 |.....f`. .t.....|
          000001d0 00 cd 10 eb f2 66 61 c3 8a 16 74 7b cd 13 c3 42 |.....fa...t{...B|
          000001e0 6f 6f 74 20 65 72 72 6f 72 0d 0a 00 00 00 00 00 |oot error.......|
          000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
          00000200

          Comment


            #6
            Re: Grub2 disaster...

            Originally posted by kiraitachi
            ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda6
            Read again carefully:
            Important: Please notice that it's "/dev/sda", not "/dev/sda1". "sda" is the hard disk on which your Linux distribution is installed!
            Type the following exactly as it appears:
            Code:
            sudo grub-install --root-directory=/mnt/ /dev/sda
            ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

            Comment


              #7
              Re: Grub2 disaster...

              Originally posted by ubuntuku
              Originally posted by kiraitachi
              ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda6
              Read again carefully:
              Important: Please notice that it's "/dev/sda", not "/dev/sda1". "sda" is the hard disk on which your Linux distribution is installed!
              Type the following exactly as it appears:
              Code:
              sudo grub-install --root-directory=/mnt/ /dev/sda
              Lol!!!! I thought of it when I saw it XD but I thought it was like step before...XD Sorry and thanks for clearing me out that point.

              Comment

              Working...
              X