Corruption is a state of a file, a filesystem, etc. where all its data and metadata are not consistent. This tag may be used to reference questions dealing with problems of data recovery after erroneous manipulations or unexpected shutdown.

learn more… | top users | synonyms

-1
votes
0answers
10 views

List files in unmountable but recoverable BTRFS partition

I have a NAS running Debian with an unmountable BTRFS partition on RAID5. I do not know the exact cause of the probem and Googling the errors from the logs leads no results. Apparently ...
1
vote
2answers
605 views

Unzip error, is recovery possible?

I compressed 4 separate folders with some wedding videos (!!) a few months ago. Today I tried to unzip them, and had no problem with the last 2, but the first 2 of them show an error: ...
0
votes
1answer
115 views

How to fix ntfs file problem when there is now windows?

I have a "stubborn" file on an NTFS partition which refuses to be deleted. A little background on the problem... Problem happened when I was running Zim on my Linux and the system froze due to some ...
4
votes
1answer
73 views

What is using trillions of inodes on my almost empty server? [closed]

I have 18446744069923968593 inodes (which seem really too much) and much more problematic: I have 18446744069414835186 used so the system won't create any other file (even if the disk is almost ...
1
vote
0answers
99 views

Wrong inode: corrupted f2fs, fsck.f2fs cannot repair

A f2fs partition on my Android phone has recently become corrupted. It will still mount fine; however, I completely lost access to one directory (/data/media/0), which now shows as empty. Yet the disk ...
0
votes
1answer
40 views

How to recover after messing with hard drive during mid-session sleep? [closed]

I need help recovering from a stupid mistake. I was using an old laptop hard drive to evaluate a Linux distro (PCLinuxOS), and have invested some time in customizing it or I would just start over. ...
5
votes
0answers
48 views

md raid5: translate md internal sector numbers to offsets

TL;DR summary: Translate an md sector number into offsets(s) within the /dev/mdX device, and how to investigate it with xfs_db. The sector number is from sh->sector in ...
1
vote
1answer
311 views

find the cause of file corruption when copying files to a network share on an Ubuntu machine

I am copying files from my SD card to my Ubuntu server via Windows 7 using a network drive. The problem is that sometimes, 2 files out of 150, are corrupted during transfer. See here 2 example files ...
0
votes
1answer
28 views

What is the switch or option of rsync command inorder to skip the backup of corrupt files? [closed]

What is the switch or option of rsync command inorder to skip the backup of corrupt files so that it does not overwrite good files?
6
votes
2answers
7k views

Is there a command line method by which I can check whether a downloaded file is complete or broken?

I'm writing a script that involves downloading and manipulating a file, and I want to ensure that the file is not incomplete (due to e.g. a dropped connection) before I work on it.
0
votes
0answers
7 views

Installed mint 17 onto troubled windows 8.1 wasn't given option to install alongside

Quick background: Asus notebook 8.1 installed dropped and windows became grueling slow to the point couldn't get it fully booted. Would hang on login. Attempted all I could find and decided to see if ...
1
vote
2answers
88 views

Getting list of corrupted file from folder and its sub folder

I have directory say folder which has sub-folders according to date like 01, 02, 03 and so on and each sub-folder has four directories called test1, test2, test3, test4 and all this directory contain ...
2
votes
2answers
1k views

ext4 corruption found in superblock, but filesystem can be mounted

After a crash, I've got an Ext4 filesystem (on an LVM LV) that gives the following error when running fsck.ext4 -nf: e2fsck 1.42.12 (29-Aug-2014) Corruption found in superblock. (blocks_count = 0). ...
3
votes
2answers
512 views

Static files give ever changing checksum value on Linux

When I cksum large files (150MB) they will often report different checksums on each call. $ cksum test3 1233504235 170213376 test3 $ cksum test3 825031809 170213376 test3 $ cksum test3 189847968 ...
15
votes
1answer
710 views

create a corrupted FAT file system

I have an application which will search for a corrupted FAT file system and repair it. For testing the application I will need a corrupted file system. What is a good and reproducible way for ...
7
votes
5answers
11k views

How to recover a corrupted “tar.gz” file

I suddenly needed to recover an old tar.gz file, but as soon as I execute so: tar -zxvf filename.tar.gz I get this: gzip: stdin: invalid compressed data--format violated tar: Child returned ...
3
votes
1answer
240 views

ZFS disabling sync writes on dataset

