Created
December 5, 2020 09:21
-
-
Save Kiritow/fcbdaf75d2c50cb046ada865297e1c00 to your computer and use it in GitHub Desktop.
WSL mount ramdisk, usb with DrvFs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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