mjg
Posts: 3
Joined: Sun Sep 23, 2012 5:11 pm

Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Sun Sep 23, 2012 7:09 pm

Just started using my Pi, and at first everything was going fine. Then I tried to get it online, by connecting a USB wifi dongle (connected via a powered USB hub). When I plugged the dongle in, the Pi stopped responding to any USB devices (mouse or keyboard). I removed the dongle, unplugged the keyboard/mouse and reconnected them, and it started to respond again. However, the next time I booted it up, I got this error:

[....] Checking root file system...fsck from util-linux 2.20.1
/dev/mmcblk0p2 contains a file system with errors, check forced.
Inode 122882 has imagic flag set.

/dev/mmcblk0p2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck fied with exit status 4
failed (code 4).
[....] An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-on
[FAILde. ... failed!
[warn] The root filesystem is currently mounted in read-only mode. A maintenence shell will now be started. After performing system maintenance, pleass CONTROL-D to terminate the maintenance shell and restart the system. ... (warning).
sulogin: root account is locked, starting shell
root@raspberrypi:~#

I tried running 'fsck' but got an insane number of errors, all of which I had to tell it to fix manually. After about 5 minutes, I gave up and just recreated the disk image and started from scratch.

However, I just tried to get the Pi online using a different wireless adapter, and the exact same thing has happened. Is there something I can do to resolve this problem without having to either recreate the whole boot image, or sit pressing 'Return' for hours on end? Can anyone suggest a reason it's happening in the first place and how I might resolve it? (The USB dongles in question are a Belkin and a 3com, respectively, which I already had. I'm happy to buy one known to work on the Pi without problems if it'll help, but didn't want to jump into that without trying to find the cause of the problem first.)

Thanks for your help,
Mike

thogue
Posts: 131
Joined: Wed Sep 19, 2012 2:16 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Sun Sep 23, 2012 11:23 pm

Sounds like you are having problems with corruption of your SD card when your PI is crashing (due to overloaded usb) Check your SD computability. Are you overclocking at all?

mjg
Posts: 3
Joined: Sun Sep 23, 2012 5:11 pm

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Sep 24, 2012 1:02 am

No overclocking, no. I'm afraid I have no idea how to do what you suggested, though, I'm totally new to running Linux.

thogue
Posts: 131
Joined: Wed Sep 19, 2012 2:16 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Sep 24, 2012 1:50 am

What type of SD card ? Specs ? What are you using for power ?

mjg
Posts: 3
Joined: Sun Sep 23, 2012 5:11 pm

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Sep 24, 2012 2:07 am

It's a 16gb microSD card (unbranded) in a micro->fullSD adapter. OS image was copied to the card on a Windows machine, and then during initial setup the partition was expanded to fill the sd card. Pi is powered using a USB mains adapter, and all USB devices are connected via a powered USB hub.

xcoder
Posts: 10
Joined: Wed Sep 19, 2012 5:14 pm

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Sep 24, 2012 11:28 am

What OS are your running?

What wifi dongle are you using? Is it on the "Working WiFi Adapters" list? http://elinux.org/RPi_VerifiedPeriphera ... i_Adapters

Did you install a driver for that dongle?
What does your /etc/network/interfaces file contain?
What does your /etc/Modules file contain?

After inserting the dongle what do the logs say? Or, run /etc/init.d/networking restart and check the logs to see any errors related to networking.

User avatar
RaTTuS
Posts: 10462
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Sep 24, 2012 11:37 am

it will be power
what is the power rated at
what is the measurement of tp1 tp2
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
IanMorris
Posts: 1
Joined: Mon Dec 03, 2012 9:10 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Dec 03, 2012 9:15 am

I have this exact error..
I've tried to wipe the card in my PC but it can't give it a drive letter as the card now has errors.
Any help would be greatful :)

sim_tcr
Posts: 326
Joined: Tue Nov 06, 2012 1:01 pm
Location: Bangalore
Contact: Website

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Thu Dec 20, 2012 11:04 am

same problem.

On boot system asked for root password for maintenance mode.

Then I ran fsck. It prompted to press "y" insane number of time. I am still doing that (I kept the y key pressed in the keyboard :-)) lets see what happens.

Btw, I am using Raspbian wheezy OCt 28 2012 Image. I am overclocked to 1GHz. No wifi dongle. I am using Transcend 16GB Class10 card.
http://raspisimon.no-ip.org
Raspberry Pi Model B x 2, Raspberry Pi 2 x 2, Transcend 32GB Class 10, Transcend 16GB Class 10, Transcend 8GB Class 4, Custom 12V 1.5A (stepped down to 5.5V)

sim_tcr
Posts: 326
Joined: Tue Nov 06, 2012 1:01 pm
Location: Bangalore
Contact: Website

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Thu Dec 20, 2012 11:42 am

sim_tcr wrote:same problem.

On boot system asked for root password for maintenance mode.

Then I ran fsck. It prompted to press "y" insane number of time. I am still doing that (I kept the y key pressed in the keyboard :-)) lets see what happens.

Btw, I am using Raspbian wheezy OCt 28 2012 Image. I am overclocked to 1GHz. No wifi dongle. I am using Transcend 16GB Class10 card.
I was successful in restoring the filesystem.
http://raspisimon.no-ip.org
Raspberry Pi Model B x 2, Raspberry Pi 2 x 2, Transcend 32GB Class 10, Transcend 16GB Class 10, Transcend 8GB Class 4, Custom 12V 1.5A (stepped down to 5.5V)

awesomepi
Posts: 1
Joined: Thu Jan 17, 2013 10:05 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Thu Jan 17, 2013 10:11 am

So what is the solution to this problem ? :?:
or what can one do to avoide such problem in future ? ;)

