Home Ubuntu How To Fix Busybox Initramfs Error On Ubuntu

How To Fix Busybox Initramfs Error On Ubuntu

By sk
Published: Last Updated on 151065 Views

This brief guide explains how to fix Busybox Initramfs error on Ubuntu Linux. I use Ubuntu 20.04 LTS as my daily driver on my Dell Inspiron laptop. Today I turned it on and the boot process dropped to the BusyBox shell and I ended up at the initramfs prompt.

As far as I can remember, I didn't do anything wrong. I didn't forcibly power off it. It was working just fine yesterday! When I switched it on today, I landed in the BusyBox shell:

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.1) built-in shell (ash) 
Enter 'help' for a list of built-in commands.


I can't get past this screen. Also it doesn't show what exactly the problem is. All I see is just a blank busybox shell.

I wasn't sure what to do at this point. So I simply passed the exit command to see what happens.

And then I saw the actual error:

(initramfs) exit
/dev/sda1 contains a file system with errors, check forced.
Inode 4326476 extent tree (at level 1) could be narrower, IGNORED.
/dev/sda1: Inode 4326843 extent tree (at level 1) could be narrower, IGNORED.
/dev/sda1: Inode 4327012 extent tree (at level 1) could be narrower, IGNORED.
/dev/sda1: Inode 4329004 extent tree (at level 1) could be narrower, IGNORED.
/dev/sda1: Inodes that were part of a corrupted orphan linked list found.

        (i.e., without -a or -p options) 
fsck exited with status code 4. 
The root filesystem on /dev/sda1 requires a manual fsck. 

BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Busybox Initramfs Error On Ubuntu
Busybox Initramfs Error On Ubuntu

As you can see in the above output, the /dev/sda1 partition is corrupted. The file system in this partition has some errors. If you ever encountered with this type of problem, you need to check and repair the problematic Linux filesystems with fsck command.

Please note that sometimes you don't see any errors after typing the exit command. In that case, try to run fsck on all filesystems.

For those wondering, BusyBox is software suite that provides many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc.

Initramfs is an initial ram file system based on tmpfs. It contains the tools and scripts required to mount the file systems before the init binary on the real root file system is called.

Fix Busybox Initramfs Error On Ubuntu Linux

1. To solve initramfs error on Ubuntu Linux, you need to repair the filesystem in the corrupted partition using fsck command like below:

(initramfs) fsck /dev/sda1 -y

Replace /dev/sda1 with your partition name. In your system, it could be /dev/sdb1, /dev/sdc1 etc. You can use cat /proc/partitions or blkid commands to get your Linux partition details in Busybox.

2. Now the fsck command will start to fix all bad blocks automatically in the filesystem.

After a couple minutes, you will see an output like below:

/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda1: 497733/30531584 files (1.5% non-contiguous), ........

3. Next, type reboot and hit ENTER to restart your system!

(initramfs) reboot
Fix Busybox Initramfs Error On Ubuntu Linux
Fix Busybox Initramfs Error On Ubuntu Linux

If the reboot command doesn't work, type exit and hit ENTER.

Cross your fingers and wait for the system to reboot! If all went well, your system will boot normally without any problem.

These steps helped me and many others (see the comment section below) to solve Busybox Initramfs error on Ubuntu Linux operating system. If you are stuck in initramfs prompt, this guide will definitely help.

Heads Up: If you keep getting this error often, probably your hard disk is getting weaker. In that case, it is recommended to backup the data and replace the hard disk as soon as possible.

If your Ubuntu system is crashed due to power failure or network connectivity issue in the middle of the upgrade process, you might end up with broken Ubuntu. In that case, you can easily fix broken Ubuntu without reinstalling it as described in the following guide.

Featured image by ErfourisStudio from Pixabay.

You May Also Like


Fred Fixit August 7, 2020 - 11:47 am

When this type of problem occurs, the sensible approach is to boot the system from a rescue CD/DVD/USB-memory stick with the same GNU/Linux distribution version and then first check hardware (dmesg shows for example whether hard disks are operational or producing failing messages) and then if they are properly functioning to fsck -CfV all of the [unmounted] file system partitions. If that does not fix the boot up problem, then it is possible from the rescue booted system to do further repairs and even to reinstall any essential corrupted software.

JOY SAM RAJ M May 17, 2021 - 4:19 pm

Works. Easy thank u

Aliyu July 27, 2021 - 4:01 pm

The instruction works for me! I’m really excited now!

joacim September 6, 2020 - 12:15 am

thank you very much bro

Manohar September 10, 2020 - 12:43 pm

I got the same issue. I followed every instruction mentioned and came to the final step. I typed reboot and from then it was still showing wait for the system to reboot for almost 2 days…. What should I do now?
I have a dual boot in my laptop with windows and ubuntu

sk September 10, 2020 - 10:29 pm

Are you really waiting 2 days? Better boot your system with a live cd, backup your data and reinstall the OS. BTW, the solution posted here is tested with Ubuntu 20.04 GNOME desktop (DELL laptop). It worked perfectly in my case.

Radouan Elouardi July 10, 2021 - 3:21 am

It did work for me, thank you so much.
In my case, i did create this problem by following the instructions of a member from a forum where i was looking for a solution about why can’t i install any package on my ubuntu.
He did said that i should type : fsck -n -f and then reboot.
I did just that and to my surprise: initramfs and busybox happened.
Thank you again for your help

Vetrivel September 23, 2020 - 5:50 pm

Thank you SK.

I got my 32 bit Mint 19.3 back with all in their place, after following your instructions.

sk September 23, 2020 - 6:46 pm

Glad it worked for you.

Thomas B May 31, 2021 - 9:55 pm


JS September 29, 2020 - 12:46 pm

I’m getting the error with different ‘exit’ output on a YUMI Lubuntu 16.04 Live USB. The output runs screenfuls and doesn’t scroll. Somehow I nonetheless expect a similar problem.

Aman October 5, 2020 - 12:39 pm

Thanks a lot. It was helpful although I’d to use sda2 but the command worked.

Lisa Li October 21, 2020 - 9:34 pm

I had to use a different sda number but once I found out what it was it did as described. The only thing that didn’t work was reboot. I have Ubuntu 20.04. The reboot command didn’t work so I tried exit and after a minute or so it started rebooting.

Elisavet October 29, 2020 - 5:33 pm

I type
fsck /dev/sda1 -y
an it says
fsck from util-linux 2.34
What do I do??

iriatum October 30, 2020 - 4:21 am

probably you didn’t enter the correct system path?
just replace this part [/sda1] with your file system path then try again!

ADITYA RAMEKAR October 30, 2020 - 9:18 am

Thankyou so much it is solved!!
my problem was in dev/mapper/rgunbuntu

Ben October 31, 2020 - 4:09 am

Thanks u just saved my life . I wanna add something in my case the reboot command didn’t work so I just shut it through the power button .and it was another sda not sda1 it was sda3 in my case .

Denny November 1, 2020 - 8:33 am

Thank you

Rome November 13, 2020 - 7:31 am

many thanks SK

Naik javaid November 16, 2020 - 2:41 pm

In my case it was sda3 and reboot didn’t work..i tried exit and it worked.. Thanks

Pavan Kumar November 20, 2020 - 9:49 am

Hii..I am Pavan Kumar from Tamilnadu, India…I tried this and it worked…. Thankyou….

sk November 20, 2020 - 11:13 am

You’re welcome. Glad I could help.

Jerry December 3, 2020 - 1:17 am

Using Mint 19, just had this happen today. Followed the instructions in this article and everything is now working perfectly fine again. Thank you!

sk December 3, 2020 - 11:08 am

You’re welcome. Glad it helped to fix your problem.

Yago December 3, 2020 - 11:07 pm

Man, y saved my life. Thank you

Kris December 8, 2020 - 11:05 am

Thank you so much for this article – just saved me from having a long night of backing up everything and reinstalling! Thank you!!!

Freek Goeree December 10, 2020 - 12:30 am

Thanks for the article. It worked very well. The only thing which didn’t work was the reboot command, but Ctrl+Alt+Delete did it. Thank you very much.

salam December 15, 2020 - 3:04 pm

thank you man

Zogbolou Yannick December 16, 2020 - 5:18 pm

Thank you I’m happy

David December 18, 2020 - 12:28 am

Great thanks. It solved my issue. Only thing now is that I seem to be stuck on the login screen. When I enter my password the screen try to load but come back to the login screen. I have no message saying it’s the wrong password and I have been carefully with typos. If I enter a different password, I’m told it’s incorrect so I’m confident my password is OK but I’m stuck in a loop.

DonLino December 18, 2020 - 1:42 pm

Thanks for your explanation 😊
I solved my case perfectly

Developer Avijit December 18, 2020 - 4:58 pm

Thank you very much friend ❤️❤️

Andi Alvin December 19, 2020 - 12:29 pm

Thanks sir

Farish K December 20, 2020 - 10:28 am

Thank you so much. It got worked fine

Matt December 20, 2020 - 8:41 pm

Thanks, crazy I had the exact same issue this week! Down to the same HW dev sda1!

Your instructions were perfect.

sk December 20, 2020 - 9:13 pm

Glad I could help. Regards.

ShahAlom December 24, 2020 - 7:03 pm

Thanks brothe.

Akash December 24, 2020 - 8:21 pm

Thank you very much mate. Issue got resolved 🙂

shyCoder December 26, 2020 - 6:32 pm


I am also resolving my problem by using the couple of commands, but its not permanent solution as it happens more often to me.

I would love to have the permanent fix if you have any.

Love from India.

sk December 26, 2020 - 7:31 pm

If this error happens often, it could hdd problem. Please check hdd. Regards.

Hriday Sarma December 30, 2020 - 5:45 pm

Thanks for your help . It worked perfectly

