Tuesday, 15 September 2015

volume - Python find device disk -



volume - Python find device disk -

hi im trying find devce disk volume name eg.

i come in "shared" volume name

and homecoming disk is

i have next unmount flash card. need disk can dd image it.

#!/bin/py import os import subprocess # come in flash card name cardname = raw_input('enter name of card: ') # unmount flash card subprocess.call(['sudo' ,'umount', '/volumes/' + cardname])

tryong on osx @ moment idealy universal, or @ to the lowest degree able run on rasbian thats nice have feature

no, cannot reliably convert volume label (that doesn't necessary exist @ all) os device name, more in cross-platform way.

python volume

No comments:

Post a Comment