LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 03-16-2009, 08:38 PM   #1
pravin.linux
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Udev problem with Fedora8


Hi all,

I am trying to automate my mp3 copying.I used udev to detect specifically
my mp3 card (using USB card reader) and run a script.Although the my rule differentiates the mp3 card and the other thumb drives."mount" does not seem to work in my rule.Please find the udev rule I have written and the behavior

#################################################################

Rule :

#################################################################

# udev rules file by pravin for automation of mp3 copying in phone memory card


SUBSYSTEM=="block" ,ATTR{size}=="3895296",NAME="Test", SYMLINK+="TestUSB" ,RUN+="/usr/bin/usb_script"

###################################################################

Script :usb_script at /usr/bin

###################################################################


mount /dev/TestUSB /home/pravin/USB


touch /home/pravin/usb_script

###################################################################

Behaviour when 4Gb mp3 card reader is connected

###################################################################

sdb1 detection = yes

Test detection = yes

TestUSB detection = yes

usb_script execution = yes (confirmed by execution of touch command)

mount command execution = no


###################################################################

Behaviour when 2Gb Thumb drive is connected

###################################################################

sdb1 detection = yes

Test detection = no (Since size attribute didn't match)

TestUSB detection = no (Since size attribute didn't match)

usb_script execution = no (Since size attribute didn't match)

###################################################################
 
  


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
Fedora8 64 update GUI problem koywa Linux - Newbie 4 07-29-2008 01:50 AM
fedora8-yum problem abhattacharya Fedora 4 05-10-2008 01:44 AM
boot problem with fedora8 bchager Linux - Networking 4 04-20-2008 06:01 PM
fedora8 boot problem moonrise4 Linux - Laptop and Netbook 3 02-11-2008 03:13 AM
Pulse Audio problem in Fedora8 benjithegreat98 Fedora 3 11-12-2007 01:05 AM


All times are GMT -5. The time now is 07:31 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