
[Solution] Fix Ubuntu Boot
- Check if You Can Access the GRUB Boot Loader. The first thing to check is whether you can access the GRUB2 boot loader. ...
- Repair GRUB If You Can’t Access It. If you can’t access GRUB, you’ll need to repair it. ...
- Use Recovery Mode If You Can Access GRUB. ...
- Reinstall Ubuntu While Keeping Files and Programs. ...
- Insert your Ubuntu CD, reboot your computer and set it to boot from CD in the BIOS and boot into a live session. You can also use a LiveUSB if you have created one in the past.
- Install and run Boot-Repair.
- Click "Recommended Repair".
- Now reboot your system. The usual GRUB boot menu should appear.
How to get boot time and uptime on Ubuntu?
Check Uptime on Ubuntu
- Uptime on Ubuntu. On any UNIX-like system, the uptime command will come pre-installed. ...
- Check system uptime. To check the system uptime, run the following command. ...
- Human-readable output. For humans like us, wouldn’t a nicer output be appreciated? ...
- Date and time since when the system is up. ...
- Uptime help. ...
- Final thoughts. ...
How to repair Ubuntu easily?
The Easy Way
- Create Your Live CD/USB. If you don’t already have one, create a live medium to work off of. ...
- Add The PPA. It might seem counter-intuitive, but you can enable a PPA and install software on a live CD. ...
- Install Boot-Repair. Now, you can install Boot-Repair like you normally would with Apt.
- Run The Utility. Finally, you can run the utility. ...
How do I boot Ubuntu from my USB flash drive?
With a bootable Ubuntu USB stick, you can:
- Install or upgrade Ubuntu
- Test out the Ubuntu desktop experience without touching your PC configuration
- Boot into Ubuntu on a borrowed machine or from an internet cafe
- Use tools installed by default on the USB stick to repair or fix a broken configuration
How to boot Ubuntu from a flash drive?
- Get the correct Ubuntu installation file, 'the iso file', via this link or Ubuntu flavour via this link. ...
- Check with md5sum (or another checksum tool) that the download was good.
- Put Ubuntu onto your USB flash drive alias 'stick' alias 'pendrive' alias 'thumb'. ...
- Configure your computer to boot from USB flash drive and boot from it.

How do I fix Ubuntu when it wont boot?
If Ubuntu is not booting, work through these five steps:Check for bootable devices.Is the GRUB bootloader working?Repair the bootloader menu.Reinstall Ubuntu.Replace faulty hardware.
How do I repair Ubuntu?
How to Fix Broken Ubuntu 20.04 without Reinstalling ItStep 1: Login from Live CD or bootable USB. ... Step 2: Remove the lock files. ... Step 3: Reconfigure dpkg. ... Step 4: Clean local repository. ... Step 5: update all the packages. ... Step 6: install all broken packages and dependencies. ... Step 7: Reboot the system.
Where is boot Repair in Ubuntu?
Boot Repair is not available in the official package repository of Ubuntu. So you have to install it from the Boot Repair PPA. Now press
How do I force Ubuntu to boot?
With UEFI press (perhaps several times) the Escape key to get grub menu. Select the line which starts with "Advanced options". Press Return and your machine will begin the boot process. After a few moments, your workstation should display a menu with a number of options.
How do I run boot repair?
Method 1: Startup Repair toolStart the system to the installation media for the installed version of Windows. ... On the Install Windows screen, select Next > Repair your computer.On the Choose an option screen, select Troubleshoot.On the Advanced options screen, select Startup Repair.More items...•
How repair Linux from terminal?
Repair Corrupted File SystemIf you don't know the device name, use fdisk , df , or any other tool to find it.Unmount the device: sudo umount /dev/sdc1.Run fsck to repair the file system: sudo fsck -p /dev/sdc1. ... Once the file system is repaired, mount the partition: sudo mount /dev/sdc1.
Can you repair Ubuntu from USB?
Repair GRUB If You Can't Access It You can use an Ubuntu installation disc or USB drive to do this. Boot into the USB drive and use the the Linux system to repair GRUB. We have a guide to reinstalling the GRUB2 boot loader on Ubuntu, either with a graphical Boot Repair tool or by using standard Linux terminal commands.
How do I rebuild grub?
ResolutionPlace your SLES/SLED 10 CD 1 or DVD in the drive and boot up to the CD or DVD. ... Enter the command "fdisk -l". ... Enter the command "mount /dev/sda2 /mnt". ... Enter the command "grub-install --root-directory=/mnt /dev/sda". ... Once this command completes successfully reboot your system by entering the command "reboot".
How do I run fsck manually in Linux?
Run fsck on Linux Root PartitionTo do so, power on or reboot your machine through the GUI or by using the terminal: sudo reboot.Press and hold the shift key during boot-up. ... Select Advanced options for Ubuntu.Then, select the entry with (recovery mode) at the end. ... Select fsck from the menu.More items...•
What is Ubuntu recovery mode?
The Ubuntu operating system comes with a “recovery mode.” With this feature, users can access the command-line of a broken system, fix a misconfigured file, test if system memory isn't working, and a lot more.
How do I boot Linux into recovery mode?
You can get recovery mode by restarting the machine and pressing the “Esc” key repeatedly. The Grub boot-loader menu has multiple choices and can be selected according to need. Follow the guide carefully to get the “recovery mode” menu list. There are several options, i.e., clean, dbkg, fsck, network, grub, and root.
How do I fix broken packages in Ubuntu?
How to Fix Broken Packages in UbuntuCheck for Updates.Force APT to Correct Missing Dependencies or Broken Packages.Force Reconfigure or Remove Broken Packages with DPKG.Resolve DPKG Lock Issue.
How do I completely reinstall Ubuntu?
Here are the steps to follow for reinstalling Ubuntu.Step 1: Create a live USB. First, download Ubuntu from its website. You can download whichever Ubuntu version you want to use. Download Ubuntu. ... Step 2: Reinstall Ubuntu. Once you have got the live USB of Ubuntu, plugin the USB. Reboot your system.
How do I restore Ubuntu 20.04 to factory settings?
To start with automatic reset, follow the below steps:Click on Automatic Reset option in the Resetter window. ... Then it will list all the packages that it will be going to remove. ... It will start the reset process and creates a default user and will provide you with credentials. ... When finished, reboot your system.
How do you fix a broken grub?
Another way to fix your GRUB boot issues is to use a Linux live image to boot from an external device.Download a live Linux installer. ... Use a tool such as Etcher to write the Linux image to an SD card or a USB flash drive.Insert the bootable device and start the computer.Select Try Ubuntu on the welcome screen.More items...•
How to get to recovery mode in Ubuntu?
When you start up your Ubuntu PC, hold down the Shift key. The GRUB menu will pop open. Select the “Advanced Options” entry. It’ll probably be the second one from the top. From there, you’ll see several different kernel options. Under each one will be an identical entry with (recovery mode) at the end. Select the recovery entry for the latest kernel.
How to get to Advanced Options in Ubuntu?
Select the "Advanced Options" entry. It'll probably be the second one from the top. From there, you'll see several different kernel options. Under each one will be an identical entry with (recovery mode) at the end. Select the recovery entry for the latest kernel.
Can you shut down Ubuntu and remove the live medium?
You can now shut down Ubuntu and remove the live medium when you’re prompted to do so. Boot back up into your normal Ubuntu system to see if everything worked.
Can Ubuntu live CD repair my system?
There's a utility that you can run from an Ubuntu live CD/USB that automatically repairs your system. You don't have to worry about the specifics or even diagnose the problem. It automatically runs through with the click of a button. So, that's probably a good first option.
Can you boot normally after thining?
After you thin you have your system sorted out, you can try to boot normally with resume.
Can you use a live CD to fix a broken Ubuntu install?
Nothing is perfect, and sometimes an install is just broken. If you’re looking for a last resort measure to rescue your system, you can always try using a live CD and chrooting into your broken install. As always, there are no guarantees, but it will get you access to make backups and try some other methods for debugging and eventually fixing Ubuntu.
Why won't Ubuntu boot?
If you don’t see a menu with a list of boot options appear, the GRUB boot loader may have been overwritten, preventing Ubuntu from booting. This can happen if you install Windows on a drive after installing Ubuntu or another Linux distribution on it. Windows writes its own boot loader to the boot sector, and you won’t be able to boot Ubuntu until you reinstall GRUB.
What does reinstalling Ubuntu do?
The Reinstall option will wipe away all your system-wide settings and return them to their defaults, but that should fix problems that misconfigured system settings could cause. Advertisement. Select this option and continue through the process to reinstall Ubuntu on your computer.
How to check if you have a Grub2 bootloader?
The first thing to check is whether you can access the GRUB2 boot loader. Boot your computer while holding the Shift key. If you see a menu with a list of operating systems appear, you’ve accessed the GRUB boot loader.
What is a Grub boot?
GRUB will boot your Ubuntu system in a very minimal recovery mode menu, skipping the majority of the system services and all the graphical applications that load. It will even load your file system in a safe read-only mode.
How to use recovery mode in Ubuntu?
Use Recovery Mode If You Can Access GRUB. If you do see the GRUB boot menu, you can use the options in GRUB to help repair your system. Select the “Advanced options for Ubuntu” menu option by pressing your arrow keys and then press Enter. Use the arrow keys to select the “Ubuntu … (recovery mode)” option in the submenu and press Enter.
What to do if you can't access Grub?
If you can’t access GRUB, you’ll need to repair it. You can use an Ubuntu installation disc or USB drive to do this . Boot into the USB drive and use the the Linux system to repair GRUB. We have a guide to reinstalling the GRUB2 boot loader on Ubuntu, either with a graphical Boot Repair tool or by using standard Linux terminal commands.
How to back up Ubuntu files?
From here, open the file manager and access the files stored on your Ubuntu system drive. Connect some sort of external storage — such as a USB flash drive or external hard drive — to the computer and use the graphical file manager to back up your files.
What is boot repair?
Boot Repair is a tool to repair common boot issues on Ubuntu, Debian, Arch, Linux Mint, OpenSUSE, Fedora and other Linux distributions, Windows and Mac OS operating systems.
How to change the GRUB location?
To change GRUB location, go to the GRUB location tab of Boot Repair . Now select the hard drive partition from the OS to boot by default drop down menu. If you’re using UEFI based motherboard, then also select the hard drive partition which is used as EFI System Partition from Separate /boot/efi partition drop down menu.
How to backup partition tables?
To backup your partition tables, just click on Backup partition tables, bootsectors and logs button as marked in the screenshot below.
Can I install Boot Repair on Ubuntu Live?
You usually install Boot Repair on an Ubuntu live boot as you may not be able to boot into your operating system installed on the hard drive at that time. So this is what I am going to focus on in this article.
Is Boot Repair available in Ubuntu?
Boot Repair is not available in the official package repository of Ubuntu. So you have to install it from the Boot Repair PPA. Now add the PPA of Boot Repair with the following command: Now press <Enter> to continue. The Boot Repair PPA should be added and the APT package repository cache should be updated.
Can you make a bootable USB stick for Ubuntu?
You can make an Ubuntu bootable USB stick of any latest version of Ubuntu Live DVD ISO image. I have a dedicated article on that topic, which you can read at https://linuxhint.com/rufus_bootable_usb_install_ubuntu_18-04_lts/
Should Boot Repair PPA be added?
The Boot Repair PPA should be added and the APT package repository cache should be updated.
What is boot repair?
The Boot-Repair tool is focussed on those early boot problems caused by the hard drive's boot sector, MBR and Grub. It basically provides a convenient and user-friendly graphical front-end to the tools required to fix many problems.
What to do if you have no grub?
If you're struggling to fix Grub issues by hand, or there's no sign of Grub on your system at all, then you'll need to enlist the services of your rescue media and the Boot-Repair tool, which works with all Debian-based distros, including Ubuntu.
What are the stages of grub 2?
This reveals that the boot process can be split into three broad stages centred around the Grub 2 boot loader: pre-Grub, Grub and post-Grub. Knowing this allows you to focus your troubleshooting efforts based on where in the process the error or freeze occurs.
What to do if you overclocked your PC?
If you've overclocked your PC, eg, you should now enter the system EFI or BIOS and look for the option to load fail-safe defaults. Try rebooting again.
How to enter grub terminal?
If you press C you may be able to enter the Grub Terminal mode to perform basic checks and repairs – you can attempt to manually initiate the boot by pressing Ctrl+X or F10, eg, or use the set command to review current settings and change basic settings such as the graphics mode.
Why does my Linux menu not start before grinding to a halt?
If the Grub menu appears, then the issue may lie with its configuration file if things immediately grind to a halt after you select a menu option, but if Linux does start loading before grinding to a halt, the problem will lie with your operating system, in which case skip to the Post-Grub troubleshooting section.
What is a start up problem?
That moment when – having expected yourself to be getting on with your day's work or entertainment – you find yourself staring at a cryptic error message, or even worse, a blank screen.
What to do if Ubuntu doesn't boot?
In the event that Ubuntu still does not boot, the only viable option left is to install Ubuntu once again. In that case, you will again need the live USB.
Why is Ubuntu not booting?
There can be many reasons behind Ubuntu being unable to boot, like, GRUB error, broken package installation, or even a faulty hardware issue. We will be looking at these issues one-by-one and try to solve it.Here are some of the most common Linux Boot issues and their solutions. Bear in mind that these steps are generally for Ubuntu, but could be applied to any Linux system.
How to recover grub?
To recover GRUB, you will need a live USB of the Linux system which you are trying to restore, i.e., you will need an Ubuntu 18.04 x64 live USB to recover Ubuntu 18.04. Once you get the USB, boot into it and choose the “Try Ubuntu” option. When it boots into Live USB, follow the steps below (Ubuntu grub repair):
What is recovery mode in Ubuntu?
This Recovery mode is very similar to Windows safe mode, it loads only the slimmed down version of Ubuntu. Ubuntu will only load the parts which are absolutely necessary.
How to check if you can access your GRUB?
First, check whether you can access your GRUB or not. To check this, restart the system and press shift while the system is booting. This will open up below screen.
Does Windows overwrite the GRUB?
When you have a dual boot system and you install Windows (or in some case update it), Windows overwrites the GRUB with its own MBR (Master Boot Record) which unfortunately does not recognize the Linux system, which in turn leads to Ubuntu booting problems.
What is boot repair?
Boot Repair is a graphical tool that can repair GRUB2 with a single click. This is the ideal solution to boot problems for most users.
How to repair GRUB2?
The Boot Repair window will automatically scan your system after you run the boot-repair command. After it scans your system, click the “Recommended repair” button to repair GRUB2 with a single click.
Can you use advanced options in Ubuntu?
You can choose to use the advanced options here, but Ubuntu’s wiki recommends you not use the advanced options unless you know what you’re doing. The recommended repair option can fix most problems automatically, and you could mess up your system even more by selecting the wrong advanced options.
Can you restore Grub2 from a USB drive?
You can easily restore GRUB2 from a Ubuntu live CD or USB drive. This process is different from restoring the legacy GRUB boot loader on older Linux distributions.
Introduction
Today, I was upgrading my Ubuntu LTS system. Unfortunately, the power has gone in the middle of the upgrade process and the system is powered off while upgrading packages.
Fix broken Ubuntu OS without reinstalling it
1. First of all, try to login with live cd and backup your data in an external drive. Just in case, if this tutorial didn't work, you can still have your data and reinstall everything!

