systemd.mount单元是否有一种方法可以检测驱动器的状态,而不必重新启动计算机或重新加载该单元?如果没有,是否还有其他方法来实现这一目标?我想要自动mount a drive when it is inserted,和自动unmount it when it is disconnected。我当前的systemd.mount配置:Description=var-test.mount
What=LABEL=TEST_LABEL
Where=/var
首先,我以前从未尝试过安装任何版本的Linux,所以请容忍我。我使用通用USB安装程序创建了一个可引导的闪存驱动器。E: No CD-ROM could be auto-detected or found using the default mount point.You may try the --cdrom option to set the CD-ROM mount point.See 'man apt-cdrom' for more information about the CD-ROM auto-detect