Diff for "Boot-Repair"


Differences between revisions 66 and 70 (spanning 4 versions)
Revision 66 as of 2014-10-13 07:42:59
Size: 7896
Editor: pa49-183-65-89
Comment: attempt to unlock page and update content
Revision 70 as of 2014-10-25 13:30:33
Size: 4885
Editor: 82-69-29-161
Comment: This tool appears to be sorely out of date, and as a result is highly dangerous.
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:

= Warning =

/!\ '''This tool was built for saucy, and does not appear to have been updated since. It does not appear to know much about EFI, and in at least one case has broken initrds that needed dm-crypt.ko support to function. Proceed with extreme caution''' /!\
Line 8: Line 12:
Do not use it for a system that uses EUFI/SecureBoot! It hasn't been updated to handle that.
Line 12: Line 18:
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 25: Line 30:
 * Boot-Repair is also included in [[LinuxSecureRemix|Linux-Secure-Remix]].  * Boot-Repair is also included in [[LinuxSecureRemix|Linux-Secure-Remix]] and various other distributions.
Line 39: Line 44:
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-trusty.list sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
Line 44: Line 49:
Note: replace trusty with utopic if you are running 14.10. Note: if you are running 14.10 (utopic) you have to replace the second command with the following
{{{
sudo sed 's/utopic/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-utopic.list
}}}
Line 70: Line 78:
= 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...")

Warning

Warning /!\ This tool was built for saucy, and does not appear to have been updated since. It does not appear to know much about EFI, and in at least one case has broken initrds that needed dm-crypt.ko support to function. Proceed with extreme caution Warning /!\

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.

Do not use it for a system that uses EUFI/SecureBoot! It hasn't been updated to handle that.

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 one of the following disks 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):

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Note: if you are running 14.10 (utopic) you have to replace the second command with the following

sudo sed 's/utopic/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-utopic.list

Using Boot-Repair

  • launch Boot-Repair from either :
    • the Dash (the Ubuntu logo at the top-left of the screen)
    • or System->Administration->Boot-Repair menu (Ubuntu 10.04 only)

    • 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.

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

External Links

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