LoginSignup
1
3

More than 5 years have passed since last update.

ubuntu16.04.4で全てのコマンドの実行権限を消してしまったときの対処法

Last updated at Posted at 2018-06-20

はじめに

コマンドの実行権限を消してしまい、コマンドの実行ができず、PCにログインすらできなくなってしまったときの対処方法です。

概要

PCにログインしようとすると、"The system is running in low-graphics mode"というエラーが出てログインできなくなりました。いろいろと調べるとリカバリモードでログインすればいいらしいのでやってみました。

How to fix “The system is running in low-graphics mode” error?

Ubuntu 16.04: recovery modeの文字化けを修正する

GRUB起動

  1. PC(BIOS)を起動してEscキーを入力し、GRUBを起動します。
  2. Advanced option for Ubuntuの行でEnterキーを入力します。
  3. Ubuntu, with Linux .... (recovery mode)の行でeキーを入力し編集します。(最新バージョンを選ぶ)
  4. ルートパスワードの変更や文字化けの修正をする必要があるときは、編集画面のlinux /vmlinux ..... ro recovery nomodesetの行の、rorwに変更(ルートパスワードの変更)し、最後にlocale.LANGUAGE=Cを追加(文字化けの修正)します。(別にやらなくてもいい)
   linux /vmlinux ..... rw recovery nomodeset locale.LANGUAGE=C

5.Ctrl + xで保存し、リカバリモードを起動します。

リカバリモード起動

  1. rootの行でEnterキーを入力し、rootユーザでコンソールを表示します。
  2. コンソールでコマンドの実行権限を付与します。
chmod ugo+x /bin 

おわりに

意外となんとかなるみたいですね。

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