copying to this usb stick takes a long time, is there something wrong?
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by Pedroski
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.
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?
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.
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
@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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.