I am running an HP pavilion dv6000 dual boot win7 and Ubuntu 12.04. (well, up until today). After a reboot, the boot process drops to the BusyBox shell and I end up at the prompt:
BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)
I've been researching others who have had this same problem, but haven't been able to find any of those solutions to work for me.
I tried the method described here, and after the final command
mount -t ntfs-3g /dev/sda1 /root -o force
it does nothing and gives me another (initramfs) prompt.
I can boot to a live CD (USB) and get to a terminal, but it doesn't seem to do much good, as I can see the /dev/sda1 in the ls command, but it doesn't recognize it when I try to cd to it.
One more question: using the command fdisk -l
how can I tell which mount point (sda1
/sda2
) is my windows partition and which one is Ubuntu?
While at initramfs console, I passed a command exit to come out of the shell. The same console was presented before me but this time with the exact name of the partition that got corrupted.
After the checking is done, I rebooted the system.
If
reboot
doesn't work, tryexit
.and that's it, I got back into the filesystem without any errors.
Actually the solution is easy just write the command of
fsck /dev/sdax
like the below and giveY
if the console ask for fixing something:or
X
specifies mounted disk part number.If you don't want to manually press 'y' every time it asks for a fix, you can also run the command with the
-y
option.It seems that you have a bad superblock. To fix this:
Firstly, boot into a live CD or USB
Find out your partition number by using
Then, list all superblocks by using the command:
Replace
sda2
to your drive numberYou should get a similar output like this
Choose an alternate superblock from this list, for this case alternate superblock # 32768
Now, to check and repair a Linux file system using alternate superblock # 32768:
The
-y
flag is used to skip all theFix?
questions and to answer them all with a yes automaticallyYou should get similar output like this:
Now try mounting the partition
Now, try to browse the filesystem with the following commands
If you are able to perform the above commands, you have most probably fixed your error.
Now, restart you computer and you should be able to boot normally.
(source)
gparted
installed).gparted
and select your hard disk and select CHECK from right click menu.Slightly different answer (Ubuntu 16.04), although other answers eventually led me to it.
I first had to choose a recovery mode kernel before being able to see the error messages to know which partition/file system had errors.
From then on, running
fsck /dev/sdb1/ -y
fixed it for me.I just tried a lucky shot by booting the system with the "Parted Magic" tool from a Live CD. Looking at the partitions, there was a declared "unknown space" of some GBytes on the Linux partition.
So I just widened the Linux space over the whole Partition and voila - since then my Linux boots as before without any fail so far.