0-duke / wdpassport-utils

WD Passport Ultra Linux Utilities
GNU General Public License v2.0
228 stars 84 forks source link

Filter out non hard disks from device search #24

Closed lunarbunny closed 1 year ago

lunarbunny commented 3 years ago

Add a check to filter out non hard disks.

Some devices might mount CDROMs (/dev/srX) containing WD-Unlock tool used on Windows systems to decrypt the drive. These have the same ID_SERIAL value and will show up in the results as a different device.

Script wrongly tells me I have multiple devices and this check fixes that.