1. Convert the ISO:
hdiutil convert -format UDRW -o target.img source.iso
Note: It will add a dmg
file extension to it, but it's alright.
2. Get a list of mounted devices. Specifically, the USB media:
1. Convert the ISO:
hdiutil convert -format UDRW -o target.img source.iso
Note: It will add a dmg
file extension to it, but it's alright.
2. Get a list of mounted devices. Specifically, the USB media:
Wrapper class to ultimately save a salted/hashed password to a file on disk for authenticating against vSphere.
If a credentials file is not found, this will prompt for a password pair and save the salted/hashed to a file.
If a credentials file IS found, it will prompt for a password and attempt
#!/bin/bash | |
HOST="mynas" | |
SHARE="my_home" | |
UNAME="jdoe" | |
PROTO="smb" | |
BUNDLE="TimeMachine/mycomputer.sparsebundle" | |
# mount_smbfs doesn't seem to work with passwords that have special characters | |
#printf "Mounting on ${HOST}...\n" |