usb mp3 player (mass storeage) keeps changing address
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
usb mp3 player (mass storeage) keeps changing address
i keep plugging my mp3 player into the same USB port.
and then i read dmesg output to see where the /dev/ address of the device is
the first time i pluged it up, the address was /dev/scsi/host0/bus0/target0/lun0: p1
the second time is was /dev/scsi/host1/bus0/target0/lun0: p1
then host2 then host3.
which means its impossable to give users mount access as i cannot enter it in fstab.
and i cannot add a desktop icon for the device as its address keeps chaning !
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
That does not matter if it is the first device plugged in and is the only device then it will always be /dev/sda1, no matter how many times you plug and unplug. But if you use more than one device then try to insert in the same order.
That info you see comes from ' cat /proc/scsi/scsi ' can take a while to erase, if it ever does. If you wish to remove it then you can manually do so by type ' echo "scsi remove-single-device a b c d" > /proc/scsi/scsi '
Example from your output /dev/scsi/host1/bus0/target0/lun0: p1
' echo "scsi remove-single-device 1 0 0 0" > /proc/scsi/scsi '
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
snippet of my fstab file
/dev/sda1 /mnt/sda1 auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
/dev/sdb1 /mnt/sdb1 auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
/dev/sdc1 /mnt/sdc1 auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
have no problem mounting as user since edit sudo for access.
Do users have mount privileges. You are not mounting the same device twice. Once as root then as a user are you. Once mounted, each user does not need to mount it. They can get to it by it mount point if permissions are alloweed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.