Snippet - Find 'system disk'

Find ‘system disk’

Our devices usually always need some kind of configuration files. But not all devices have all possibilities to store them. Some have a SD card, some have a USB stick, some have none and the configuration is stored in resources.
This is why I came up with this saml little helper class to find the ‘system disk’.
It is simply mounting SD card and all usb mass storrage devices and looks for a specific file.
If the file is found the device is not unmounted and the root path is returned.
To speed up the search you can spcify if SD and/or USB is scanned.