LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2015, 01:28 AM   #1
krishnamoorthy
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Rep: Reputation: Disabled
Question How to map a device with VID/PID with mounted path /dev/sdx?


Hi,
I have developed a tool where the update logic happens through libusb. In the case of libusb, we perform the corresponding operations after opening the respective device with VID/PID. Now one of the requirement states that even user specifies the mounted path (eg: /dev/sda), the tool performs the operation to a different device(eg:/dev/sdb) where the VID/PID matches with my tool logic. Can anyone please suggest how to map the VID/PID with the mounted path. Thanks in advance.
 
Old 03-23-2015, 09:43 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,458

Rep: Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932Reputation: 7932
Quote:
Originally Posted by krishnamoorthy View Post
Hi,
I have developed a tool where the update logic happens through libusb. In the case of libusb, we perform the corresponding operations after opening the respective device with VID/PID. Now one of the requirement states that even user specifies the mounted path (eg: /dev/sda), the tool performs the operation to a different device(eg:/dev/sdb) where the VID/PID matches with my tool logic. Can anyone please suggest how to map the VID/PID with the mounted path. Thanks in advance.
First, please read the LQ Rules (pay particular attention to not posting the same question in multiple forums...your duplicate was reported for closure/deletion), and also read the Question Guidelines link in my posting signature. You're not really providing any details which would let us help you. The best anyone can do from what you posted, is to tell you "re-write your script to do what you want".

Also...this is a confusing post. You say that you developed this tool that already does what you want...but you're not able to understand it to modify it??? Can you post this script? Tell us how you're getting the 'VID/PID' now?
 
  


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 map a device with VID/PID with mounted path /dev/sdx? krishnamoorthy Linux - Newbie 1 03-23-2015 11:27 AM
udev rule to rename /dev/sdx as /dev/sdr does not work :-( on OS 11.2 tkmbe SUSE / openSUSE 2 05-10-2012 02:53 AM
Get /dev/input/eventX from VID:PID (C/C++) Litch84 Programming 1 10-08-2011 06:49 AM
using libusb find device VID & PID on Solaris xwhbin Solaris / OpenSolaris 2 05-19-2010 02:05 AM
Lock different external drives to a set device name ? (/dev/sdX) Dark Carnival Linux - Hardware 5 10-20-2006 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration