Jul 12, '07 07:30:00AM • Contributed by: Anonymous
#!/bin/bash
system_profiler SPFireWireDataType | grep "BSD Name: disk.$" | \
sed "s/^.*: //" | (while read i; do /usr/sbin/diskutil mountDisk $i; done)
The unmount script, which I named nofw:
#!/bin/bash
system_profiler SPFireWireDataType | grep "BSD Name: disk.$" | \
sed "s/^.*: //" | (while read i; do /usr/sbin/diskutil unmountDisk $i; done)
Save these somewhere (make sure to use Unix line endings), then mark them as executable with chmod a+x mntfw nofw, and you can easily run them from the Terminal.
[robg adds: These worked as described when I tested them.]
