How to get physical HDD from path? (Unix)
There is a
java program that executes external programms on various physical disks. What I want to do is to queue tasks (so only 1 task is being done on 1 physical disk). I have a
String path to the executable. How to learn to which HDD that executable belongs? (We're talking Ubuntu here).
Thank you very much in advance for any help with this.
---
ps: I am not looking for any internal hdd serial number, I'm just looking for some simple solution
--
edit: I found this:
http://www.cyberciti.biz/faq/linux-unix-command-findout-on-which-partition-file-directory-exits and this:
http://tuxtweaks.com/2010/03/command-line-basics-list-hard-drives-by-uuid/
However, is there a way to do it without OS dependent functions (purely in java)