Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-02-2006, 11:08 PM
|
#1
|
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Rep:
|
How to mount mp3 player on linux?
Hi, i have just got a new mp3 player. I would like to know how does it work, do i have to mount it? I'm using debian. I tried to mount /dev/sda but it doesn't exist.
|
|
|
04-02-2006, 11:35 PM
|
#2
|
Member
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848
Rep:
|
It really depends on the mp3 player. Some will show up as a usb drive, others (like the iRiver) use the same protocol as some digital cameras and require a special application. First thing to check is dmesg just after plugging it in. If it is a usb drive type device, it will be like a hard drive (in your example it would be /dev/sda1 for the actual drive partition).
Also, look at linux-usb.org. They have a link to working usb devices. You might find more info there.
|
|
|
04-02-2006, 11:38 PM
|
#3
|
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
|
well, i'm getting this o /var/log/syslog
Code:
Apr 3 00:37:19 localhost kernel: ohci_hcd 0000:00:03.0: wakeup
Apr 3 00:37:19 localhost kernel: usb 1-1: new full speed USB device using address 3
Apr 3 00:37:20 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Apr 3 00:37:20 localhost kernel: Vendor: SigmaTel Model: MSCN Rev: 0100
Apr 3 00:37:20 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 3 00:37:20 localhost kernel: USB Mass Storage device found at 3
Apr 3 00:37:20 localhost usb.agent[3003]: usb-storage: already loaded
Apr 3 00:37:21 localhost scsi.agent[3032]: sd_mod: can't be loaded (for disk)
|
|
|
04-03-2006, 01:47 AM
|
#4
|
Member
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848
Rep:
|
Make sure you have the usb-storage module loaded (modprobe usb-storage). Also, dmesg should tell you what device the system has assigned to the mp3 player. For example, this is what I get from dmesg:
usb 4-5: new high speed USB device using ehci_hcd and address 5
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: Flash Model: Drive UT_USB20 Rev: 0.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdg: 4014080 512-byte hdwr sectors (2055 MB)
sdg: Write Protect is off
sdg: Mode Sense: 00 00 00 00
sdg: assuming drive cache: write through
SCSI device sdg: 4014080 512-byte hdwr sectors (2055 MB)
sdg: Write Protect is off
sdg: Mode Sense: 00 00 00 00
sdg: assuming drive cache: write through
/dev/scsi/host4/bus0/target0/lun0: p1
Attached scsi removable disk sdg at scsi4, channel 0, id 0, lun 0
usb-storage: device scan complete
|
|
|
04-03-2006, 07:26 AM
|
#5
|
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
|
well, the problem is that i forgot that i had compiled a kernel without scsi support (long time ago, about 3 years). I have rebooted and loaded the default debian kernel. Now i have /dev/sda when i connect the mp3 player to computer but when i try to mount with
Code:
mount -t vfat -o umask=0000 /dev/sda /mnt/pen
The computer keeps a long time without any response and then appears some error messages (will try to post it later), something about not being able to read a sector and then finally it says it cannot read the boot sector and quit mount.
|
|
|
04-03-2006, 07:30 AM
|
#6
|
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
|
here is the error
Code:
Apr 3 08:08:51 localhost kernel: ohci_hcd 0000:00:03.0: wakeup
Apr 3 08:08:51 localhost kernel: usb 1-1: new full speed USB device using address 2
Apr 3 08:08:53 localhost kernel: SCSI subsystem initialized
Apr 3 08:08:53 localhost kernel: Initializing USB Mass Storage driver...
Apr 3 08:08:53 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Apr 3 08:08:53 localhost kernel: Vendor: SigmaTel Model: MSCN Rev: 0100
Apr 3 08:08:53 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 3 08:08:53 localhost kernel: USB Mass Storage device found at 2
Apr 3 08:08:53 localhost kernel: usbcore: registered new driver usb-storage
Apr 3 08:08:53 localhost kernel: USB Mass Storage support registered.
Apr 3 08:08:53 localhost kernel: SCSI device sda: 1007360 512-byte hdwr sectors (516 MB)
Apr 3 08:08:53 localhost kernel: sda: assuming Write Enabled
Apr 3 08:08:53 localhost kernel: sda: assuming drive cache: write through
Apr 3 08:08:53 localhost kernel: /dev/scsi/host0/bus0/target0/lun0: p1
Apr 3 08:08:53 localhost kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Apr 3 08:10:33 localhost kernel: SCSI error : <0 0 0 0> return code = 0x70000
Apr 3 08:10:33 localhost kernel: end_request: I/O error, dev sda, sector 1007232
Apr 3 08:10:33 localhost kernel: Buffer I/O error on device sda, logical block 125904
Apr 3 08:10:53 localhost kernel: SCSI error : <0 0 0 0> return code = 0x70000
Apr 3 08:10:53 localhost kernel: end_request: I/O error, dev sda, sector 1007240
Those errors keeps appearing a long time on my screen.
|
|
|
04-03-2006, 10:22 PM
|
#7
|
Member
Registered: Sep 2005
Distribution: Debian
Posts: 304
Original Poster
Rep:
|
is this mp3 player corrupted? I have the chance to replace it.
|
|
|
04-04-2006, 01:43 AM
|
#8
|
Member
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848
Rep:
|
Doubtful. Try mounting /dev/sda1.
Apr 3 08:08:53 localhost kernel: /dev/scsi/host0/bus0/target0/lun0: p1 <-- This indicates 1 partition.
Also, see what cat /proc/partitions tells you.
|
|
|
All times are GMT -5. The time now is 04:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|