Help - Search - Members - Calendar
Full Version: Script: Automount Flash Drives
Linuxhelp > Support > Programming in Linux
TBotNik
All,

I need a CLI BASH script, capable of being called from a master BASH script that finds, automounts any found USB/Flash drives and returns the size of the mounted drive(s).

All help and links appreciated!

Thanks!

OMR
michaelk
The following URL has lots of ideas. What actually works may depend on the distribution/version of linux you are running. Once mounted the df command will display file system sized etc.


/superuser.com/questions/361885/how-do-i-figure-out-which-dev-is-a-usb-flash-drive
TBotNik
All,

Got part of this working and posted at:

CODE
linuxforums.org/forum/ubuntu-linux/201498-flash-mount-bash.html#post951530


Still a few parts hardcoded that need automation for full auto functioning.

Cheers!

TBNK
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.