
在 WSL2 中,我已將掛載點配置/etc/fstab
為drvfs
可由普通(非 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即可掛載?