1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

linux起動を妨げる不要なデバイスの削除

Posted at

環境

  • CentOS 6.0

前提:OSインストール時に誤って/homeにディスクの大半を割り当ててしまい、以下の記事を参考に/rootに再配置したが、最後にfstabの修正を忘れていた。
http://ma2k8.hateblo.jp/entry/2012/12/26/202545

事象

/etc/fstabに、存在しないデバイスの記述を残したまま再起動してしまい
rootでログインしたもののfstabがread-onlyで編集不可。

対処

http://stackoverflow.com/questions/383595/repairing-fstab-read-only
を参考にして対処。

$ mount / -o remount,rw

このコマンドで/以下に編集権限をつけた後、fstabの不要なデバイス記述をコメントアウト(または削除)した後、サーバ再起動して完了。

Thanks MarkR, you just saved my ass too.

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?