LinuxQuestions.org
Help answer threads with 0 replies.
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 06-22-2018, 05:55 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
copying to this usb stick takes a long time, is there something wrong?


After making backups of my data, I copy the .tar.gz file to a usb It always takes a long time, although this laptop is generally fast.

Below is the result of tail | dmesg

Can you please tell me what is wrong

Quote:
[ 9250.361194] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=394305 end=394306) time 163 us, min 1073, max 1079, scanline start 1069, end 1081
[ 9458.874961] usb 1-3: new high-speed USB device number 6 using xhci_hcd
[ 9459.024492] usb 1-3: New USB device found, idVendor=0951, idProduct=1666
[ 9459.024495] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9459.024496] usb 1-3: Product: DataTraveler 3.0
[ 9459.024497] usb 1-3: Manufacturer: Kingston
[ 9459.024498] usb 1-3: SerialNumber: 20CF30E11746F230D63A0EE1
[ 9459.040928] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 9459.041113] scsi host2: usb-storage 1-3:1.0
[ 9459.041588] usbcore: registered new interface driver usb-storage
[ 9459.044339] usbcore: registered new interface driver uas
[ 9460.043598] scsi 2:0:0:0: Direct-Access Kingston DataTraveler 3.0 PQ: 0 ANSI: 6
[ 9460.043855] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 9460.044215] sd 2:0:0:0: [sdb] 30218842 512-byte logical blocks: (15.5 GB/14.4 GiB)
[ 9460.044447] sd 2:0:0:0: [sdb] Write Protect is off
[ 9460.044449] sd 2:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[ 9460.044686] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 9460.047844] sdb: sdb1
[ 9460.049100] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 9460.258595] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
 
Old 06-22-2018, 06:13 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Pedroski View Post
After making backups of my data, I copy the .tar.gz file to a usb It always takes a long time, although this laptop is generally fast.
...
Can you please tell me what is wrong
If you're referring to this:

Code:
[drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=394305 end=394306) time 163 us, min 1073, max 1079, scanline start 1069, end 1081
That looks to me like a problem with you're on-board Intel graphics, and not USB.

