Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: GRUB rescue after 14.04 update

  1. #1
    Join Date
    Sep 2010
    Beans
    10

    Unhappy GRUB rescue after 14.04 update

    Hello,

    Today I've updated from 13.10 do 14.04 using software updater but after reboot I saw this message:

    "error: symbol 'grub_term_highlight_color' not found.
    grub rescue>'

    I found this site how to fix grub:

    http://opensource-sidh.blogspot.com/...-pendrive.html

    Now after reboot I got this message:

    "GNU GRUB vesrion 2.02~beta2-9

    Minimal BASH-like line editing is supported. For the first word, TAB list possible command completions. Anywhere else TAB lists possible device or file completions.

    grub>"

    Here's my terminal log from above mentioned instructions:

    Code:
    ubuntu@ubuntu:~$ sudo fdisk -l
    
    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
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xf9a7b679
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048     3074047     1536000    7  HPFS/NTFS/exFAT
    /dev/sda2         3074048   845699071   421312512    7  HPFS/NTFS/exFAT
    /dev/sda3       948099072   976771071    14336000    7  HPFS/NTFS/exFAT
    /dev/sda4       845701118   948099071    51198977    5  Extended
    /dev/sda5       845701120   861323263     7811072   82  Linux swap / Solaris
    /dev/sda6       861325312   948099071    43386880   83  Linux
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 4003 MB, 4003037184 bytes
    255 heads, 63 sectors/track, 486 cylinders, total 7818432 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0005e838
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *          63     7818431     3909184+   b  W95 FAT32
    ubuntu@ubuntu:~$ sudo mount /dev/sd6 /mnt
    mount: special device /dev/sd6 does not exist
    ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt
    ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt/boot.
    mount: mount point /mnt/boot. does not exist
    ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt/boot
    ubuntu@ubuntu:~$              sudo mount --bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount --bind /usr/ /mnt/usr
    ubuntu@ubuntu:~$ sudo chroot /mnt
    root@ubuntu:/# update-grub2
    /usr/sbin/grub-mkconfig: 250: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
    root@ubuntu:/# update-grub
    /usr/sbin/grub-mkconfig: 250: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
    root@ubuntu:/# grub-install /dev/sda
    Installing for i386-pc platform.
    Installation finished. No error reported.
    root@ubuntu:/# sudo grub-install --recheck /dev/sda
    sudo: unable to resolve host ubuntu
    Installing for i386-pc platform.
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt/dev
    ubuntu@ubuntu:~$ sudo umount /mnt/proc
    ubuntu@ubuntu:~$ sudo umount /mnt/sys
    ubuntu@ubuntu:~$ sudo umount /mnt/boot
    ubuntu@ubuntu:~$ sudo umount /mnt/usr
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$
    How can I fix GRUB and run computer normally ? Please help.

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB rescue after 14.04 update

    Not seen that error, but did you change grub menu colors?
    Similar to this?
    https://help.ubuntu.com/community/Grub2/Displays

    And that says the entry is like this:
    menu_color_highlight=text-color/bg-color

    So where did you add your entry? That is probably why it is not correctly creating a new grub.cfg or it is not working. I had a typo in my 40_custom that worked with older versions of grub2 but then stopped working as it improved checking for errors.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Sep 2010
    Beans
    10

    Re: GRUB rescue after 14.04 update

    Quote Originally Posted by oldfred View Post
    Not seen that error, but did you change grub menu colors?
    No. I've used Boot Repair and now everything seems to be ok except one thing. Here's report:

    http://paste.ubuntu.com/7274494/

    Now I've got two Windows 8 entries in GRUB. Which should I remove safely? Sda1 or Sda2?

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB rescue after 14.04 update

    Boot flag is on sda1, so I would keep that. Windows uses boot flag, grub does not.

    Boot-Repair copies Windows boot files from its boot partition to main install as many users seem to not know sda1 is the Windows boot partition and just delete it. Then they have major issues. But then with the boot files also in sda2, grub will add another entry.

    You also installed grub to sda3 which is a NTFS partition. That may cause major issues even though not a boot partition. Never install grub to a NTFS partition and extremely rarely to any partition.

    Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
    This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.
    http://sourceforge.net/apps/mediawik...ms:Boot_Sector
    You want to get to this screen:
    http://www.cgsecurity.org/wiki/TestD...ector_recovery

    OR:
    [HowTo] Repair the bootsector of a Windows partition - YannBuntu
    https://help.ubuntu.com/community/BootSectorFix
    http://ubuntuforums.org/showthread.php?t=1926510
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Sep 2010
    Beans
    10

    Re: GRUB rescue after 14.04 update

    Ok, so to clarify. I need now for example go to this page: https://help.ubuntu.com/community/BootSectorFix and follow this steps? Which is the easiest way to remove grub from NTFS partition?

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB rescue after 14.04 update

    If backup is valid you want to restore the backup.

    Otherwise you have to use testdisk to create its generic NTFS boot sector (BS) as with grub installed to the PBR, Windows will not even recognize the partition.
    If you have to use testdisk to create a BS, it is more a XP type, and you should run chkdsk from your version of Windows which will update it. But with grub in the BS, you cannot even run chkdsk.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  7. #7
    Join Date
    Sep 2010
    Beans
    10

    Re: GRUB rescue after 14.04 update

    I'm a little confused, so sorry for my questions. What should I do now? I don't have backup of Ubuntu.
    Do I need to run testdisk while I'm using Windows 8?

    Here's chkdsk results:

    Code:
    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. Wszelkie prawa zastrzeżone.
    
    
    C:\WINDOWS\system32>chkdsk
    The type of the file system is NTFS.
    Volume label is Windows8_OS.
    
    
    WARNING!  F parameter not specified.
    Running CHKDSK in read-only mode.
    
    
    Stage 1: Examining basic file system structure ...
    
    
    
    
      315392 file records processed.
    
    
    File verification completed.
    
    
    
    
      4511 large file records processed.
    
    
    
    
      0 bad file records processed.
    
    
    Stage 2: Examining file name linkage ...
    
    
    
    
      392334 index entries processed.
    
    
    Index verification completed.
    
    
    
    
      0 unindexed files scanned.
    
    
    
    
      0 unindexed files recovered.
    
    
    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
    
    
    
    
      38472 data files processed.
    CHKDSK is verifying Usn Journal...
    
    
    
    
      36082168 USN bytes processed.
    
    
    Usn Journal verification completed.
    
    
    Windows has scanned the file system and found no problems.
    No further action is required.
    
    
     421312511 KB total disk space.
     183637720 KB in 206470 files.
        118028 KB in 38473 indexes.
             0 KB in bad sectors.
        430771 KB in use by the system.
         65536 KB occupied by the log file.
     237125992 KB available on disk.
    
    
          4096 bytes in each allocation unit.
     105328127 total allocation units on disk.
      59281498 allocation units available on disk.
    
    
    C:\WINDOWS\system32>
    I have no idea how to fix thix problem Please help.

  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB rescue after 14.04 update

    Not the backup of Ubuntu but the backup of the PBR partition boot record or BS boot sector.

    Testdisk screen shows you grub in PBR and may say it is ok, but it is not, but you want to restore the backup BS if testdisk says it is ok. If not create new BS also on same screen in testdisk.

    Please review post #4, either of those links gives you the entire process.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  9. #9
    Join Date
    Sep 2010
    Beans
    10

    Re: GRUB rescue after 14.04 update

    I've got question regarding these instructions:
    http://sourceforge.net/apps/mediawik...ms:Boot_Sector

    Which partition should I choose now? (After Fifth screen: Select the Windows system partition and choose "boot")
    My screenshot:


    Is it a solution to my problem or only a small step and I should review/read other links ?

    Best regards,
    Ron.

  10. #10
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB rescue after 14.04 update

    Its not your boot partition and that is why Windows works, but all NTFS partitions need a NTFS boot sector. Or never have grub in the PBR of a NTFS partition.

    BootInfo report shows grub installed to PBR or boot sector of sda3 another NTFS partition, which testdisk is showing as your lenovo-recovery. So just run the commands on sda3.

    sda3: _____________________________

    File system: ntfs
    Boot sector type: Grub2 (v1.99-2.00)
    Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda3
    and looks at sector 920361184 of the same hard drive
    for core.img. core.img is at this location and looks
    in partition 112 for . No errors found in the Boot
    Parameter Block.
    Operating System:
    Boot files:
    If you look as sda1 or sda2 they show correct NTFS boot sectors in bootinfo report.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •