LoginSignup
1
0

More than 5 years have passed since last update.

マウントしたいボリュームがマウントされずに、正体不明のボリュームがマウントされている現象について

Last updated at Posted at 2018-08-17

マウントしたいボリュームがマウントされずに、正体不明のボリュームがマウントされている現象について。
忘備録です。

きっかけ

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G   12K  1.9G   1% /dev
tmpfs           377M  376K  377M   1% /run
/dev/xvda1      7.8G  4.7G  2.8G  63% /
/dev/xvdg       3.9G  8.2M  3.7G   1% /mnt
 ...

EC2インスタンスの説明は

スクリーンショット 2018-08-17 12.47.55.png

あれ?アタッチされてるボリュームは/dev/xvdfなのになぜ/dev/xvdgがマウントされてるの?

原因

/etc/fstabはシステム起動時の自動マウント設定でした。

$ cat /etc/fstab
LABEL=cloudimg-rootfs   /    ext4   defaults,discard    0 0
/dev/xvdg   /mnt    auto    defaults,nobootwait,comment=cloudconfig 0   2

修正方法

/etc/fstabの設定が間違っているので/dev/xvdg/dev/xvdf修正します。

$ cat /etc/fstab
LABEL=cloudimg-rootfs   /    ext4   defaults,discard    0 0
/dev/xvdf   /mnt    auto    defaults,nobootwait,comment=cloudconfig 0   2
1
0
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
0