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
vote
1answer
38 views

How to explain this? Superblock corrupt in SSD

I got a file system corruption from a sudden power loss. During boot, it reported following error. error: unknown filesystem. Entering rescue mode... grub rescue> _" The board is an Intel ...
0
votes
0answers
23 views

Intermittent screen corruption after boot

Running Arch Linux. Every now and then when it is booting (after a line has been selected in Grub), it will display some boot messages as normal, but then display something like this: I suspect it ...
1
vote
3answers
82 views

How to delete unknown file that doesn't have proper permissions

My co-worker sent me a theme in a tar.gz file and I tried unzipping it using the archive manager GUI as I usually do for any kind of zipped file. However, it produced a corrupt file/directory that I ...
0
votes
0answers
47 views

How do I repair an ext3 filesystem (superblock)?

Disk setup (2) 300GB HDDs in RAID 1 /dev/sda1 - ext3 /boot (1GB) /dev/sda2 - swap swap (20GB) /dev/sda3 - LVM (179GB) (2) 500GB HDDS in RAID 1 /dev/sdb1 - LVM (500GB) LVM - System (...
1
vote
1answer
57 views

What are btrfs generation_errs?

I have a btrfs file system that I've scrubbed a few times and found some errors. If I check the device status I see that I have generation_errs: $ sudo btrfs device stats /dev/nvme0n1p5 [/dev/...
0
votes
2answers
45 views

Extracting DDrescue image file after pass 1

I am trying to recover data from a failing usb hard disk using ddrescue. I ran ddrescue for about 4 days at the end of which it completed pass 1. Sometime after it began with pass 2, I interrupted the ...
1
vote
1answer
65 views

apparmor: mysql permissions--with no recent changes

UPDATE: I now know my issue was database corruption, but discerning it was somewhat tricky--apparmor appeared to be the cause for longer than it should've. I didn't note when first posting that even ...
4
votes
1answer
92 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 empty)....
1
vote
0answers
267 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
46 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. ...
8
votes
1answer
139 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 linux/drivers/md/raid5.c:...
0
votes
1answer
38 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?
1
vote
2answers
186 views

Getting list of corrupted file from folder and its sub folder

I have following directory structure folder └── 01 ├── test1 └── abc.bz2 └── asd.bz2 ├── test2 └── 546.bz2 └── alsj.bz2 ├── test3 └── aewr.bz2 ...
15
votes
1answer
749 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 ...
0
votes
1answer
40 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
87 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
144 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
94 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 ...
3
votes
1answer
394 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
63 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
1answer
2k 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
62 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
166 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
448 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 ...
0
votes
1answer
126 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 ...
0
votes
0answers
76 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
284 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 ...
1
vote
1answer
348 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 ...
2
votes
2answers
123 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 ...
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). ...
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
321 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
410 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
76 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 ...
1
vote
2answers
766 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: ...
3
votes
0answers
570 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
446 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
307 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 ...
4
votes
1answer
461 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 ...
7
votes
2answers
8k 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.
1
vote
1answer
167 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
493 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
251 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
382 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
567 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 ...
4
votes
0answers
203 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 ...
4
votes
2answers
14k 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 ...