element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum login broke
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 9 replies
  • Answers 1 answer
  • Subscribers 678 subscribers
  • Views 918 views
  • Users 0 members are here
  • raspberry_pi_get_started
  • raspberry_pi
Related

login broke

donb
donb over 12 years ago

My new Pi let me login several times when I first powered up but now (without changing any thing) it seems all the drivers etc. are loading but at login it will not accept the default login I used the day before, What has happened and what is the fix please?

  • Sign in to reply
  • Cancel
  • johnbeetem
    0 johnbeetem over 12 years ago

    One possibility is that your file system has been corrupted.  When turning off RasPi, be sure to use a shutdown command so that the file system synchronizes, i.e., files in memory are copied out to your SD card.  A GUI desktop should have a shutdown command somewhere.  From the GNU/Linux command line, enter "shutdown -h now".

     

    If your file system is corrupted, it's probably easiest just to reload the image.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • donb
    0 donb over 12 years ago in reply to johnbeetem

    Thanks John.

    I bought the SD card preprogramed. Is there a way to load just the file that checks the password given the fact that I can't get logged on?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 12 years ago in reply to donb

    Don Baugh wrote:

     

    Thanks John.

    I bought the SD card preprogramed. Is there a way to load just the file that checks the password given the fact that I can't get logged on?

    There may be, but I don't know how.  Since you can't log in, I would think the only way you can access the SD card is using an SDcard reader from a (preferably GNU/Linux) PC.  But then, once you have that access you need to find and replace the corrupted file(s) from somewhere.  As I said, it's probably easier to just reload a new image.

     

    I welcome comments from GNU/Linux gurus who know much more about it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • donb
    0 donb over 12 years ago in reply to johnbeetem

    Thanks again again for the input. I will need some help from some GNU/Linux gurus

     

    Don

     

    From: johnbeetem

    Sent: Friday, December 06, 2013 2:39 PM

    To: Don Baugh

    Subject: - login broke

     

                

     

          login broke

          created by John Beetem in Raspberry Pi - View the full discussion

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • iagorubio
    0 iagorubio over 12 years ago in reply to donb

    If you can mount the card on a card reader and you are able to see the /boot partition there - it's FAT32 - you may be able to make the raspberry boot up in single user mode by redirecting the init script to a shell.

     

    That would grant you root access without a password so you would be able to change or restore that default password for the user.

     

    TO do it you must put the raspberry sdcard on a reader.

     

    It should open the FAT32 boot partition where you should see a file called cmdline.txt

     

    Add a line with "init=/bin/sh" . If you have a programmers editor with Unix line endings better. Not sure if windows line endings may break boot.

     

    Put back the sdcard on the raspberry and boot.

     

    It should boot straight to a root shell - you will be uid 0 so root - where you can issue the passwd command to change the password.

     

    As example for the user "username":

     

    $ passwd username

    Changing password for user username.

    New UNIX password:

    Retype new UNIX password:

    passwd: all authentication tokens updated successfully.

     

    On the "New UNIX password: " just write the new password, don't worry of you don't see anything being typed, it's normal. Put the same password on the "Retype new UNIX password: " prompt.

     

    After that shut down the pi - use the command "halt -p" -  put back the card in the SD reader, remove the init=/bin/sh line and put it back in the pi to boot normally.

     

    You should be able to log in with the new password.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • donb
    0 donb over 12 years ago in reply to iagorubio

    Thanks Iago for your response. I know it to lots of your time to answer in such detail.

    I have only windows on a tower with an SD card slot. I mounted it there and 2 folders and 8 files came up but no cmdline.txt file was among them using windows explorer. I also looked into the 2 folders and did not find cmdline.txt there either. I have a 64 bit operating system so am I reading everything on the SD card that I should be reading?

    I have no programmers editor with UNIX.

    I can get into command line (Dos) thru Windows and there is a debugger that comes with Windows but I have never used it and don't know if it will do what you are suggesting.

    I am still at a stand still, not knowing what to do next.

    thanks again Don

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dweb98
    0 dweb98 over 12 years ago in reply to donb

    Hey Don Baugh,

    Don Bishop here... I have been reading the posts here. And I think that the first one is the simplest fix. You can easily Re-Format your SD Card and Install Noobs, RaspBMC or which ever Raspberry Pi OS that you wish. I just finished updating my Review of the XBMC Pi Bundle from Element 14. With some info and links on how to do this. Check it out and I think you will be able to fix your Pi's OS, fairly easily with your Windows Machine...  http://www.element14.com/community/roadTestReviews/1577

    Don Bishop

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • iagorubio
    0 iagorubio over 12 years ago in reply to donb

    Happy to help Don.

     

    May I ask where you got that sdcard from ?

     

    I may be able to look at the filesystem layout and locate the cmdline.txt for you.

     

    About the programming editor don't worry, if you end up needing one you can donwload good ones for free as Notepad++ - Notepad++ Home - that will not change your file's format. The problem with windows Notepad is it changes the file's format to match Windows line endings. With Notepad++ you will not have that problem.

     

    If you fear to lose your bought sdcard, you can buy another one and try Don Baugh review's method to get it working and boot your pi. They are really cheap, at least the 2GB small ones.

     

    Anyway if your sdcard don't show up files like "kernel.img" and "boocode.bin" it's most likely it have been corrupted.

     

    Have you shut down your pi by unplugin it ? That may cause the corruption.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • donb
    0 donb over 12 years ago in reply to iagorubio

    I thank all for the comments and help!

    I have the problem solved. The SD card became unbootable after to much handling I suppose so I replaced it and all is fine in my RPi world now.

     

    Thanks again I consider the matter closed

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube