"Give root password for maintenance (or type Control-D continue .." appears during the startup process of the Raspberry Pi. Solution

When this happens, I usually use the keyboard ctr+d to enter the system. Later, it is not suitable for some occasions, so I searched for a solution and solved it. In the future, it will not be stuck here after restarting, and it will directly enter the desktop. The method is as follows:

Insert the TF card into another Pi through the USB card reader, and do the following actions to repair the file system. It is best to perform all operations under the root user (su root and press Enter to enter the password to enter the root user. If you forget root password, you can reset the root password at any time through sudo passwd root under the pi user):
sudo fdisk -l
After displaying the drive letter, umount it

umount /dev/sda1
umount /dev/sda2

then check

fsck /dev/sda1
#选1

There will be a lot of inspection and installation processes as shown in the figure below. Don’t worry about it. The #select 1 above is commented by others. I haven’t encountered it, so don’t choose it.

Then load plate 2 (this is the main one)

fsck /dev/sda2
#都选yes

There will also be a bunch of checking processes, the default is yes, we don't care. that's it. If you are not at ease, you can check it again with the following statement:
sudo fsck /dev/sda2 -y

 

Guess you like

Origin blog.csdn.net/weixin_44345862/article/details/128122786