You may want to do a search on that, here's one link: https://bbs.archlinux.org/viewtopic.php?id=214177
(post #11 in that same link seems to have at least one solution.)

Back to you're USB question;

Bear in mind that a USB 3 drive plugged into a USB 2 port, will still operate at USB 2 speed, and NOT at USB 3 speed.

Also, did you see this below?

Code:
[ 9460.258595] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
(from your output posted)

It appears that (as the message says) you did not un-mount it properly, which could well explain your problem.

Did you run fsck on this USB drive?
(if that is the USB drive in question.)

Is that the USB drive in question?

Also, what speed is the port you're plugging this USB drive into?
What speed is the USB drive?

Last edited by jsbjsb001; 06-22-2018 at 06:20 AM. Reason: addition
 
Old 06-22-2018, 06:25 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,123

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
USB flash disks are slow. Also, your backup is not guaranteed to be written correctly if you don't unmount the disk before removing it.
 
Old 06-22-2018, 06:41 AM   #4
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks. I never unplug the usb stick without unmounting: "safely remove KINGSTON"

Could you please tell me how to run fsck on this usb? I tried, but fsck said,

Quote:
WARNING!!! The filesystem is mounted. If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.
then I 'safely removed' it, tried again, got,

Quote:
pedro@pedro-dodgySSD:~$ fsck /dev/sdb1
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
fsck.ext2: No such file or directory while trying to open /dev/sdb1
Possibly non-existent device?
Could you give me the command line to run fsck on this usb stick?
 
Old 06-22-2018, 07:13 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,477
Blog Entries: 19

Rep: Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409Reputation: 4409
The drive needs to be plugged in but not mounted. If you physically remove it, the /dev/sdb1 device disappears with it. The command "umount /dev/sdb1" should do the trick.

Do you have automatic mounting of plug-in devices on your system? If so, it's a good example of how things intended to make life "easier" for newbies end up by only giving them more trouble.
 
Old 06-22-2018, 07:13 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Do you even read any of the messages you're getting ?

You need to un-mount it BEFORE you run fsck. I'm not doing you're research for you - you need to do you're own.

Code:
man fsck
The above will load it's man page for you - I suggest you READ it.
 
Old 06-22-2018, 07:25 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,460

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Copying to/via USB devices is HIGHLY variable, depends on the media and even more to the underlying USB mechanism. For example, with the same SD Card I tried some variations:

ExpressCard media adaptor Read ~15b/s Write ~10Mb/s
Using the laptop inbuilt SD reader gave Read ~60MB/s Write ~30MB/s
Lexar Pro USB 3 Dual Card reader with the laptop USB gave Read ~90MB/s Write ~80Mb/s
 
Old 06-22-2018, 04:51 PM   #8
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
@jsbjsb001: I don't have a screen problem, but I often use the laptop in class attached to the overhead projector via a hdmi to vga adaptor, when I am finished, I just unplug the hdmi adaptor. Maybe that causes that message. Maybe I should somehow 'unmount' the projector first?

OK, so I did this:

Quote:
pedro@pedro-dodgySSD:~$ umount /dev/sdb1
then

Quote:
pedro@pedro-dodgySSD:~$ sudo fsck -r /dev/sdb1
[sudo] password for pedro:
fsck from util-linux 2.27.1
fsck.fat 3.0.28 (2015-05-16)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
Perform changes ? (y/n) y
/dev/sdb1: 99 files, 660810/943843 clusters
/dev/sdb1: status 1, rss 13432, real 20.825790, user 0.066572, sys 0.041607
then

Quote:
pedro@pedro-dodgySSD:~$ sudo fsck -r /dev/sdb1
fsck from util-linux 2.27.1
fsck.fat 3.0.28 (2015-05-16)
/dev/sdb1: 99 files, 660810/943843 clusters
/dev/sdb1: status 0, rss 13448, real 0.476426, user 0.064008, sys 0.042672
pedro@pedro-dodgySSD:~$
I 'safely removed' it, then plugged it back in and copied the file again. still takes a long time.

Tried with my Toshiba 16GB usb, takes a long time. The last bit of tail | dmesg shows the same dirty bit problem. I ran fsck on it too, same as above

Quote:
[48003.288525] usb 1-3: Product: TransMemory
[48003.288532] usb 1-3: Manufacturer: TOSHIBA
[48003.288538] usb 1-3: SerialNumber: 2EF9F3A69AC4CE20D336FAA5
[48003.289515] usb-storage 1-3:1.0: USB Mass Storage device detected
[48003.293137] scsi host2: usb-storage 1-3:1.0
[48004.335389] scsi 2:0:0:0: Direct-Access TOSHIBA TransMemory 1.00 PQ: 0 ANSI: 4
[48004.336843] sd 2:0:0:0: [sdb] 30310400 512-byte logical blocks: (15.5 GB/14.5 GiB)
[48004.336849] sd 2:0:0:0: Attached scsi generic sg1 type 0
[48004.337189] sd 2:0:0:0: [sdb] Write Protect is off
[48004.337200] sd 2:0:0:0: [sdb] Mode Sense: 45 00 00 00
[48004.338582] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[48004.340891] sdb: sdb1
[48004.342657] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[48004.704156] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
I copied the file to the Toshiba stick a few times, timed it with my phone's stopwatch.

If you look at the screenshot, we have 673.9MB 641.5 copy in seconds, leaving 32.4MB to complete. This just took 2 minutes 38 seconds to complete.

Something is not right. Any ideas?

The copied file is OK though, I load it into the .formreturn database file folder on my older laptop, and when I start the program, everything is OK.

Edit: I did the same on my old laptop, and it does the same, the little window showing the status of the copy procedure got to 673.8MB of 673.9MB in a few seconds, copying around 18MB/s but then it took 1 minute 55 seconds to complete. (673 divided by 18 = 33)

Maybe there is some kind of file integrity check going on in the background?

Copying from the usb to the hd of this old laptop takes just a few seconds, maybe 10 seconds.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2018-06-23 05-30-56.png
Views:	10
Size:	14.7 KB
ID:	27988  

Last edited by Pedroski; 06-22-2018 at 07:39 PM.
 
  


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
Vanilla 3.4.38: USB devices init takes a long time zvivered Linux - Embedded & Single-board computer 0 02-04-2014 05:44 AM
initrd.img takes a long time to load when booting Slackware from USB dugan Slackware 7 11-08-2013 11:20 AM
gdm takes a long time nkd Fedora 6 10-17-2008 02:38 PM
GDM takes a *long* time to start first time grumpybuffalo Linux From Scratch 2 09-09-2007 12:17 PM
Bzipping takes a really long time sometimes scott_R General 0 10-10-2004 12:47 AM

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

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