LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-31-2005, 12:49 PM   #1
obstinatesod
Member
 
Registered: Apr 2005
Location: Shetland
Distribution: PClinuxOS, Suse 10.0, Mandriva, Alinux,
Posts: 126
Blog Entries: 1

Rep: Reputation: 15
slow writing to flash drive


Hi can anyone tell me why Suse 10 is so slow writing to my pen drive? it takes ages for a few MB's
 
Old 12-31-2005, 12:51 PM   #2
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
Sorry, the technology of flashdisks is still pretty primitive...
It takes ages to do that on windoze too.
 
Old 12-31-2005, 01:55 PM   #3
obstinatesod
Member
 
Registered: Apr 2005
Location: Shetland
Distribution: PClinuxOS, Suse 10.0, Mandriva, Alinux,
Posts: 126
Blog Entries: 1

Original Poster
Rep: Reputation: 15
thanks BinJajer, but its quite quick in XP and very slow in Suse 10.0 shouldn't they be of similer speed?
 
Old 01-02-2006, 12:30 AM   #4
mpetrov
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
I would suggest plugging in the drive and right after typing 'dmesg' in a shell. There should be some output at the very end about 'sda:' or 'sdb:' on about 10-20 lines. That could tell us which kernel driver is grabbing the device - it could be using the USB 1.1 driver instead of the USB 2.0 driver (if it's a USB 2.0 drive).
 
Old 01-02-2006, 12:49 AM   #5
BFGeier
LQ Newbie
 
Registered: Dec 2005
Location: Ohio, United States
Distribution: Working on that...
Posts: 13

Rep: Reputation: 0
I had a question about flash drives. How do you get SUSE 10.0 to even see them?
 
Old 01-02-2006, 12:57 AM   #6
mpetrov
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
Well most likely it detects the drive but does not mount it, perform the step from my message above after plugging in your drive and see if the kernel recognizes the device. Once the kernel sees the drive you should be able to mount it with a command along the lines of 'mount /dev/sda1 /mnt/usb_stick' (sda1 depends on the dmesg output, sometimes this can be sdb or sdc, but the 1(this is the partition number) should follow if you got a standard FAT32 drive with one partition).
 
Old 01-02-2006, 03:07 AM   #7
obstinatesod
Member
 
Registered: Apr 2005
Location: Shetland
Distribution: PClinuxOS, Suse 10.0, Mandriva, Alinux,
Posts: 126
Blog Entries: 1

Original Poster
Rep: Reputation: 15
slow flash

hi
I should mention my motherboard does not support usb 2, the flash drive is usb 2 but it works a lot quicker in wnindoze, this is the output I got from doing what you said to try.

usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
SFW2-INext-DROP-DEFLT IN=dsl0 OUT= MAC= SRC=88.110.226.244 DST=88.110.127.192 LE N=64 TOS=0x00 PREC=0x00 TTL=46 ID=26347 DF PROTO=TCP SPT=2394 DPT=445 WINDOW=537 60 RES=0x00 SYN URGP=26213 OPT (020405B4010303030101080A000000000000000001010402 )
Vendor: USB Model: Flash Disk Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
SFW2-INext-DROP-DEFLT IN=dsl0 OUT= MAC= SRC=88.110.226.244 DST=88.110.127.192 LE N=64 TOS=0x00 PREC=0x00 TTL=46 ID=26770 DF PROTO=TCP SPT=2394 DPT=445 WINDOW=537 60 RES=0x00 SYN URGP=0 OPT (020405B4010303030101080A000000000000000001010402)
 
Old 01-02-2006, 09:58 AM   #8
mpetrov
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
Here are my first 4 usb related lines after plugging in my device, so if you could please post a few more lines above what you posted. To be specific I am interested in 'USB device using uhci_hcd' that is the driver that took it.

usb 4-2: new full speed USB device using uhci_hcd and address 2
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning

Also please paste the output of 'hdparm -Tt /dev/sda' when the device is plugged in, this will run some read timing tests on the device. For example my output for a 1.1 usb drive using the uhci_hcd driver is:

/dev/sda:
Timing cached reads: 3280 MB in 2.00 seconds = 1638.61 MB/sec
Timing buffered disk reads: 4 MB in 4.41 seconds = 929.78 kB/sec
 
Old 01-02-2006, 05:16 PM   #9
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Is Suse automounting it? If so it might be using the sync option which is cool because it means if you rip the disk out mid-write you won't lose lots of data but it's bad in that it is so incredibly anal about how it does it's writes that it's super slow. I accidently had sync enabled on my iPod and copying a few GB over took hours, turn that off and it takes less than a minute.

Run this the the flash drive mounted and see if it says 'sync' anywhere in the parenthesis at the end:
Code:
mount | grep sda
 
Old 01-03-2006, 02:03 AM   #10
obstinatesod
Member
 
Registered: Apr 2005
Location: Shetland
Distribution: PClinuxOS, Suse 10.0, Mandriva, Alinux,
Posts: 126
Blog Entries: 1

Original Poster
Rep: Reputation: 15
thanks cs-cam here's what I got: /dev/sda1 on /media/U-STORAGE type subfs (rw,nosuid,nodev,sync,fs=floppyfss,proc uid,utf8=true)
Q, how do I turn it off?
 
Old 01-03-2006, 02:42 AM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Well now you know your problem at least. I don't know the answer though, I don't use any kind of automounter and from what I've heard, if you edit /etc/fstab it'll just revert itself next time you reboot. Ask on the Suse forums, you'll get a better answer. For a temporary solution, after the device has automounted then run this series of commands from a terminal as root to unmount and it remount it without the sync option. Find out from the Suse guys how to do it permenantly.

Code:
umount /dev/sda1
mount -o umask=0,rw /dev/sda1 /media/U-STORAGE
 
Old 01-03-2006, 03:14 AM   #12
obstinatesod
Member
 
Registered: Apr 2005
Location: Shetland
Distribution: PClinuxOS, Suse 10.0, Mandriva, Alinux,
Posts: 126
Blog Entries: 1

Original Poster
Rep: Reputation: 15
thanks for your help cs, Adrian
 
  


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
LXer: EDGE Tech Corp Announces Portable Flash Drive With Muscle - the New 8GB DiskGO!(TM) Now Available; Swap and Go With This Secure Thumb-Sized Flash Drive LXer Syndicated Linux News 0 12-14-2005 02:16 AM
Flash Drive or MP3 Player, slow access underscorelinux Linux - Software 0 10-05-2005 10:48 AM
Writing safetely to flash ata disk bigge Linux - General 2 11-14-2004 01:23 PM
CD writing slow under Mandrake 10 bananaman2031 Linux - General 3 06-05-2004 07:14 AM
USB Flash memory writing problem tajuton Linux - Hardware 8 02-18-2004 02:17 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration