LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-04-2007, 04:03 PM   #1
alexand
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
usb pendrive write problem


Hi!!

I had succesfully installed slackware-11.0 with kernel 2.6.17.13 but my pen-drive-mp3player got an big slowdown in the write speed, falling from
±700kb/s to ±30kb/2. The read speed has no changed 900kb/s. This is not happening with kernel 2.4.33.3 but "hal" does not work this kernel which complicates inserting differents usb devises in my system.
 
Old 04-04-2007, 04:19 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
System might be loading the wrong USB driver. Your device probably needs ehci_hcd which is the high speed driver, but I'll bet you're getting uhci_hcd which won't go past 12M/sec transfer.

Try doing modprobe ehci_hcd while the pen drive is inserted into the usb port.
 
Old 04-04-2007, 09:33 PM   #3
alibar
Member
 
Registered: Mar 2007
Posts: 44

Rep: Reputation: 15
Usb

post your fstab and mtab files. You can find them under /etc/fstab and /etc/mtab

that will give us a better understanding of you drive write policies also if you can, could you specify the make and model of you pen drive.

Thanks.

___________________________________________________________________
all hail the king, may he rule again.
___________________________________________________________________
 
Old 04-05-2007, 09:18 AM   #4
alexand
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jiml8
System might be loading the wrong USB driver. Your device probably needs ehci_hcd which is the high speed driver, but I'll bet you're getting uhci_hcd which won't go past 12M/sec transfer.

Try doing modprobe ehci_hcd while the pen drive is inserted into the usb port.
hi again !!
there is no change in the write speed with ehci_hcd module loaded.
 
Old 04-05-2007, 11:35 AM   #5
alexand
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by alibar
post your fstab and mtab files. You can find them under /etc/fstab and /etc/mtab

that will give us a better understanding of you drive write policies also if you can, could you specify the make and model of you pen drive.

Thanks.

Hi!!

ths is /etc/fstab:
------------------------------------------------------------------------------------
/dev/hdc2 swap swap defaults 0 0
/dev/hda4 / reiserfs defaults,notail,noatime 1 1
/dev/hda1 /mnt/extras reiserfs defaults,notail,noatime 1 2
/dev/hdc1 /mnt/otrolinux reiserfs defaults,notail,noatime 1 2
/dev/hda3 /mnt/winXP vfat defaults 1 0
/dev/hdc3 /mnt/musica vfat defaults 1 0
/dev/cdrom /mnt/cdrom auto noauto,users 0 0
/dev/sda1 /mnt/usb1 auto noauto,users,uid=horacyo,sync 0 0
/dev/fd0 /mnt/floppy auto noauto,users,uid=horacyo,sync 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


-------------------------------------------------------------------------------------------
this is mtab:

/dev/hda4 / reiserfs rw,noatime,notail 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /proc/bus/usb usbfs rw,devmode=0666,devgid=10 0 0
/dev/hda1 /mnt/extras reiserfs rw,noatime,notail 0 0
/dev/hdc1 /mnt/otrolinux reiserfs rw,noatime,notail 0 0
/dev/hda3 /mnt/winXP vfat rw 0 0
/dev/hdc3 /mnt/musica vfat rw 0 0
/dev/sda1 /mnt/usb1 vfat rw,noexec,nosuid,nodev,sync,uid=502 0 0
-------------------------------------------------------------------------------------------------------
I think the problem was the "sync" option in fstab because in "mount" man page you can read
in reference to "-o" option:
"...sync option today has effect only for ext2, ext3 and ufs"
and /dev/sda1 has a vfat filesystem. so I erase the sync option from fstab for /dev/sda1... and yes it works!!!

but since the I/O is "unsync", I have to pay special attention to the pendrive display to ralize when the
data tranference has been completed.


Thanks!!!
 
Old 04-05-2007, 07:41 PM   #6
alibar
Member
 
Registered: Mar 2007
Posts: 44

Rep: Reputation: 15
Try this!

Sorry for the delay Alexand, iv'e been entertaining guests and i havnt had much time to get online!