hafid ali January 5, 2021 - 2:50 pm

dear thanks after I fix this then I boot again to windows 10 after restart again come back the error is there is the final solution for it I have SSD and HDD inside the laptop

sk January 5, 2021 - 6:26 pm

I guess it is HDD/SDD related issue. If you keep getting this error, it is time to check your hard disk health.

Rahul January 13, 2021 - 3:35 am

Thanks SK you are a life saver…i had same issue on my ubuntu. I followed every instruction but it didn’t work instantly because mine was sd5 not sd1 like you mentioned above. Anyway It worked flawlessly and you certainly helped very much here. I am sick and tired of reinstalling the whole damn OS every time i hit a problem. This time because of you i am very happy man and can sleep nicely. Cheers

sk January 13, 2021 - 11:05 am

Glad I could help. You’re very welcome. Cheers.

Bone Michael January 18, 2021 - 7:57 pm

Thank you

Mike January 23, 2021 - 6:46 am

Hi there,

I’ve asked this few places but nobody has given me a good answer (maybe they genuinely can’t though)… How does this happen?

I have to do this far too often and it seems to be happening to me after going into standby for a short while. I haven’t changed anything, added packages, used the terminal or anything.

I’m using KDE Neon

Thanks in advance,


sk January 23, 2021 - 10:54 am

This happens probably due to ailing disk. Could be a bad sector or other hard disk health issues.

peter norton January 27, 2021 - 1:27 pm

Worked like butter!
thanks for amazing tutorial!

2018/ICTS/05 Jayapradha Perinparajah February 1, 2021 - 6:10 am

Thank you sir it works

HADI February 4, 2021 - 2:14 am

thanks my bro ,this solution was awesome

Richard February 8, 2021 - 7:56 am

My ubuntu broke and using the method here, I fixed it and retrieved my files. Thanks, dude.

Balint February 8, 2021 - 7:02 pm

Fresh Kubuntu 20.04 install on a 1 year old SSD (used lightly) and I got this error 2 times just today. I used Manjaro until yesterday and never had similar issues. If this is indeed caused by a “bad sector” wouldn’t the SSD be able to handle it on its own?

sk February 8, 2021 - 7:55 pm

I am not sure. It could be bad sector. I don’t have any reliable source to prove it though.

Dhruv Sharma February 15, 2021 - 2:10 am

Thanks a lot!! You saved me and my system! I just literally had to follow each step as it is mentioned in the article and I was able to fix the issue! Thank you so much!
My ubuntu version is 18.04 LTS

Iresh Gallindawatte February 17, 2021 - 7:39 pm

Thanks for help. It is really helped me out.

BISBIS February 18, 2021 - 10:05 pm

That works for me. Thank you very much

Sodiq lawal February 19, 2021 - 11:40 am

Thanks. This was really helpful. I thought my system was a goner.

alagar February 25, 2021 - 5:00 pm

fsck -f /sda5
this is worked for me

Mandillah Jr February 25, 2021 - 8:03 pm

It worked well. sda7 was bad partition for me. Reboot using initramfs(exit) .
.Its important to check affected partition initially using exit().

Gianni Flash February 26, 2021 - 12:38 am


alpha May 19, 2021 - 2:31 pm

Works like a charm!

satheesh May 21, 2021 - 8:29 pm

but this issue repeats on next day or two days after. Is there any permanent fix for this?

sk May 21, 2021 - 10:39 pm

If the issue repeats often, you must check your hdd health. I had this issue with a dying hard disk. After replacing the hdd with sdd, the problem is permanently gone.

Alexz May 25, 2021 - 7:42 pm

Solucionado, excelente. Solo se debe cambiar el número del sda? y el comando rebbot no funciona, lo reinicie manualmente y arranco la maquina. gracias.

fsck /dev/sda5 -y

Eso fue todo

sk May 25, 2021 - 7:57 pm

You’re very welcome. Glad it helped.

mahdi esmaili June 1, 2021 - 12:25 pm


Mark Stephenson June 10, 2021 - 5:23 pm

Thank you soooooo muuuuch!
This was the clearest solution a novice could have hoped for and it WORKED!

Samaritan July 7, 2021 - 1:20 pm

Thanks it worked 😘

Aditya July 20, 2021 - 3:15 pm

Thanks a lot
You made made my day

sk July 20, 2021 - 4:06 pm

Glad it worked out for you.

bassu July 20, 2021 - 5:16 pm


Nagalingam Kuhan July 22, 2021 - 10:56 am

Thanks, Its work for me
fsck /dev/sda2 -y

Quan July 25, 2021 - 7:43 pm

I did this and it worked but my entire file system did not allow me to read or write afterwords. After a reboot I had the same problem.

sk July 25, 2021 - 8:17 pm

It will fix the filesystem from read-only mode to normal mode, not the other way around. Try the same steps one more time. If it doesn’t solve your problem, you may need to change your hard drive.

Dungji July 30, 2021 - 10:26 am

Thank you so much, it works just fine


Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More