LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-14-2018, 10:07 AM   #1
falafelmaco
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
Having random error when reading a file


Hello, I come with a really strange error.

I noticed the trouble when navigating with firefox. It randomly broke tabs, appearing the 'some error occured' tab. Then when I do md5sum of a large file, it is different each time. When burning a live usb stick of some distro using dd, at boot time, some random error occurs.

To do more tests, I booted a linux live image (created in another machine), and did:
dd if=/dev/zero of=./file

It copies to file as zeros as possible for the media. Doing a hexdump to this file, gives some 1s at random positions, different each time hexdump is executed. However, doing hexdump to /dev/zero, does not gives any 1.

I have no idea what is happening here.

Thanks

Last edited by falafelmaco; 05-14-2018 at 11:59 AM.
 
Old 05-14-2018, 04:23 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Rep: Reputation: 271Reputation: 271Reputation: 271
The disk failed. If it's a physical disk, run fsck on it; if it's flash run f3write/f3read on it.
 
Old 05-15-2018, 12:59 AM   #3
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
http://dt.iki.fi/hard-drive-and-fs-health-checks
 
Old 05-15-2018, 07:56 AM   #4
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
Check the cable as well.
You wouldn't believe how often I've been asked to change a faulty disk that just wasn't plugged in correctly or had a faulty cable. SATA connectors are FAR too easy to pull half off. That is the one big design error with SATA.
 
Old 05-15-2018, 09:40 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
From the described symptoms, I would first suspect a memory problem. Boot from some installation or rescue medium that offers a memory test and let it run for several complete passes.
 
  


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
Error reading from file: Input/output error hdp160 Linux - General 3 10-13-2015 07:11 AM
reading and writing random line from file mcbenus Linux - Software 6 06-30-2008 09:39 PM
Error reading Release file pressman57 Ubuntu 2 08-13-2007 08:21 PM
Random file lines directed to a new file. In script an error. In command line no err leventis Programming 1 09-28-2006 07:16 AM
Reading random lines in c++? twirl Programming 7 10-30-2005 10:11 AM

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

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