Files getting corrupted

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 08-30-2015
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..
# 2  
Old 08-30-2015
Please post the dmesg output. Do you see any IO errors there ?.
This User Gave Thanks to linuxmanju For This Post:
rlopes (08-30-2015)
# 3  
Old 08-30-2015
Shouldn't you be using fdisk -l /dev/sda, seeing as /dev/sda1 is itself a partion ?
This User Gave Thanks to Scrutinizer For This Post:
rlopes (08-30-2015)
# 4  
Old 08-30-2015
Quote:
Originally Posted by linuxmanju
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
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.
# 5  
Old 08-30-2015
Quote:
Originally Posted by rlopes
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
# 6  
Old 08-30-2015
@linuxmanju I presume you meant to write
Code:
dmesg | grep -i error

This User Gave Thanks to Scrutinizer For This Post:
linuxmanju (08-30-2015)
# 7  
Old 08-30-2015
Quote:
Originally Posted by Scrutinizer
@linuxmanju I presume you meant to write
Code:
dmesg | grep -i error

Yes, thanks.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
cronjob corrupted semaan Shell Programming and Scripting 2 09-20-2011 04:13 AM
corrupted motherboard bahjatm Solaris 2 04-17-2011 11:02 AM
/etc/name_to_sysnum corrupted wkbn86 Emergency UNIX and Linux Support 3 12-15-2010 09:36 AM
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
Reading from a corrupted tape mart4179 UNIX for Advanced & Expert Users 0 03-28-2008 01:15 PM
Extracting files from corrupted tape mart4179 UNIX for Dummies Questions & Answers 0 03-28-2008 06:40 AM
may a corrupted .gz file be repaired? JohnTinker UNIX for Dummies Questions & Answers 3 03-19-2008 03:03 PM
Could be a corrupted file? kaugrs HP-UX 1 01-16-2008 11:22 AM
LV corrupted Alfredo Jimenez AIX 1 08-23-2005 08:38 AM
passwd file corrupted cantona7 HP-UX 10 03-21-2005 02:06 PM
kernerl corrupted art_malabanan SCO 3 09-24-2003 10:45 PM
Corrupted files from Windows to Unix Sco BAM UNIX for Dummies Questions & Answers 9 08-29-2002 10:09 AM