Thanks Luke... looks like that might work – and initial tests indicate it even works for my SD card whose volume name contains a space.

Never seen that bash syntax before... thank you!

Matt


On 20 April 2011 17:35, Luke Scott <luke@cywh.com> wrote:
Assuming "df" follows the same rules as mount (last mounted is last in the
list), this may be cleaner:

#!/bin/bash
volume=`df`

volume=${volume##*%}

echo $volume

Luke Scott