
/etc/fstab
WSL2 では、マウントdrvfs
ポイントを通常の (非ルート) ユーザーがマウントできるように構成しました。
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
ルートなしでマウントできるようにするにはどうすればよいでしょうか?