I have a freenas box that I use to back ESX VMs to but don't have a SLOG yet and thus speed is poor due to ESX pushing sync writes to the NFS store on my freenas box. If I created a separate ...
0
votes
1answer
33 views

How to recover a node/content from a tarfile that's been overwritten

Disclaimer: I'm not very good at writing questions, and mine is a very specific scenario. So I'm just going to jump straight into the situation: I was browsing my filesystem, and somehow managed to ...
2
votes
1answer
69 views

Disappearance of files in all ext4 filesystems of a Debian server

Apparently the disappearance of files and directories occurred in all ext4 filesystems, including files and directories usually "read-only" in /var and /usr, like binaries installed for gcc, and ...
2
votes
0answers
104 views

DPKG Status Corrupted

My Ubuntu system has been giving me trouble whenever I try to install or uninstall or update software using apt-get. Whenever I run these commands it returns an error with regards my status file. The ...
1
vote
1answer
70 views

ddrescue image too large

3Tb HDD is corrupt. I tried using ddrescue to create an image and a logfile on another 3TB HDD (only one I had). I got a write error after about 2.7T (actual capacity of the 3TB). Image file and log ...
2
votes
5answers
23k views

SD card corrupt and stuck at 32MB, any way to fix it?

Using the Linux area since I'm using Linux apps and utilities. My phone crashed (several times) and managed to corrupt my microSD card. It no longer appears to have partitions and shows as 32MB ...
0
votes
1answer
50 views

Recover local corrupted file

I sorry if this has been asked before but I couldn't find an answer looking through. I have a file which became corrupted on my computer and I need it back if at all possible. I am using Linux Mint ...
0
votes
2answers
1k views

Cannot format a corrupted 32Gb SD card

I cannot format a corrupted Sandisk SDHC ULTRA 32Gb micro card. So I used gparted in an Ubuntu system. I deleted the partition (/dev/sdf1), recreated it and formatted it in fat32. It still keeps its ...
18
votes
6answers
2k views

How to corrupt an archive file in a controlled way?

I wrote a function that checks for a corrupted archive using a CRC checksum. To test it, I just opened the archive and scrambled the content with a hex editor. The problem is that I do not believe ...
0
votes
0answers
54 views

My ext4 partition is corruption-prone possibly because of suspend

I'm using an encrypted ext4 main partition on a Lenovo i7 laptop running Ubuntu 14.04 LTS, currently using the 3.13.0-53-generic x86_64 kernel. After running for multiple weeks without shutting down ...
0
votes
0answers
135 views

I can fix/repair small damaged tar.gz files using fixgz but it doesn't work on bigger files

The title tells it. I have some damaged .tar.gz files, most of them are pretty small (smaller than 1-2gb) but 4 of them are bigger and fixgz cant fix them, when i run fixgz for those big files, it ...
1
vote
0answers
11 views

How to recover data after memory module errors [duplicate]

My linux PC has suffered the occasional application crash, desktop crash, and kernal panic over the last few months. I also started noticing error dialogs on login, and some parts of the desktop do ...
2
votes
4answers
411 views

Prevent file corruption

I have an application that write files into a specific directory at the FS. This system, under no circumstances, can lose a single written file. When I have some problem at the HD, like badblocks or ...
4
votes
1answer
420 views

RAID6 scrubbing mismatch repair?

You can initiate a scrub of a mdadm array with echo 'check' > /sys/block/mdX/md/sync_action, and if a bad sector is found, it'll rewrite it automatically (from a mirror or from parity information ...
0
votes
0answers
69 views

Conceptual question about data corruption and mounting

If we have a partition /dev/sda1, and mount it to a mount point (i.e. /mnt), we can then use the files and folders under /mnt. Before changing the partition /dev/sda1 I umount /mnt, and then perform ...
1
vote
1answer
216 views

File corruption using rsync, multiple rsync processes, moved/renamed source file

I'm encountering some file corruption when using rsync (that is, the file contents do not match the source file). I can understand the file becoming corrupt if it is being written to while being ...
4
votes
2answers
12k views

Short read while trying to open partition

On my personal home computer running Kubuntu Linux 13.04 I'm having trouble mounting a partition that is very dear to me. My backup policy is to perform a backup about monthly, so I do have a backup ...
2
votes
2answers
113 views

Why can I rest assured that GNU Parted has not corrupted a single bit after shrinking my partition?

