简体   繁体   English

Raspberry Pi在启动时卡在脚本上

[英]Raspberry Pi stuck on script at startup

I wanted to have my Raspberry Pi update the system clock from a GPS on start up but now something has gone wrong and I can't login. 我想让Raspberry Pi在启动时通过GPS更新系统时钟,但现在出了点问题,我无法登录。 I created a bash script that calls 'sudo -i' and a few other gpsd related instructions. 我创建了一个bash脚本,该脚本调用'sudo -i'和其他一些与gpsd相关的指令。 I pointed the /etc/profile towards the script. 我将/ etc / profile指向脚本。 If I Ctrl+C to get to a prompt I get root access but the directories are listing nothing when I use the 'ls' command. 如果我按Ctrl + C进入提示符,则可以得到root用户访问权限,但使用“ ls”命令时目录未列出任何内容。 If I exit from root I get stuck again. 如果我从root退出,我将再次陷入困境。 I figure that if I could delete the bash script the problem would go away but I don't know how to view that partition of the SD card on a PC. 我认为,如果可以删除bash脚本,问题将消失,但是我不知道如何在PC上查看SD卡的分区。 Any suggestions? 有什么建议么?

Ok, I solved the problem. 好的,我解决了问题。 There is a ext4 partition editor called ExtFS for Windows. 有一个名为ExtFS for Windows的ext4分区编辑器。 You can view and edit an ext4 partition easily in this program. 您可以在此程序中轻松查看和编辑ext4分区。 You can download it here . 您可以在这里下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM