I am looking for a way to mount a network disk and encrypt it on my local PC, in the way that the server won't be able to know the content of my files.

After searching I found nbd, a way to mount a block device over the network. I can't, however, find anything about locally partitioning it, or using local encryption. I just would like to use it like any other disk!

Is it possible to encrypt it locally?

  • At first, you said that you want to mount network disk and then you said you found a way to mount block device over the network. Could you clarify what resources do you have available? (samba share, nfs share, iscsi target, something else) – mrc02_kr Nov 11 '19 at 13:21
  • You can use it like any other block device, that's kind of the point. The main problem is getting the server to export the nbd in the first place. And how to optimize network traffic... and how to deal with filesystem corruption on disconnects and the like. – frostschutz Nov 11 '19 at 15:53
  • @mrc02_kr packages.debian.org/buster/nbd-server en.wikipedia.org/wiki/Network_block_device frostschutz Ahhh, that sounds like a problem. I actually just wanted to use it as a mountable device that I would sendrsync backups too. I could probably also abuse nextcloud for this, but my preferences are to have a block device. – Dr_Bunsen Nov 12 '19 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.