小编x70*_*66c的帖子

在 Ubuntu 20.04 上将 /tmp 挂载为 tmpfs

我想在/tmp没有 fstab 条目的情况下使用tmp.mount

但是在 Ubuntu 20.04 LTS 上,它似乎不起作用。

user@user-x1:~$ systemctl status tmp.mount 
Unit tmp.mount could not be found.
user@user-x1:~$ sudo systemctl enable tmp.mount 
Failed to enable unit: Unit file tmp.mount does not exist.
user@user-x1:~$ sudo systemctl cat tmp.mount 
No files found for tmp.mount.
user@user-x1:~$ cat /usr/share/systemd/tmp.mount 
#  SPDX-License-Identifier: LGPL-2.1+
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU …
Run Code Online (Sandbox Code Playgroud)

fstab mount tmpfs systemd

4
推荐指数
2
解决办法
4803
查看次数

标签 统计

fstab ×1

mount ×1

systemd ×1

tmpfs ×1