Diff for "Boot-Repair"


Differences between revisions 65 and 73 (spanning 8 versions)
Revision 65 as of 2014-10-11 10:23:46
Size: 7898
Editor: pa49-183-89-38
Comment: Manual boot repair
Revision 73 as of 2014-11-02 23:25:17
Size: 3956
Editor: yannubuntu
Comment: ppa update. If any issue with the tool, please create a bug report in launchpad.
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
Boot-Repair is a free software, licensed under GNU-GPL. Boot-Repair should be [[https://bugs.launchpad.net/boot-repair/+bug/806291|soon]] included in Ubuntu official repositories, until then use it at your own risk.
Boot-Repair is a free software, licensed under GNU-GPL.
Line 16: Line 15:
Line 22: Line 20:
The easiest way to use Boot-Repair is to burn one of the following disks and boot on it.

 *
[[http://sourceforge.net/p/boot-repair-cd/home|Boot-Repair-Disk]] is a disk starting Boot-Repair automatically.
 * Boot-Repair is also included in [[LinuxSecureRemix|Linux-Secure-Remix]].
The easiest way to use Boot-Repair is to burn a disk containing the tool (eg [[http://sourceforge.net/p/boot-repair-cd/home|Boot-Repair-Disk]], a disk starting Boot-Repair automatically), and boot on it.
Line 37: Line 32:
For Ubuntu 12.04
Line 39: Line 35:
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-trusty.list }}}
For Ubuntu 14.04 and newer
{{{
sudo add-apt-repository kranich/cubuntu
}}}

- then type:
{{{
Line 44: Line 47:
Note: replace trusty with utopic if you are running 14.10. - After using the tool in an installed Ubuntu session, remove the PPA from your Software Sources.
Line 50: Line 53:
Line 52: Line 56:
    * or System->Administration->Boot-Repair menu (Ubuntu 10.04 only)
Line 55: Line 58:
 * Then click the "Recommended repair" button. When repair is finished, note the URL ('''paste.ubuntu.com/XXXXX''') that appeared on a paper, then reboot and check if you recovered access to your OSs.   * Then click the "Recommended repair" button. When repair is finished, note the URL ('''paste.ubuntu.com/XXXXX''') that appeared on a paper, then reboot and check if you recovered access to your OSs.
Line 63: Line 66:

{{http://pix.toile-libre.org/upload/img/1335263156.png}}
{{http://pix.toile-libre.org/upload/img/1335263804.png}}
{{http://pix.toile-libre.org/upload/img/1357337899.png}}
{{http://pix.toile-libre.org/upload/img/1335263417.png}}
{{http://pix.toile-libre.org/upload/img/1357348203.png}}


= Manual boot repair =

Boot repair may be required when updating Windows (e.g. Windows 8 to Windows 8.1). This is especially pertinent if the computer has been configured such that Windows/Ubuntu is selected by entering the bios and changing the boot mode between "secure boot"/UEFI and CMS respectively.
 
The "Recommended Repair" in the Boot-Repair tool may fail with an Ubuntu 14.04 LTS installation. It is therefore recommended to manually repair Grub. To manually repair grub, see the "Manually repair Grub" section below.

== Manually repair Grub ==

To manually repair grub (To manually repair grub (http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd / http://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-after-installing-windows );

 * Insert Ubuntu installation media (e.g. Ubuntu 14.04 LTS 64 bit DVD)
 * Ensure the bios boot order is set to read the media first (consult your motherboard/computer manual) and restart the computer
 * Select Ubuntu Live/Try mode (do not install)
 * Click on the purple Ubuntu search button - enter "gparted" and click on its icon
 * Determine the name of your linux partition (/dev/sdXY) - you should be able to identify it by recognising its format (most likely ext4) and size (number of GB)
 * Click on purple Ubuntu search button - enter "gnome-terminal" and click on its icon
 * {{{sudo mount /dev/sdXY /mnt}}} (where sdXY has previously been identified using gparted)
 * {{{sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys}}}
 * {{{sudo chroot /mnt}}}
 * {{{sudo grub-install /dev/sdX}}} [note this is sdX not sdXY!]
 * {{{grub-install --recheck /dev/sdX}}} [this step shouldn't be required]
 * {{{update-grub}}}
 * {{{exit}}}
 * {{{sudo umount /mnt/sys && sudo umount /mnt/proc && sudo umount /mnt/dev/pts && sudo umount /mnt/dev && sudo umount /mnt}}}

== Manually repair failed Boot-Repair changes ==

In the event Boot-Repair has been run and has failed (e.g. by attempting to install unavailable packages "sudo apt-get install linux"), grub might have to be manually reinstalled. To manually reinstall grub;

 * Insert Ubuntu installation media (e.g. Ubuntu 14.04 LTS 64 bit DVD)
 * Ensure the bios boot order is set to read the media first (consult your motherboard/computer manual) and restart the computer
 * Select Ubuntu Live/Try mode (do not install)
 * Click on the purple Ubuntu search button - enter "gparted" and click on its icon
 * Determine the name of your linux partition (/dev/sdXY) - you should be able to identify it by recognising its format (most likely ext4) and size (number of GB)
 * Click on the purple Ubuntu search button - enter "gnome-terminal" and click on its icon
 * {{{sudo mount /dev/sdXY /mnt}}}
 * {{{sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys}}}
 * {{{sudo chroot /mnt}}}
 * Ensure internet connection is working by opening and running firefox
 * activate internet for chroot; {{{sudo cp /etc/resolv.conf /mnt/etc/resolv.conf}}}
 * {{{sudo apt-get update}}}
 * {{{sudo apt-get install grub2}}}
 * Follow "Manual boot repair" instructions above (starting from point 10; "sudo grub-install...")

Boot-Repair is a simple tool to repair frequent boot issues you may encounter in Ubuntu like when you can't boot Ubuntu after installing Windows or another Linux distribution, or when you can't boot Windows after installing Ubuntu, or when GRUB is not displayed anymore, some upgrade breaks GRUB, etc.

Boot-Repair lets you fix these issues with a simple click, which (generally reinstalls GRUB and) restores access to the operating systems you had installed before the issue.

Boot-Repair also has advanced options to back up table partitions, back up bootsectors, create a Boot-Info (to get help by email or forum), or change the default repair parameters: configure GRUB, add kernel options (acpi=off ...), purge GRUB, change the default OS, restore a Windows-compatible MBR, repair a broken filesystem, specify the disk where GRUB should be installed, etc.

Boot-Repair is a free software, licensed under GNU-GPL.

http://pix.toile-libre.org/upload/original/1335260967.png

Getting Boot-Repair

1st option : get a disk including Boot-Repair

The easiest way to use Boot-Repair is to burn a disk containing the tool (eg Boot-Repair-Disk, a disk starting Boot-Repair automatically), and boot on it.

Remark : you can also install the ISO on a live-USB (eg via UnetBootin or LiliUSB or Universal USB Installer).

2nd option : install Boot-Repair in Ubuntu

- either from an Ubuntu live-session (boot your computer on a Ubuntu live-CD or live-USB then choose "Try Ubuntu") or from your installed Ubuntu session (if you can access it)

- connect to the Internet

- open a new Terminal, then type the following commands (press Enter after each line):

For Ubuntu 12.04

sudo add-apt-repository ppa:yannubuntu/boot-repair

For Ubuntu 14.04 and newer

sudo add-apt-repository kranich/cubuntu

- then type:

sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

- After using the tool in an installed Ubuntu session, remove the PPA from your Software Sources.

Using Boot-Repair

  • launch Boot-Repair from either :
    • the Dash (the Ubuntu logo at the top-left of the screen)
    • or by typing 'boot-repair' in a terminal
  • Then click the "Recommended repair" button. When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OSs.

  • If the repair did not succeed, indicate the URL to people who help you by email or forum.

Advanced options

Warning: the default settings are the ones used by the "Recommended Repair". Changing them may worsen your problem. Don't modify them before creating a BootInfo URL, and asking for advice on Ubuntu Forums Absolute Beginners Section or in Installation and Upgrades.

External Links

Boot-Repair (last edited 2022-01-18 23:30:53 by yannubuntu)