I shrunk my root partition and it seems nice. But I am thinking about overwriting now at least the most important files from the backup copy (external drive, rsync, weekly backup) in order to be sure ...
0
votes
1answer
2k views

xfs_repair does not repair the filesystem according to xfs_repair -n

I've got a filesystem that, after a crash, is corrupted according to xfs_repair -n. As stated in the xfs_repair man page, xfs_repair -n exists with a return status 1 if corruption is detected. So I ...
0
votes
5answers
244 views

setuid (and other) permissions lost when copying / elsewhere - what to do?

I sort-of-cloned an existing Debian 7.x distro by copying the contents of the root filesystem (not the special dirs of course) to another HDD. I booted, things seem to run, but - I get some weird ...
0
votes
0answers
367 views

Repair or recover seemingly damaged partition on USB external disk

A friend brought this WD My Passport external harddrive to me to see if I could recover her files. The device is "not working" after a power outage. As per her testimony, when the device is connected ...
1
vote
0answers
75 views

Shared NTFS partition conflict, files written under Debian gone

I have a dual-boot W7-Debian Jessie on my laptop, and a NTFS partition initially left for sharing data between OS and keeping big files. With myself getting used to Linux, rebooting to windows became ...
3
votes
0answers
541 views

Which file system (among XFS, BTRFS and EXT4 only) does provide the best data resilience to disk corruption? [closed]

Question: Given these three filesystems: XFS, BTRFS and EXT4, I'm wishing to know which does provide the best data resilience to data corruption in a setup without RAID. And, of course, why? ...
4
votes
1answer
405 views

Simulate bitrot/corrupt files (for BTRFS)

Is it possible to intentionally corrupt a file so that BTRFS will report a checksum error? I want to test a script that's supposed to find file names with checksum errors, but I don't have any corrupt ...
0
votes
1answer
274 views

Can a file be corrupted by copying from NFS to CIFS?

I have Linux RedHat 6.x, and I mounted a Windows 2008 R2 NFS share. If I copy data from my Linux machine to Windows, that doesn't seem like any harm. But if I take that file that is in my exported ...
1
vote
1answer
155 views

How can I determine the cause of CF card corruption?

I installed qnx in my CF card and made it bootable and it was working well. However, yesterday it stopped working while my system was running. Checking the filesystem revealed that it was corrupted. ...
1
vote
1answer
464 views

Files that do not exist, prevent me from deleting them, corrupted filesystem

Well... It's about on an OS X system (hfs+), but that's unix after all to. :p system has become unbootable, due to a filesystem error... fsck.hfsplus fails because .... ... ** Checking ...
1
vote
1answer
233 views

Recovering Mojibaked Files

I have recently been encountering several broken files whose contents got thoroughly baked in conversions between UTF-8 and ISO-Latin-1. How can I repair these files? The process that created the ...
2
votes
1answer
361 views

Recursively find and move corrupted PDFs

The Issue I was using python-skydrive to download files to my PC, and I accidentally corrupted a good amount of my PDF files. When I try to view them in Document Viewer, I get the following error ...
1
vote
0answers
1k views

Recovering files from partitions at a corrupted SD card?

I got a problem with my SD card which had got Raspbian. Everything seemed to be ok while working with the raspberry. I inserted it to my laptop running Ubuntu 12.04.4 to fetch some files. It first ...
9
votes
3answers
522 views

Is there a risk of data corruption if suspended laptop runs out of battery?

I often tend to just put my laptop on suspend using xfce4-power-manager, and although usually the battery is sufficiently charged up until the next time (when I plug in the charger), sometimes I ...
3
votes
0answers
196 views

Do ext(4?) filesystems intrinsically store newer data in a fashion that is more prone to corruption?

I recently had a corrupted ext4 filesystem throwing these errors: kubuntu@kubuntu:~$ sudo mount -t ext4 /dev/sdc2 c1 mount: wrong fs type, bad option, bad superblock on /dev/sdc2, missing codepage ...
0
votes
1answer
192 views

System crashes during boot while mounting /lib/init/rw

After a nasty crash, my system keeps crashing during boot. After a little bit of investigation I have discovered that it crashes executing the following function (in /lib/inin/mount_functions): ...
0
votes
1answer
431 views

ZFS on Linux gets corrupted on export [closed]

Edit: I am not using Sabayon Linux anymore. I suggest to close this question. I just started experimenting with ZFS on Linux. I use Sabayon Linux with kernel 3.8. I used a whole single USB disk to ...