I would like to automount some hdd on logon, how can I check if connected HDD (via USB) is exactly that HDD which I am thinking of, and that there were no partition changes on it.

Above information I would use to identify my encrypted HDD, or maybe some other values I should use... ?

1 Answer 1


ls -l /dev/disk/by-uuid will help you.

  • but this can be spoofed..
    – Krystian
    Jul 7, 2014 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.