User avatar
piglet
Posts: 921
Joined: Sat Aug 27, 2011 1:16 pm

sulogin: root account is locked, starting shell

Wed Nov 28, 2012 11:57 pm

I get this every time when I try and shut down.

New install of the raspbian image, apt-get updated and rpi-update. No other configuration changes made other than installing links2 and rpi-update + required git.

On issuing "sudo shutdown -f now" I get the message noted in the subject, and the pi is left with root logged in: root@raspberrypi.

Do you know how to fix it? I'm not going to ask Jim....

TIA

User avatar
azeam
Posts: 194
Joined: Fri Oct 26, 2012 11:13 pm
Contact: Website

Re: sulogin: root account is locked, starting shell

Thu Nov 29, 2012 12:21 am

"-f" is not a valid option as far as I know. Do you get the same error with

Code: Select all

sudo shutdown -h now

techpaul
Posts: 1512
Joined: Sat Jul 14, 2012 6:40 pm
Location: Reading, UK
Contact: Website

Re: sulogin: root account is locked, starting shell

Thu Nov 29, 2012 12:22 am

Why not use the aliases

sudo halt
sudo reboot
Just another techie on the net - For GPIO boards see http:///www.facebook.com/pcservicesreading
or http://www.pcserviceselectronics.co.uk/pi/

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: sulogin: root account is locked, starting shell

Mon Sep 09, 2013 10:59 pm

Hi all, after installing xbmc following this guide http://www.raspberrypi.org/phpBB3/viewt ... 66&t=12455 I fall down in the piglet situation: sudo reboot, sudo shutdown -r now don't reboot the raspberry. The subject message appear..any hints?

rishad
Posts: 1
Joined: Wed Apr 30, 2014 9:51 am

Re: sulogin: root account is locked, starting shell

Wed Apr 30, 2014 9:53 am

I had the same problem today. In the messages it says run 'fsck' manually
Try
> fsck

This solved my problem

Thanks

JamesTWatson21
Posts: 1
Joined: Thu Nov 03, 2016 2:39 am

Re: sulogin: root account is locked, starting shell

Thu Nov 03, 2016 2:50 am

these commands worked for me, I kept shorting out the raspberry pi, and it kept hard rebooting causing the file-system to get corrupt.

Code: Select all

sudo umount /boot
sudo fsck.fat -a /dev/mmcblk0p1
sudo fsck.fat -a /dev/mmcblk0p8
sudo reboot

User avatar
IgorGanapolsky
Posts: 33
Joined: Sun Apr 10, 2016 8:32 pm

Re: sulogin: root account is locked, starting shell

Mon Nov 21, 2016 1:45 am

azeam wrote:"-f" is not a valid option as far as I know. Do you get the same error with

Code: Select all

sudo shutdown -h now
This doesn't solve anything for me. Just a blank blue screen.

User avatar
IgorGanapolsky
Posts: 33
Joined: Sun Apr 10, 2016 8:32 pm

Re: sulogin: root account is locked, starting shell

Mon Nov 21, 2016 1:46 am

techpaul wrote:Why not use the aliases

sudo halt
sudo reboot
sudo halt just puts in a blue screen. What is it supposed to do?

User avatar
IgorGanapolsky
Posts: 33
Joined: Sun Apr 10, 2016 8:32 pm

Re: sulogin: root account is locked, starting shell

Mon Nov 21, 2016 1:51 am

rishad wrote:I had the same problem today. In the messages it says run 'fsck' manually
Try
> fsck

This solved my problem

Thanks
I get an error:
/dev/mmcblk0p2 is mounted
e2fsck: Cannot continue, aborting

Rev02
Posts: 1
Joined: Thu Feb 23, 2017 4:52 pm

Re: sulogin: root account is locked, starting shell

Thu Feb 23, 2017 4:57 pm

I had the same problem mine was to do with drive mounting. I had a drive set to automatically mount and when it wasn't plugged in, it caused my pi to go in to safe mode all i had to do was plug the drive in at boot. Hope this helps anyone else.
Rpi b+ rpi 3. Python, java, c++, html.

Szabi
Posts: 2
Joined: Tue Feb 02, 2016 5:07 pm

Re: sulogin: root account is locked, starting shell

Fri Apr 14, 2017 9:56 pm

If you have changed the /etc/fstab file then change it back as it was before. Since you messed up boot location. That caused for me the booting issue.

monand
Posts: 1
Joined: Sun Sep 10, 2017 4:18 pm

Re: sulogin: root account is locked, starting shell

Sun Sep 10, 2017 4:21 pm

And how can I change the file if I can not have access?

I'm new with raspberry pi.

Thank you in advance,

Return to “Beginners”