admin管理员组

文章数量:1590503

忘记树莓派密码怎么办?

原文连接:http://www.raspberrypi-spy.co.uk/2014/08/how-to-reset-a-forgotten-raspberry-pi-password/

大致过程是这样的:

1、首先将sd卡从树莓派取出,

2、在另一台电脑上,修改初始化进程为bin目录下的sh;

3、然后插入树莓派启动起来,启动后会停留在命令行,在此通过passwd加你的用户名来设置密码(即使root也可以在此修改,这里之前是否初始化过root密码不太确定)

4、树莓派关机,取出sd卡,插入另一台电脑,恢复启动文件,修改密码过程完成

详细步骤看翻译吧

翻译如下:

Step 1 – Grab The SD Card

步骤1-取出sd卡

Power down the Pi and remove the SD card. Insert it into your PC.

将树莓派关机,移除sd卡,插入到你的电脑

Step 2 – Edit cmdline.txt

步骤2-编辑cmdline.txt

The boot partition should be visible and contain a file named “cmdline.txt”. Edit this file in a text editor and add the following to the end of the existing text :

启动部分是可见的,并包含一个名为“cmdline.txt”的文件。在编辑器中编辑这个文本,并将下文插入到已有文本的最后

本文标签: 忘记密码解决方法密码Linux树莓