Questions tagged [corruption]

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.

Filter by
Sorted by
Tagged with
30
votes
5answers
16k views

Do journaling filesystems guarantee against corruption after a power failure?

I am asking this question on behalf of another user who raised the issue in the Ubuntu chat room. Do journaling filesystems guarantee that no corruption will occur if a power failure occurs? If this ...
13
votes
6answers
42k 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 ...
8
votes
1answer
894 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:...
18
votes
3answers
63k views

How to check if a file is corrupt or not?

Are there any general solutions to check if a file is corrupt or not? For example, whether a video file is bad, or a compressed file is corrupt, etc.
9
votes
2answers
52k 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 ...
7
votes
1answer
428 views

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

I recently had a corrupted ext4 file system 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 ...
5
votes
2answers
3k views

Launching Windows corrupts ext4 partitions

I have been using a Windows 10, Arch Linux, and Ubuntu triple boot for the last year without any problems. However, last week something weird started to happen. First, let me give the output of fdisk -...
3
votes
2answers
4k views

Finding corrupted files

I have a directory that have zillions of files. As soon as I try to copy this directory, I receive a message that a file could not be copied (corrupt ?) and the copy stops. Is there any command I ...
2
votes
2answers
7k 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). ...
1
vote
1answer
902 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
2answers
10k views

"Either the superblock or the partition table is likely to be corrupt!" after partition resized

I used KDE's partition manager tool from the Manjaro live CD to shrink my existing Linux Mint partition and create another one to install Manjaro. This went fine, however, it looks like my Linux Mint ...
2
votes
1answer
23 views

ddrescue generate mapfile on partial image after cat --generate-mode

Having a HDD of 1TB (931.5G). I did: sudo sh -c 'cat /dev/sdf >disk_1t.img' But it stopped with read error at 908G. Thought next step, (should have been first), is to use gnu ddrescue. Problem is ...
1
vote
1answer
276 views

Is using rsync safe to source files if they being updated?

I'm trying to determine if rsync can possibly corrupt source data during a copy. I understand that the if the source file is being modified, deleted, renamed, etc, rsync may produce a corrupted ...
0
votes
1answer
124 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 ...