LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 04-02-2006, 11:08 PM   #1
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Rep: Reputation: 30
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.
 
Old 04-02-2006, 11:35 PM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
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.
 
Old 04-02-2006, 11:38 PM   #3
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
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)
 
Old 04-03-2006, 01:47 AM   #4
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
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
 
Old 04-03-2006, 07:26 AM   #5
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
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.
 
Old 04-03-2006, 07:30 AM   #6
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
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.
 
Old 04-03-2006, 10:22 PM   #7
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
is this mp3 player corrupted? I have the chance to replace it.
 
Old 04-04-2006, 01:43 AM   #8
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount my mp3 player eerstkoffie Linux - Hardware 1 08-09-2005 08:27 AM
mount an mp3 player SystemDownfall Linux - Hardware 4 04-15-2005 06:47 AM
Mount mp3 player via usb? donbellioni Linux - Hardware 7 11-16-2004 12:47 PM
Can't mount mp3 player redneon Linux - Hardware 4 06-03-2004 06:11 AM
mount mp3 player to /mnt/mp3? Muzzy Linux - General 4 05-09-2004 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:05 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