LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   usb mp3 player (mass storeage) keeps changing address (https://www.linuxquestions.org/questions/linux-general-1/usb-mp3-player-mass-storeage-keeps-changing-address-270298/)

qwijibow 12-25-2004 06:06 PM

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 !

how do i get it to sit still ?

Brian1 12-25-2004 06:25 PM

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 '

Brian1

qwijibow 12-25-2004 06:39 PM

OK.. 2nd question...

When mounting the device via command line as root with filesystem set as "auto" it mounts fine.

however from command line as user, or through kde as user, it doesnt mount with an unknown filesystem error

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems

fstab entry:
/dev/sda1 /mnt/mp3 auto noauto,user,umsak=0 0 0

any ideas ???

maybe i should specify the filesystem in fstab instead of auto.. how do i detect the filesystem ???

Brian1 12-25-2004 06:57 PM

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.

Brian1


All times are GMT -5. The time now is 10:11 AM.