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 11-05-2019, 07:55 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Linux 4.17.8-1-ARCH #1 SMP PREEMPT: Strange USB flash drive behavior.


Hi: I have a netbook with two USB slots. One is 3.0 and the other is 2.0. And a 3.0 USB flash drive (aka pendrive). I plug the pendrive into the 2.0 slot and run
Code:
root@darkstar~# dd if=/dev/zero of=/dev/sda bs=1M count=1000 status=progress
706740224 bytes (707 MB, 674 MiB) copied, 1 s, 707 MB/s
dd: error writing '/dev/sda': No space left on device
952+0 records in
951+0 records out
997318656 bytes (997 MB, 951 MiB) copied, 1.43623 s, 694 MB/s
root@darkstar~#
Absurd, because the pendrive (/dev/sda) is a 16GB pendrive. I unplug the pendrive and plug it into the 3.0 slot and run cfdisk. This is the output:
Code:
                  Disk: /dev/sda
                                           Size: 951.1 MiB, 997318656 bytes, 1947888 sectors
                                                  Label: dos, identifier: 0x1431def9
That is, cfdisk sees the same total size: 951MiB. And the same does parted. The pendrive is new and I have tested it on other machines. If I now turn off the netbook and turn it on again, then cfdisk reports the correct size: 14.3 GiB. Other times the above command hangs the terminal. It doesn't return the prompt and becomes irresponsive to ^C. Still other kind of behavior with the pendrive plugged in the 2.0 slot: the command in the code block (dd) gives I/O error (together with buffer I/O error). This happened up to some days ago.

However everything is normal with a 2.0 pendrive inserted in that slot (the USB 2.0 slot). What can be the cause of such a weird behavior? Is the logical conclusion that the slot is broken? I don't think so.
 
Old 11-06-2019, 01:40 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Sounds like multiple problems, that could well be the result of a broken system (see here for reference).
 
Old 11-06-2019, 06:05 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks. I forgot to say that with the 3.0 pendrive inserted into the USB 3.0 slot I never had a problem. The problems appear when using that pendrive in the USB 2.0 slot. I also repeat that 2.0 pendrives give no problems when inserted into the 2.0 slot.

Quote:
Originally Posted by ondoho View Post
[...] that could well be the result of a broken system.
By system you mean the software running on this machine or only the operating system? In either case that would mean the hardware is not involved, right?

EDIT: When dd notifies me the occurrence of an I/O error it is then not necessary that the hardware is failing?

Last edited by stf92; 11-06-2019 at 06:18 PM.
 
Old 11-12-2019, 01:20 PM   #4
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252

Rep: Reputation: 73
Did you ever write the entire capacity or almost? There are fake devices that report a fake full capacity but they report errors if you try to write on them.
I had in the past a device reporting 4GB, however trying to write something more than 1GB gave error (or trying to read content above 1GB gave error, I don't remember well now). It happens sometimes with super-bargain in the "grey market".
 
Old 11-12-2019, 06:24 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by masterclassic View Post
Did you ever write the entire capacity or almost?
Yes, I did, and got 'No space left on device' after writing bare 700MB in a 16GB USB pen drive.

Quote:
It happens sometimes with super-bargain in the "grey market".
Can it happen with a Kingston Technology product? It's a big firm.

Anyway I ran dd from a live Arch Linux external medium getting the same errors. So, the software in the machine, including the installed Arch Linux, is not to blame, in accordance with the notification "I/O error" as mentioned above.
 
Old 11-17-2019, 05:16 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Conclusion:
(1) The suspected pen drive (aka USB flash drive) is broken.
(2) Under the following conditions: (a) No swap space. (b) 2GB RAM. (c) The Firefox DE/window manager running on top of X, dd writing an external device makes the O.S. fail.

Thanks for the feedback.
 
  


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
Version magic '3.10.40-ga7da876 SMP preempt mod_unload ARMv7 p2v8 ' hould be '3.10.40 SMP preempt mod_unload ARMv7 p2v8 ' ksahin Linux - Kernel 1 09-12-2017 01:15 PM
linux 2.6.21: Timer Frequency / Preempt draeath Linux - Kernel 1 07-13-2007 03:42 PM
Deactivating Kernel Mode PREEMPT & SMP Maladjez LinuxAnswers Discussion 1 03-28-2007 08:57 AM
How to disable PREEMPT and/or SMP kernel mode on OpenSuse 10.2 Maladjez Linux - Kernel 3 02-06-2007 01:58 AM
Strange USB flash drive behavior SamuelHenderson Linux - Hardware 3 09-17-2006 11:03 PM

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

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