I guess if it has something to do with the power then using
an external powered hub for all peripherals might be a solution ?


sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Feb 25, 2013 12:22 pm

I do not recall the exact command, but I know that after expanding the root partition to fill my SD card, I had to also issue a command to expand the file system as well, that is not an automated function, maybe that is your problem.

Then before booting the Pi with the expanded partition, run fsck.ext4 to make sure the rootfs is clean.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

anoparp
Posts: 1
Joined: Sun Apr 21, 2013 12:03 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Sun Apr 21, 2013 12:12 am

I don't sure some of you still found this problem or not.

For me, I found several time even I just reinstalled the image, first I think the problem might occur on SD Card, But finally I found that my SD Card jacket has trouble. (I use Micro SD Card 8MB put in to SD Card jacket to convert to SD CARD)

I fixed it by change it, it's OK now.

Just share information.

steeve
Posts: 1
Joined: Mon Jul 01, 2013 8:04 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Jul 01, 2013 8:17 am

The same is happening to me - first it boots up perfectly then when I plug in the Wi-Fi dongle it stops responding; I restarted it then it came up with "Fail (Code 4) internal err" every time I start it up - What should I do? :( :? :cry: :( :? :x

aaa801
Posts: 428
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Mon Jul 01, 2013 10:41 am

Boot it with the usb wifi already pluged, and what power supply are you using

haysenraspberrypi
Posts: 1
Joined: Fri Sep 06, 2013 2:04 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Fri Sep 06, 2013 2:10 am

i meet the same problem, i find a answer like that

sudo fsck /dev/mmcblk0p2
reboot

after that, it is Ok

help it can help u :)

zburrows7
Posts: 7
Joined: Mon Aug 19, 2013 4:12 pm

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Fri Sep 13, 2013 5:23 pm

I had the exact same problem.

I have a 4GB SD card, and overclocked my system to "high."

Tried changing overclock settings back to no "ARM" over clocking, still got the error.

Rebooted, ran fsck and held down the "y" key till it was done. Was told to reboot, so I did, and rebooted. Upon entering the desktop I got:

ERROR
"GDBus.Error:org.freedesktop.PolicyKit.1.Error.NotSupported: Operation not supported"

Clicked ok, and ran

Code: Select all

sudo raspi-config
and set my overclocking settings to "None."

Rebooted from the config window and got the error again:
ERROR
"GDBus.Error:org.freedesktop.PolicyKit.1.Error.NotSupported: Operation not supported"

Googled it and found this: https://bugzilla.redhat.com/show_bug.cgi?id=657006
"The solution is so go into "Preferences->Desktop Session Settings" and un-check "PolicyKit Authentication Agent" as LXDE runs it's own LXPolKit Authentication Agent." -Richard Shaw

So I did and:
$sudo reboot

Hakuna matata. :)

pronoob
Posts: 4
Joined: Sun Sep 15, 2013 6:14 pm

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Thu Oct 03, 2013 8:46 pm

Still getting this same error! Have tried all the resolutions

davidtuti
Posts: 85
Joined: Tue Oct 22, 2013 6:21 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Thu Feb 27, 2014 7:41 am

Hi
I have the same error. With fsck fix it but sometimes when I make a backup of my sd in shared folder, the system freezes. And other time I must do the fsck.
The problem with these error, is when it appears at boot, is impossible to me to connect by ssh.
I must do fsck in console, through hdmi port.

My question is .... how could I avoid these and ssh can works?
Many thanks and sorry for my english!

User avatar
RaTTuS
Posts: 10462
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Thu Feb 27, 2014 8:57 am

1) measure the power TP1 / TP2
make sure it is between 4.75V and 5.25V
2) make sure that the SD card has proper contact with the pins in the socket


99% it will be power
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

davidtuti
Posts: 85
Joined: Tue Oct 22, 2013 6:21 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Thu Feb 27, 2014 9:12 am

The Raspberry hangs when I'm trying to make a backup of the device with dd in a shared folder windows
:?

ayezee33
Posts: 15
Joined: Tue Feb 25, 2014 12:15 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Wed May 07, 2014 4:28 pm

I don't mean to thread hi-jack here but seeing as most of these responses are older I will put my similar issue on here for any suggestions the group may have.

I had moved by boot files to the SD card and had the rootfs on a usb drive. Everything was working fine. I removed the usb and plugged in a keyboard (been using the pi only with ssh) and plugged the USB back in. I received the same error message

Is my SD card corrupt? I accidentally locked myself out of SSH by messing with the sshd file so only why I can get in is from the Pi.

Running a SanDisk 8gb SD with NOOBS (newest) and the usb is a 16 pny

Sicatron
Posts: 12
Joined: Tue Jul 08, 2014 10:50 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Tue Jul 08, 2014 10:55 am

Also having this same issue. Any help would be appreciated.

I wrote the image to the microSD using Debian twice now. Both times the Pi boots up and runs a book of code with a bunch of failures (too fast to read), ending with the "maintenance check - will reboot" message that forces the thing to start all over.

The biggest problem is that I'm using direct eth0 connection via laptop to work everything so I don't have access to fsck and other tools to troubleshoot directly on the Pi. I also can't ssh into the device yet because the Pi hasn't been able to run it's initial configuration (which includes auto-enable ssh) due to this boot error.

Any suggestions???

piaktipik
Posts: 1
Joined: Tue Sep 23, 2014 12:42 am

Re: Error on boot - /dev/mmcblk0p2: UNEXPECTED INCONSISTENCY

Tue Sep 23, 2014 3:28 am

i try this, and works for me, :)

dosfsck -r <PARTITION>

where <partition> is the address where the error occurred in my case /dev/mmcblk0p1

i choose de first, and reboot

i hope they serve, i spend lot of time on this problem

Return to “Beginners”