mount 忽略 drvfs 掛載點的使用者選項

mount 忽略 drvfs 掛載點的使用者選項

在 WSL2 中,我已將掛載點配置/etc/fstabdrvfs可由普通(非 root)使用者掛載:

F:                      /mnt/f          drvfs           rw,noatime,dirsync,noauto,exec,umask=0022,user  0 0

儘管user應用了掛載選項,mount仍然需要超級使用者權限:

$ mount /mnt/f/
mount: /mnt/f: must be superuser to use mount.
       dmesg(1) may have more information after failed mount system call.
<3>WSL (839) ERROR: UtilCreateProcessAndWait:687: /bin/mount failed with status 0x2000

為什麼mount忽略user掛載選項?以及如何讓一般使用者drvfs無需root即可掛載?

相關內容