LoginSignup
3
3

More than 5 years have passed since last update.

fstabの記述ミスによる起動不可から復旧

Last updated at Posted at 2017-08-21

概要

fstabの記述を誤り、起動時に以下のようなエラーが出て起動できない状態に陥りました。
その時の復旧手順 for CentOS7

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

回避方法

  1. エラーの続きにrootパスワードを入力し、メンテナンスモードに入る

  2. 「/」ファイルシステムが読み取り専用モードでマウントされているため、書き込み可能なようにマウントし直す
    # mount -o remount,rw /

  3. fstabの記述ミスを削除して保存

  4. 再起動

参考元

3
3
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
3
3