Tutorials

How to repair boot problem in ubuntu

Table of contents:

Anonim

Surely you have ever tried to boot your Ubuntu system and you have been unpleasantly surprised to see that the system is unable to start, showing an error message related to initramfs immediately after GRUB. Don't worry because we will teach you how to repair boot problem in Ubuntu in a few short steps.

Boot problem in Ubuntu

Faced with startup problem related to initramfs many users despair and think that the only way to solve the problem is to reinstall the system, luckily this will not be necessary in many cases and it will only take a few minutes to solve the problem.

Repair in a very simple way the initramfs boot problem of your Ubuntu

First of all we need a bootable media (DVD or USB stick) with a Ubuntu Live-CD image, for this you can follow our simple and interesting tutorial run a GNU / Linux distribution from a USB stick.

Once we have our pendrive ready we just have to start Ubuntu from it in live mode to be able to use the Linux console and repair the problem with the startup of our system. You just need to follow the following steps:

Launch a terminal, generally the fastest way is using the Ctrl + Alt + T hotkeys.

Enter the following command in the terminal and press Enter:

sudo fdisk -l

The console will show you something very similar to what you see below, pay attention to the line in bold that is the one that indicates the partition that contains the GRUB boot manager, and is the one that we must repair to be able to start our system correctly. We recognize it by featuring the * symbol and the word Linux at the end.

Disk / dev / sda: 250.1 GB, 250059350016 bytes 255 heads, 63 sectors / track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: ********** Device Boot Start End Blocks Id System / dev / sda1 * 1 30238 242886703+ 83 Linux / dev / sda2 30239 30401 1309297+ 5 Extended

As you can see at the beginning of the line in bold, the partition that contains the bootloader is sda1 and it is the one that we must repair with the following command:

sudo fsck / dev / sda1

If instead of sda1 the partition to be repaired was another, we only have to replace it, for example suppose it is sda2 with what would look like this:

sudo fsck / dev / sda2

With this we will have repaired our Ubuntu system and we can start it again without problems. If this does not solve the boot problem of your Ubuntu, the cause is different.

What did you think of our tutorial on how to repair boot problem in Ubuntu? Have you been able to fix it with these steps? We recommend reading our computer tutorials.

Tutorials

Editor's choice

Back to top button