• Home
  • Downloads
  • Contact Us
  • Report Broken Link
Friday, May 9, 2025
  • Login
lessons4you.info
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
Lessons4you.info
No Result
View All Result

How to Manually Create Application Launcher (Desktop Shortcut) in Ubuntu 12.04

How to Originate Call From Asterisk CLI

How to Reset Lost Password – Raspberry Pi

by
December 11, 2021
in Uncategorized
Reading Time: 1 min read
A A
Share on FacebookShare on Twitter

If you have lost you “pi” or “root” user password, the only way to rebuild the password is to reboot the Raspberry Pi in a special mode so that you can reset the password. To do this is to insert the card into a Mac or Windows machine and change the “cmdline.txt” file. Add init=/bin/sh to the end of the line.

Example:Before it might look like:

1
2
3
 
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
 

After adding the command it will look like:

1
2
3
 
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait init=/bin/sh
 

Put the card back in the Raspberry Pi and start it. The system should start booting and then it will drop you at a command prompt. At this command prompt type:

1
2
3
4
5
6
7
8
9
10
 
# mount -o remount,rw /
 
# passwd pi
(enter a new password)
 
# sync
 
# exec /sbin/init
 

The boot process will then continue and then again drop you at a command prompt. Once it done you have to Re-edit the cmdline.txt file in /boot and now remove the init=/bin/sh from cmdline.txt.

Tags: resetRoot
Previous Post

How to Manually Create Application Launcher (Desktop Shortcut) in Ubuntu 12.04

Next Post

How to Originate Call From Asterisk CLI

Related Posts

How To Install The TWRP Recovery on Xiaomi Redmi 1s
Uncategorized

How To Install The TWRP Recovery on Xiaomi Redmi 1s

May 14, 2022
MIUI Collection Of Gapps (2.3.x – 5.0.x)
Uncategorized

MIUI Collection Of Gapps (2.3.x – 5.0.x)

May 14, 2022
Download Android 5.1.x Lollipop PA Gapps
Uncategorized

Download Android 5.1.x Lollipop PA Gapps

May 15, 2022
Download gapps for Android 5.1 Lollipop Cyanogemod 12.1
Uncategorized

Download gapps for Android 5.1 Lollipop Cyanogemod 12.1

May 14, 2022
Reddit AMA with OxygenOS Team OnePlus
Uncategorized

Reddit AMA with OxygenOS Team OnePlus

May 14, 2022
How to Remove Adobe Updater from OS X Menu Bar?
Uncategorized

How to Remove Adobe Updater from OS X Menu Bar?

July 19, 2023
Next Post

How to Originate Call From Asterisk CLI

  • Home
  • Downloads
  • Contact Us
  • Report Broken Link

© 2022 lessons4you.info

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link

© 2022 lessons4you.info