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

Thread: How to re-install the bootloader

  1. #1
    Join Date
    Jun 2014
    Beans
    24

    How to re-install the bootloader

    I accidently altered my partition table. Somehow I wiped it out completely and changed the disk label. Before I rebooted I managed to rebuild it the way it originally was using the original structure and label however I need to re-install a new bootloader for the new MBR. I have Ubuntu 14.04TLS running inside VirtualBox on a Windows 7 machine. Is there a way to do this without rebooting?

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to re-install the bootloader

    Moved to the Other Operating Systems and Projects sub-forum.

  3. #3
    Join Date
    May 2014
    Location
    King's Lynn, UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to re-install the bootloader

    Last edited by Mike_Walsh; August 25th, 2014 at 01:19 PM.
    Distros: Ubuntu 14.04, Zorin OS Core 9, Lubuntu, Kubuntu, Xubuntu, Puppy 'Slacko'
    Athlon64 3200+, 3GB RAM, 160 GB WD Caviar 'Black', ATI Xpress200 graphics.
    ​BACK YOUR DATA UP.....before ANY major changes! Reg. Linux User: #579645

  4. #4
    Join Date
    Jun 2014
    Beans
    24

    Re: How to re-install the bootloader

    I ran those commands but get a 404 not found when apt-get tries to access those repositories. Anyway I just re-installed Grub. I think this may have worked. I'll reboot and see. On a side note - I noticed that my system has both Grub and Grub2 installed. How can I tell which bootloader the OS is using?

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

    Re: How to re-install the bootloader

    Boot-Repairs report shows all the details of your install.
    There is not a trusty version and you have to edit the sources to use the saucy version. Instructions in link.

    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair

    The Boot-Repair report actually uses this for about the first third of its report. It will also show most of your install details.

    Boot Info Script courtesy of forum members meierfra & Gert Hulselmans
    Boot Info Script 0.61 is released April 2, 2012
    boot_info_script.sh" file renamed to "bootinfoscript
    http://sourceforge.net/projects/boot...atest/download
    Page with instructions and link to above new download:
    http://bootinfoscript.sourceforge.net/
    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.







  6. #6
    Join Date
    Jun 2014
    Beans
    24

    Re: How to re-install the bootloader

    oldfred - followed the instructions in the first link in your post. Everything seemed to install ok - till I tried to run "boot-repair" in terminal then I got this:

    $ boot-repair(gksudo:9573): Gtk-WARNING **: cannot open display:
    $ sudo boot-repair
    error: XDG_RUNTIME_DIR not set in the environment.
    error: XDG_RUNTIME_DIR not set in the environment.

    Then a bunch of rolling failure lines with GTK critical. I suppose its telling me it cant run from terminal and wants the GUI. Anyway, I ran env to see if I have a the XDG_RUNTIME_DIR set and it does have a path set. How do you make this work from the shell?

  7. #7
    Join Date
    Jun 2014
    Beans
    24

    Re: How to re-install the bootloader

    Well it ran fine from the GUI - said "Boot Successfully Repaired". Would still like to know how to make this work from the shell if that's possible and if there is a way to tell of the systems using Grub or Grub2. They are both installed.

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

    Re: How to re-install the bootloader

    It should give you a link to a pastebin. Post that.
    Or if you did not save it just rerun report only and post link.
    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
    Jun 2014
    Beans
    24

    Re: How to re-install the bootloader

    http://paste.ubuntu.com/8142980/ - I see a few errors not sure if they would be fatal on a reboot or not.

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

    Re: How to re-install the bootloader

    Grub install had an exit code of 0 or no errors, so it says it reinstalled correctly.

    With one install, you do not get grub menu unless you hold shift key from BIOS until menu appears.
    Not sure if with virtualbox that is the same or not.

    But if video is not correct you may get past boot issues and into video or other driver issues and not really know it.
    Sometimes boot parameters are required for video or other hardware settings.

    At grub menu you can use e for edit, scroll to linux line and replace quiet splash with nomodeset.
    How to set NOMODESET and other kernel boot options in grub2 - both BIOS liveCD & grub first boot ( also UEFI with grub)
    http://ubuntuforums.org/showthread.php?t=1613132
    Possible boot options suggested by ubfan1
    http://ubuntuforums.org/showthread.p...0#post12871710
    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

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
  •