LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   identify usb drive (https://www.linuxquestions.org/questions/red-hat-31/identify-usb-drive-745723/)

timl 08-06-2009 11:54 PM

identify usb drive
 
Hi, I am running Centos 5 and have scheduled a cron job to back up files to a usb stick. At this point I can only see the drive as /media/Lexar. That is, the drive is identified by the name of the usb stick I attach. Obviously I want this to be common to any USB stick.

Can I identify a generic name for the USB port?

Simon Bridge 08-07-2009 03:03 AM

You want to be able to back up to any usb stick attached - but what if there is more than one?
Anyway, what you want to look at is the udev rules.
Also look in the /media to see if your stick is mounted more generically.
Whatch what happens when you mount a different stick.


All times are GMT -5. The time now is 09:22 PM.