primary chicken
primary chicken

Reputation: 23

Using Java to create a Virtual partition in hard drive

I am trying to use Java to create a Virtual partition in hard drive. Is it possible to use standard java I/O to do it (write binary)? Or I have to write a low level drivers to do it?

Upvotes: 0

Views: 990

Answers (1)

n247s
n247s

Reputation: 1918

My best guese would be to use a simple ProccesBuilder command. Though that is platform dependend.

on windows you can create a drive which points to an existing folder in your current harddrive using:

subst [drive_letter]: [file_folder]

//example
subst E: C\path\to\my own folder

To delete that drive, you can simply do:

subst [drive_letter]: /D

//example
subst E: /D

Im not that experianced with lunix and/or Mac systems, though you can find plenty forums/tutorials online (including any other OS of course).

Upvotes: 1

Related Questions