What’s the best way to enumerate drives on Linux, including all removeable drives? I am after the drive patch and the drive type, and ideally it’s link to /dev if possible.
Currently I am passing the output of the ‘mount’ command, but results are not always predictable so wondering if there is a native method.
1 post - 1 participant