Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Detecting MSD on Mac/Linux

807603Feb 25 2008 — edited Feb 25 2008
Guys,

Cudnt find any decent doc on this topic... Dunno if this is the rite place to post this even.

But still, how can we programatically get the path of a given Mass storage device(USB device) once it is connected to a LINUX or a MAC machine... In Windows, i understand we can use a JWinUtil.dll file for this purpose and then use the function getVolumeLabel()... But is there a similar way for Linux and Mac??? will the directory structure(wen a USB device is connected) remain the same, in all versions of Linux or is there any particular API in Java to deal with such a situation in Linux and Mac??? Also, can the USB be identified and accessed by their Volume Names???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2008
Added on Feb 25 2008
1 comment
527 views