LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-07-2005, 05:01 PM   #1
spanky_producer
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Problem when writing to usb mp3 player


Hi,

I bought a cheap usb mp3 player a few weeks ago, which works perfectly under winxp. Under linux, however, I cannot get the thing to work. I re-compiled my custom build kernel, with USB MASS storage, and SCSI support and SCSI drive support (even SCSI general support as module).

Mounting goes just great, I mount with:
mount -t vfat /dev/sda /mnt/mp3

I can read it (after I put some mp3's on it via winxp). When i put a small file on it (a textfile for example), I can unmount it. When i put bigger files on it it (MP3's), it goes wrong. I get outputs like:

Mar 8 23:42:55 multi kernel: lost page write due to I/O error on sda
Mar 8 23:42:55 multi kernel: SCSI error : <0 0 0 0> return code = 0x10070000
Mar 8 23:42:55 multi kernel: end_request: I/O error, dev sda, sector 537
Mar 8 23:42:55 multi kernel: lost page write due to I/O error on sda
Mar 8 23:42:55 multi kernel: SCSI error : <0 0 0 0> return code = 0x10070000
Mar 8 23:42:55 multi kernel: end_request: I/O error, dev sda, sector 538
Mar 8 23:42:55 multi kernel: lost page write due to I/O error on sda
Mar 8 23:42:55 multi kernel: SCSI error : <0 0 0 0> return code = 0x10070000
Mar 8 23:42:55 multi kernel: end_request: I/O error, dev sda, sector 539
Mar 8 23:42:55 multi kernel: lost page write due to I/O error on sda

This is what lsusb says:

Bus 002 Device 002: ID 0dda:0301 Integrated Circuit Solution, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

lsmod:

Module Size Used by
sd_mod 12944 1
usb_storage 29184 1
snd_emu10k1 95620 0
snd_rawmidi 20192 1 snd_emu10k1
snd_seq_device 6988 2 snd_emu10k1,snd_rawmidi
snd_ac97_codec 71872 1 snd_emu10k1
snd_pcm_oss 48096 0
snd_mixer_oss 17600 1 snd_pcm_oss
snd_pcm 80328 3 snd_emu10k1,snd_ac97_codec,snd_pcm_oss
snd_timer 21316 2 snd_emu10k1,snd_pcm
snd_page_alloc 7620 2 snd_emu10k1,snd_pcm
snd_util_mem 3328 1 snd_emu10k1
snd_hwdep 7328 1 snd_emu10k1
snd 44068 9 snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,sn d_hwdep
sg 30112 0
scsi_mod 115016 3 sd_mod,usb_storage,sg


fdisk -l:

Disk /dev/sda: 262 MB, 262144000 bytes
9 heads, 56 sectors/track, 1015 cylinders
Units = cylinders of 504 * 512 = 258048 bytes

Device Boot Start End Blocks Id System

It looks like this is also an "hardware" issue also (not supported yet?). I cannot find the problem. When i unplug the device, it sometimes contains a mp3-file, but it has a fixed size of 4kb (or something)

I hope it's a think-fault of myself. Hope you guys can do anything with this information.

Thanks in advance,
Frank
 
Old 03-07-2005, 06:33 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
/dev/sda is the whole device, use /dev/sda1 for first partition.
 
Old 03-07-2005, 06:43 PM   #3
spanky_producer
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Emerson
/dev/sda is the whole device, use /dev/sda1 for first partition.
Thanks Emerson.
But on my stick, /dev/sda1 is not a valid partition. I found on some other
forum that some USB sticks use the whole device as partition.

I wonder where the SCSI errors come from...

Frank
 
Old 03-07-2005, 06:52 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Dunno, I would experiment with sector sizes a little.
 
Old 03-07-2005, 07:01 PM   #5
spanky_producer
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Emerson
Dunno, I would experiment with sector sizes a little.
Any advise how to do that? Is there a mount option to obtain it?

Thanks,
Frank
 
Old 03-07-2005, 07:05 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
'man mount' and 'man fstab' have plenty of information, but you better look at these yourself.
 
Old 03-08-2005, 02:18 PM   #7
spanky_producer
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Emerson
'man mount' and 'man fstab' have plenty of information, but you better look at these yourself.
Yeah i'm that smart
I tried some parameters... but none of these help. I think I should be in the SCSI-emulation section somewhere... unless this
is all managed by the modules... Can anyone tell?

Frank
 
Old 03-09-2005, 06:56 AM   #8
spanky_producer
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I also tried older kernels... my current was 2.6.11, i tried from 2.6.7 upwards... none works!

Anybody else?

Frank
 
Old 03-09-2005, 05:04 PM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I would recommend to find a file system utility capable of analysing fat32 and run it on your player. This is the easiest way to get your parameters right.
 
Old 03-09-2005, 06:55 PM   #10
spanky_producer
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Emerson
I would recommend to find a file system utility capable of analysing fat32 and run it on your player. This is the easiest way to get your parameters right.
That's a good way to continue indeed... will try that!

Thanks alot,
Frank
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb mp3 player trawler Linux - Hardware 7 10-14-2005 05:56 PM
usb-masstorage MP3-Player problem kvasarnomad Linux - Hardware 4 09-12-2005 03:05 PM
Connecting mp3 player thru usb Superdude Linux - Hardware 1 08-16-2004 12:37 AM
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 - Hardware

All times are GMT -5. The time now is 07:25 AM.

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