Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a "Block device" in Windows

For those familiar with Linux, it is possible to create a module and register it as a block device. This allows the user to mount it as a regular disk (while all the block I/O is handled by the module, e.g. USB mass storage).

Is there a way to do this in Windows ? (Need to create a volume mountable by Windows. The raw data will come from propriety interface).

like image 850
Boris Avatar asked Nov 28 '25 20:11

Boris


2 Answers

The easiest way (and it's not easy!) is to write a Storport Miniport driver, you can even do this with KMDF as well. The latest issue of OSR's "The NT Insider" has an article on how to do this, but it's not going to be any kind of easy.

You will learn a ton though, so if you're interested in kernel development, this is a good way to get started!

like image 133
Ana Betts Avatar answered Nov 30 '25 11:11

Ana Betts


You can find some simple block device drivers at http://www.acc.umu.se/~bosse/ . Look at the FileDisk driver, which is a Windows equivalent of /dev/loop

like image 40
grep Avatar answered Nov 30 '25 09:11

grep



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!