I wish to umount in a bash script a specific device (/dev/sdb for example) that has multiple mounted file systems. how will I go about doing this?
Also is there a way to get a list of removable devices currently connected and offer the user a selection of them? (The devices themself not their mounts)
And also it would be nice to be know how to display a formatted list of mounts from a certain device.
Thanks for any help.