LoginSignup
9
11

More than 5 years have passed since last update.

RaspbianでWelcome to emergency mode!

Posted at

Welcome to emergency mode!

久しぶりに普段使っていない方のRaspberry Piにsshしようとしたが繋がらない。
電源入れ直し、直接確認してみたら起動時に以下のメッセージが。

Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" to try again
to boot into default mode.
Give root password for maintenance
(or type Control-D to continue):

systemctl rebootsystemctl defaultでは解決しない模様。
どうもファイルシステムが原因ぽい。

修復

まずはfstabを確認。

/etc/fstab
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1

/dev/mmcblk0p2に対してfsckしたいので、

umount /dev/mmcblk0p2
fsck /dev/mmcblk0p2
reboot

これでとりあえず普通に起動できるようになった。

9
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
11