prsyahmi / GpuRamDrive

RamDrive that is backed by GPU Memory
MIT License
1.05k stars 86 forks source link

I found how to permanently keep samba (Windows file share) mount point #49

Closed mhtvsSFrpHdE closed 1 year ago

mhtvsSFrpHdE commented 1 year ago

Once GpuDrive is unmounted, mount again, previous created share location is gone and require re-creating.
Config user and permission is pretty unfriendly with Windows user interface,
meanwhile, powershell New-SmbShare also not accept GpuDrive path like R:\.

In this case, create a symbolic link at always online local drive like C:\ShareRedirect use mklink:

>cd /d C:\
// Create this folder
>md ShareRedirect
>cd /d C:\ShareRedirect
// Create symbolic link
>mklink /d "GpuDisk" "R:\"

Then right click on created symbolic link "GpuDisk", choose properties,
then go to Sharing, set a share location as usual.
Later, after unmount or reboot, share location will keep existing.
If access this location during unmount, file explorer just show a harmless dialog.
Once mount again, the share location is available immediately.