Skip to content

Instantly share code, notes, and snippets.

@Kiritow
Created December 5, 2020 09:21
Show Gist options
  • Save Kiritow/fcbdaf75d2c50cb046ada865297e1c00 to your computer and use it in GitHub Desktop.
Save Kiritow/fcbdaf75d2c50cb046ada865297e1c00 to your computer and use it in GitHub Desktop.
WSL mount ramdisk, usb with DrvFs
#!/bin/sh
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <Disk> <MountPoint>\n\nEXAMPLE\n$0 H:\\\\ /mnt/h"
exit 1
fi
echo "mount -t drvfs $1 $2 -o metadata,uid=1000,gid=1000"
mount -t drvfs $1 $2 -o metadata,uid=1000,gid=1000
echo "mount returns $?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment