LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 12-25-2004, 06:06 PM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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 ?
 
Old 12-25-2004, 06:25 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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: Reputation: 65
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
 
Old 12-25-2004, 06:39 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
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 ???
 
Old 12-25-2004, 06:57 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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: Reputation: 65
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

Last edited by Brian1; 12-25-2004 at 07:09 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB mp3 player configuration DaveQB Ubuntu 15 04-15-2006 07:18 AM
usb mp3 player trawler Linux - Hardware 7 10-14-2005 05:56 PM
MP3 player (USB mass storage) not mountable anymore, no block-oriented device the who Slackware 8 09-07-2004 05:55 PM
usb-mp3 player godders48 Mandriva 3 10-01-2003 09:24 PM
USB Mp3 Player jmc_z28 Linux - Hardware 2 08-19-2003 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:36 PM.

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