You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to linuxgurus
Hi,
I am using multiple USBs in small Linux embedded system.
whenever I plug-In USB mdev creating the node in any of sd[a-z][1-9].
I want to map the each USB to my desired name.
As of now I am using below rule in mdev.conf
sd[a-z][1-9]* root:disk 0660 @ln -sf $MDEV USB
Now the problem with below scenarios.
1) first I connected one USB,suppose it mapped to sda1
at this stage USB pointing to sda1
USB->sda1
2) when I connect next USB,suppose it mapped to sdb1
at this stage USB pointing to sdb1
USB->sdb1
I am missing the 1) device soft link after switch on 2).
Is there any way to map linux default drives to my desired names in
user space????
Thanks in Advance
Lokesh
unread,
Mar 14, 2009, 12:37:32 PM3/14/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to linuxgurus
Hi mahesh,
As per your explanation.
You connect usb 1 and it detects as sda1 and later you connect usb2
and detects as sdb1 and when u look sda1 will
not be visible to you right?
Then it is the case in which the order you use to detect the drivers
for the devices.
You can do an experiment
1. Detect a scsi device first and it will select as sda and next the
USB and sd* so on
This should go in serial, i think mdev is not smart enough to
identify and correct the drive letter.
Rather you can see /proc/partitions as drivers gets loaded and
name them as per this.