LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-06-2009, 11:54 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
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, 03:03 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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



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 02:58 AM
need better standard drive partition identify method james2b Linux - Newbie 3 12-23-2008 06:49 PM
udevinfo - how do I uniquely identify the port a usb is on jjamesis Fedora 4 08-07-2007 08:31 AM
k3b don't identify the cd record drive hraposo Fedora 2 07-23-2006 01:00 PM
identify hard drive space milesstandish Linux - Hardware 6 03-19-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:59 PM.

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
Open Source Consulting | Domain Registration