Unix/Linux Go Back    


Hardware Device drivers, hardware compatibility issues, motherboards, disk drives, graphics cards and other hardware related topics.

Files getting corrupted

Hardware


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 08-30-2015
rlopes rlopes is offline
Registered User
 
Join Date: May 2009
Last Activity: 31 August 2015, 2:47 PM EDT
Posts: 27
Thanks: 9
Thanked 0 Times in 0 Posts
Files getting corrupted


Code:
$ uname -a
Linux darksun 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:45 UTC 2014 i686 athlon i686 GNU/Linux

My files are getting corrupted on a frequent basis.


Code:
$ sudo fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0002377b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   969215997   484606975   83  Linux
/dev/sda2       969215998   976771071     3777537    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5       969216000   976771071     3777536   82  Linux swap / Solaris

At first I thought the HD was the culprit, but then, it's "only" about 4 years old.

Is there a possibility that other devices, as the RAM, are corrupting my data? Or can I be sure that buying a new HD will solve the issue?

Last edited by rlopes; 08-30-2015 at 02:48 PM..
Sponsored Links
    #2  
Old Unix and Linux 08-30-2015
linuxmanju linuxmanju is offline
Registered User
 
Join Date: Jan 2014
Last Activity: 2 October 2015, 12:14 PM EDT
Posts: 10
Thanks: 3
Thanked 2 Times in 2 Posts
Please post the dmesg output. Do you see any IO errors there ?.
The Following User Says Thank You to linuxmanju For This Useful Post:
rlopes (08-30-2015)
Sponsored Links
    #3  
Old Unix and Linux 08-30-2015
Scrutinizer's Unix or Linux Image
Scrutinizer Scrutinizer is offline Forum Staff  
Moderator
 
Join Date: Nov 2008
Last Activity: 21 July 2017, 5:32 PM EDT
Location: Amsterdam
Posts: 11,483
Thanks: 494
Thanked 3,320 Times in 2,928 Posts
Shouldn't you be using fdisk -l /dev/sda, seeing as /dev/sda1 is itself a partion ?
The Following User Says Thank You to Scrutinizer For This Useful Post:
rlopes (08-30-2015)
    #4  
Old Unix and Linux 08-30-2015
rlopes rlopes is offline
Registered User
 
Join Date: May 2009
Last Activity: 31 August 2015, 2:47 PM EDT
Posts: 27
Thanks: 9
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by linuxmanju View Post
Please post the dmesg output. Do you see any IO errors there ?.
The dmesg output is huge, how can I grep only the necessary?

---------- Post updated at 01:55 PM ---------- Previous update was at 01:54 PM ----------

Quote:
Originally Posted by Scrutinizer View Post
Shouldn't you be using fdisk -l /dev/sda, seeing as /dev/sda1 is itself a partion ?
You are right, edited the post to reflect it correctly.
Sponsored Links
    #5  
Old Unix and Linux 08-30-2015
linuxmanju linuxmanju is offline
Registered User
 
Join Date: Jan 2014
Last Activity: 2 October 2015, 12:14 PM EDT
Posts: 10
Thanks: 3
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by rlopes View Post
The dmesg output is huge, how can I grep only the necessary?

---------- Post updated at 01:55 PM ---------- Previous update was at 01:54 PM ----------



You are right, edited the post to reflect it correctly.
To start with


Code:
dmesg | grep -I error


Last edited by Scrutinizer; 08-30-2015 at 04:08 PM.. Reason: code tags
Sponsored Links
    #6  
Old Unix and Linux 08-30-2015
Scrutinizer's Unix or Linux Image
Scrutinizer Scrutinizer is offline Forum Staff  
Moderator
 
Join Date: Nov 2008
Last Activity: 21 July 2017, 5:32 PM EDT
Location: Amsterdam
Posts: 11,483
Thanks: 494
Thanked 3,320 Times in 2,928 Posts
@linuxmanju I presume you meant to write
Code:
dmesg | grep -i error

The Following User Says Thank You to Scrutinizer For This Useful Post:
linuxmanju (08-30-2015)
Sponsored Links
    #7  
Old Unix and Linux 08-30-2015
linuxmanju linuxmanju is offline
Registered User
 
Join Date: Jan 2014
Last Activity: 2 October 2015, 12:14 PM EDT
Posts: 10
Thanks: 3
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Scrutinizer View Post
@linuxmanju I presume you meant to write
Code:
dmesg | grep -i error

Yes, thanks.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
WinRAR files are corrupted after FTP maroli HP-UX 4 10-25-2010 07:05 AM
PAM login library files corrupted, have ILOM, can I get root? Mariognarly Solaris 1 11-13-2009 02:47 AM
Fixing corrupted vcard files. dotancohen Shell Programming and Scripting 7 10-16-2008 06:57 PM
Extracting files from corrupted tape mart4179 UNIX for Dummies Questions & Answers 0 03-28-2008 06:40 AM
Corrupted files from Windows to Unix Sco BAM UNIX for Dummies Questions & Answers 9 08-29-2002 10:09 AM



All times are GMT -4. The time now is 06:41 PM.