/ tmpをRAM(tmpfs)に再マウントすることはできません。

/ tmpをRAM(tmpfs)に再マウントすることはできません。

/tmpUbuntuサーバー(14.04)のRAMにインストールしようとしています。

echo "tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0" | tee -a /etc/fstab

この行には問題がないようです。/etc/fstabシステムを再起動すると、期待/tmpどおりに追加されインストールされます。

しかし、この変更をすぐに適用しようとすると(システムを再起動せずに):

mount -o remount /tmp

次のエラーが発生します。インストールされていないか無効なオプション

何が問題なの?

ベストアンサー1

mountマンページから:

remount Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writeable. It does not change device or mount point.

/tmp試みるとインストールされていないため失敗しますmount -o remount /tmp。まだインストールされていない場合に機能させるには、次の手順を実行する必要がありますmount /tmp

おすすめ記事