Is there any unique identifier for USB that I can retrieve on Linux? It must not be alterable.

Hi,
     I am trying to find a way to get any unique identifier for each USB disk. Currently, I got the following options, but all of them are "alterable" by user, I need an ID which is non-alterable by user and can work for all USB disk under Linux.

1. disk identifier by using fdisk -l, but it seems will be changed once user re-partition the USB.

2. UUID by using vol_id --uuid OR blkid, but it also can be changed by tune2fs command.

3. usb_id, which is a command come with udev, but it seems not work on some USB disk.

Does anyone know other possible way?
vonslackAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tty2Commented:
It is wrong way. My Alcor Micro Corp. Transcend JetFlash Flash Drive has SerialNumber=00000000.
You may _prepare_ the disk to make it unique - pam_usb (http://www.pamusb.org/), e.g. But not expect that every usb device has some unique characteristics.
0
liddlerCommented:
what about lsusb?  That gives the unique ID of a usb device
0
tty2Commented:
lsusb gives a Vendor and ProdID. They are the same for the same device of the same vendor.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

liddlerCommented:
As  root
run lsusb -v
for the device you will see iSerial
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aikimarkCommented:
What are you trying to do?

Depending on the application, you might consider a USB dongle:
http://en.wikipedia.org/wiki/Dongle
0
vonslackAuthor Commented:
This should be the key that I am looking for.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.