Files getting corrupted

 
Thread Tools Search this Thread
Special Forums Hardware Files getting corrupted
# 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 04: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:
# 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:
# 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 06: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:
# 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 Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cronjob corrupted

dear all , i was trying to run a cron as root , something happened because it displayed "/tmp/crontabC5a4lB" 14 lines, 495 characters cron may not be running - call your system administrator does anyone knows the problems? thanks ---------- Post updated at 01:05 PM... (2 Replies)
Discussion started by: semaan
2 Replies

2. Emergency UNIX and Linux Support

/etc/name_to_sysnum corrupted

Hi all , i have an issue in netra 20 server when i boot the system its getting rebooting and it is giving tha" /etc/name_to_sysnum " file not found i done OK> boot -ar then also not solved please can any body send the answer ASAP regards (3 Replies)
Discussion started by: wkbn86
3 Replies

3. HP-UX

WinRAR files are corrupted after FTP

In my Windows 2003 server machine I have a winrar or winzip file that i around 3GB. This zip/rar file is ftped to a unix mahine (HPUX) . FTP is successful. But when it get this file to check if its has been ftped correctly, the file is corrupted. Is there something wrong that i am doing while... (4 Replies)
Discussion started by: maroli
4 Replies

4. Solaris

PAM login library files corrupted, have ILOM, can I get root?

I was installing sfw sudo and its dependencies (libiconv, libintl, libgcc)on Solaris 10, running on an x86 x4200 and I corrupted some PAM library files. It's a standard Solaris 10 base install, with some added software & libraries from a vendor. I am on console trying to get root access back,... (1 Reply)
Discussion started by: Mariognarly
1 Replies

5. Shell Programming and Scripting

Fixing corrupted vcard files.

KDE's Kontact PIM breaks quoted-printable vcard files because it linebreaks in the middle of a word. Take this text for example: NOTE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D7=A9=D7=95=D7=A8=D7=94 =D7=A 8=D7=90=D7=A9=D7=95=D7=A0=D7=94.\n=D7=94=D7=A9=D7=95=D7=A8=D7=94 =D7=94=D7= ... (7 Replies)
Discussion started by: dotancohen
7 Replies

6. UNIX for Dummies Questions & Answers

Extracting files from corrupted tape

I've got a backuptape in cpio format that was accidentally overwritten with a very small batch file. As I assume that the cpio header has been overwritten, I cannot extract files from the backup in the conventional manner: ( cpio -itv </dev/rct0 cpio: this is not a cpio file, bad header) ... (0 Replies)
Discussion started by: mart4179
0 Replies

7. HP-UX

Could be a corrupted file?

Hello! Do you know the meaning of... "crw-rw---- 1 informix informix 64 0x020001 Jan 21 2004 rifxroot" I don't know what the first "c" means. Furthermor, if I try to copy this file (rifxroot) it appears a message: "cp: cannot open rifxroot: No such device or address" I don't... (1 Reply)
Discussion started by: kaugrs
1 Replies

8. AIX

LV corrupted

I'm getting the following error after we replaced a failed disk in a mirrored logical volume. We cleared the device entry in ODM before adding the new disk but when we create the mirror we get the following error after running lslv. 0516-022 lslv: Illegal parameter or structure value.... (1 Reply)
Discussion started by: Alfredo Jimenez
1 Replies

9. SCO

kernerl corrupted

hi , how do i get boot on sco5.04 if it has a kernel corruption . and no kernel backup . is there any option on the boot : before i hit enter ? thx art :) (3 Replies)
Discussion started by: art_malabanan
3 Replies

10. UNIX for Dummies Questions & Answers

Corrupted files from Windows to Unix Sco

I downloaded some applications from CD on a windows2000 PC to a Unix Sco machine using the WS-FTP program. When I tried to run the applications on the Unix machines I got an error. The files must have been corrupted in the process of transferring files from a Windows 2000 to a Unix Sco... (9 Replies)
Discussion started by: BAM
9 Replies
Login or Register to Ask a Question