LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 08-07-2009, 12:54 AM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 334

Rep: Reputation: 46
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?
 
Old 08-07-2009, 04:03 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to identify internally connected USB devices madhi Linux - Hardware 4 01-20-2009 03:58 AM
need better standard drive partition identify method james2b Linux - Newbie 3 12-23-2008 07:49 PM
udevinfo - how do I uniquely identify the port a usb is on jjamesis Fedora 4 08-07-2007 09:31 AM
k3b don't identify the cd record drive hraposo Fedora 2 07-23-2006 02:00 PM
identify hard drive space milesstandish Linux - Hardware 6 03-19-2004 07:12 PM


All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration