Extra third party storage

From Shadow EN Community Wiki

Disclaimer

  • This guide is NOT officially endorsed by BLADE/Shadow.
  • BLADE/Shadow is not affiliated with Hetzner, or OneProvider in any way or manner.
  • This guide is mainly for Europe. Especially because of Hetzner, the provider used by the guide. Network shares, filesystem operations are heavily network latency sensitive. So using Hetzner (a German provider) from the US does not make much sense. You could always rent a closer (US based?) dedicated server and build your storage out of that.


For beginners

First and foremost, you need to have a Hetzner Storage Box.
Go here and buy one that fits your needs: https://www.hetzner.com/storage/storage-box
Make sure you set it as such (enable Samba share on it):
Extra third party storage 1.png

Once you have it, you will get an address with your storage box, like such:
//u123456.your-storagebox.de/backup
Go into your file explorer, and press "Map Network Drive".
Change the address to like this:
\\u123456.your-storagebox.de\backup

Extra third party storage 2.png

Once you attach the drive, it will auto-mount with each boot of your Shadow. However.
Some games or apps don't like network drives. We have to create a VHDX and then mount it whenever.

What is a VHDX? It's a virtual disk. You can create a file, anywhere, and you can mount it. It will act like a native, local disk.

Step I. Creating the VHDX file

Press WIN+X in Windows and select Disk management.
Click on top menu bar: Action -> Create VHD.
Now, locate your attached drive, and you will have to give the VHD file a name. For example: Z:\0.vhdx
Size wise, pick a size you can "afford". Don't go too close to your limits. Ie.: On a 1TB Hetzner, pick something like 950GB.
Then select "VHDX", and "Dynamically expanding".

Step II. Prepare the VHDX

Right-click the new "Disk". See picture:

Extra third party storage 3.png

Initialize Disk -> Just click OK.
Now right click the empty space, New Partition, and just smash that Next button. At the letter screen, you can pick any letter. Like "V"? Up to you.

Extra third party storage 4.png

Volume Label: Whatever you want.


Step III. Learn how to detach VHD

So you can "safely remove" your VHD file. Right click, and Detach VHD in Disk Management.
Extra third party storage 5.png

Step IV. Learn how you can mount it back, how to use the mount script, auto-mount

Upon a clean boot, you just press Disk Management, Action, Attach VHD, pick your VHD file. That's all.

Auto-mount script with boot - using Task Scheduler

Grab the script pack from here: https://wiki.shadow.pink/images/e/ec/Extra_Storage_MountVHD_Script.zip
You will have to modify the script files to make it work on your PC.


This whole guide, but especially this part is 100% DIY.
I / we cannot guarantee that this will work. We can't guarantee your files won't blow up, etc.


Quick maff... notes:

  • Use Task Scheduler to auto mount.
  • But, I would use icons. Easy, clean, neat, works. One for mount, one for unmount.
  • Unmount the VHD before shutdown/disconnect... because:
  • If you do a reboot and try to mount your VHD in a hurry, it will fail.

Help! I cannot browse my network share in Disk Management...

Simple. Use the network share's network name in the field.
Such as: \\u94394.your-share.net\share\
Then it will open normally and you can attach the file or whatever.

For intermediate users - what happens, what we do

  • We use a network share to expand the storage on Shadow.
  • We use a VHDX on this said share, to make the filesystem appear native.
  • We use a Batch script with Task Scheduler to auto-mount this storage.
  • You can use any provider. I used OneProvider too, their cheapest Atom machine. All you need is pubkey based SSH (so they can't bruteforce), a samba share, and then a whitelist to your smb.conf that only allows your Shadow datacenter IP address. If you are a novice Linux user, this is all nothing. Just make sure to test each step - like if Samba is really secured, or if SSH really only accepts pubkey. Why OneProvider? Because it's France/Paris based.


- Guide by Aa#2498 EN Mod