Conventions
- # – requires given linux command to be executed with root privileges either directly as a root user or by use of sudocommand
- $ – given linux commandto be executed as a regular non-privileged user
Introduction
- No one wants a system that doesn’t boot. It’s about as bad and frustrating as any technical problem gets, and more often than not, it feels like the system is totally shot. Fear not, though, Ubuntu has a couple of convenient ways to help repair your computer and get things back to normal.
The Easy Way
- Believe it or not, there isand easy way. There’s a utility that you can run from an Ubuntu live CD/USB that automatically repairs your system. You don’t have to worry about the specifics or even diagnose the problem. It automatically runs through with the click of a button. So, that’s probably a good first option.
More Options
- If you think you know what the problem is, you can always try the default Ubuntu way of fixing boot problems. Included with every Ubuntu install is a series of fail-safe options that allow you to more easily recover a non-booting system. They let you take the reigns a bit more than the Boot-Repair utility, but they also allow you more options to mess up your system. If you’re going to go …
Closing Thoughts
- With any luck, these tips helped you save your Ubuntu PC. Remember to be careful when running any kind of repair. There’s always the chance of things going wrong or unintended consequences. Nothing is perfect, and sometimes an install is just broken. If you’re looking for a last resort measure to rescue your system, you can always try using a live CD and chrooting into your broke…