!!!!BEFORE YOU DO THIS BACK UP YOU FSTAB AND MTAB FILES!!!!

Anyway try adding this line to your fstab file

Quote:

/dev/sda1 /mnt/usb1 auto noauto,quiet 0 0
in exchange for your

Quote:

/dev/sda1 /mnt/usb1 auto noauto,users,uid=horacyo,sync 0 0
Also could you do me one more favour and run lsmod from the konsole and post the results. Im curious as to wheter or not you may have a module conflict.

Last edited by alibar; 04-06-2007 at 06:04 AM.
 
Old 04-08-2007, 07:13 PM   #7
alexand
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alibar
Sorry for the delay Alexand, iv'e been entertaining guests and i havnt had much time to get online!

!!!!BEFORE YOU DO THIS BACK UP YOU FSTAB AND MTAB FILES!!!!

Anyway try adding this line to your fstab file



in exchange for your



Also could you do me one more favour and run lsmod from the konsole and post the results. Im curious as to wheter or not you may have a module conflict.
Hi alibar!!

sorry if I had take my time but I am very busy with my job. Thanks you for your help and time.

I have make that change and it works in the same way than without "sync" so I keep my last configuration
because quiet is an dangerous option.



here is my lsmod output

Module Size Used by
nls_iso8859_15 4480 1
sd_mod 16272 2
usb_storage 52336 1
scsi_mod 81288 2 sd_mod,usb_storage
libusual 12560 1 usb_storage
ipv6 217952 10
snd_sbawe 26720 0
snd_sb16_dsp 8960 1 snd_sbawe
snd_sb16_csp 17536 1 snd_sbawe
snd_sb_common 14336 3 snd_sbawe,snd_sb16_dsp,snd_sb16_csp
nls_iso8859_1 3968 2
nls_cp850 4736 3
vfat 10240 3
fat 46364 1 vfat
capability 3208 0
commoncap 5376 1 capability
uhci_hcd 19596 0
ehci_hcd 27144 0
lp 8516 0
parport_pc 21828 1
parport 19520 2 lp,parport_pc
pcspkr 2432 0
psmouse 35208 0
usbhid 37856 0
snd_cmipci 29600 0
snd_pcm 75528 3 snd_sbawe,snd_sb16_dsp,snd_cmipci
snd_page_alloc 7816 1 snd_pcm
snd_opl3_lib 8320 2 snd_sbawe,snd_cmipci
snd_timer 19460 2 snd_pcm,snd_opl3_lib
snd_hwdep 6916 2 snd_sb16_csp,snd_opl3_lib
snd_mpu401_uart 5888 2 snd_sbawe,snd_cmipci
snd_rawmidi 18848 1 snd_mpu401_uart
snd_seq_device 6540 3 snd_sbawe,snd_opl3_lib,snd_rawmidi
snd 44004 12 snd_sbawe,snd_sb16_dsp,snd_sb16_csp,snd_sb_common,snd_cmipci,snd_pcm,snd_opl3_lib,snd_timer,snd_hwde p,snd_mpu401_uart,snd_rawmidi,snd_seq_device

ohci_hcd 18308 0
i2c_sis5595 6276 0
sis_agp 6148 1
usbcore 111104 7 usb_storage,libusual,uhci_hcd,ehci_hcd,usbhid,ohci_hcd
soundcore 7136 1 snd
agpgart 27568 1 sis_agp
i2c_sis630 6668 0
ns558 4608 0
i2c_core 16400 2 i2c_sis5595,i2c_sis630
gameport 10760 3 snd_cmipci,ns558
 
  


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 pendrive, again. dve Linux - Hardware 15 12-12-2006 03:58 AM
usb pendrive carmelo Slackware 3 04-08-2006 10:09 AM
USB PENDRIVE Problem with kernel 2.6.10 tandre Linux - Hardware 11 04-20-2005 10:18 PM
USB PenDrive and 2.6.3 kernel vfat mount problem jarro Linux - Hardware 0 06-12-2004 05:23 PM
chmod USB pendrive problem Pathian Linux - Hardware 1 12-09-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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