Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 votes
1 answer
64 views

Grep inserting file names from working directory

I have script to do a few jobs: list config XMLs. list which of those XMLs have a match. show what that match is. JENKINS_HOME=/var/lib/jenkins _ALL_JOBS=$( find $JENKINS_HOME/jobs -name config.xml ...
user avatar
  • 1
0 votes
1 answer
46 views

Is it safe to interrupt a write to a file (with Python)?

Is there any risk related to interrupting a write to a file? Be it closing a GUI program in the middle of a write, keyboard interruptions, what have you. My main concern is that it might corrupt some ...
user avatar
0 votes
0 answers
11 views

Decrypt USB Expansion (something happened while using "Disks")

New user of Ubuntu 20.04 here and royally messed up already. I apologize but I need someone with patience to support and hopefully help me. I used a Seagate harddisk to backup my files from the ...
user avatar
  • 1
0 votes
0 answers
12 views

What routine operations have the potential to impact the partition table

I've observed a very strange, and intermittent problem on my desktop which has been running arch linux with a cinnamon desktop environment since 2013. 3 times in the last 5 months (and never to my ...
user avatar
  • 111
0 votes
2 answers
21 views

Modifying files on partition mounted both on host and in KVM guest, understanding the caused corruption

I have a server to which I added two SSDs. On the host I created a RAID 1 with both of them by using mdadm. The RAID was created by first creating partitions on the SSDs, and using the partitions to ...
user avatar
  • 571
0 votes
1 answer
13 views

mate-screenshot 1.26.0 suddenly producing corrupt screenshots?

Looking for first steps to diagnose this strange change in behavior: If I launch mate-screenshot and choose Copy to Clipboard, no program will paste the image, including: The StackExchange form I'm ...
user avatar
  • 1,659
2 votes
1 answer
64 views

How to purposefully corrupt/break a USB drive for testing?

I am going to be testing user flows that use USB mounting/unmounting and file placement on a USB on a Linux based machine. One of our use cases is to notify the user if the USB device they have ...
user avatar
  • 745
0 votes
0 answers
31 views

Is there any tool to verify full checksum of a local Debian mirror repository?

We have a local server acting as local Debian mirror repository (for main contrib non-free). We used apt-mirror to sync it. Is there any way to run a routine full scrub or checksum validation for all ...
user avatar
0 votes
1 answer
36 views

Damage Source File due to Cancelling Copy Paste

I was copying some 20gb of important documents to my usb drive from my mac. The process got stuck midway and I had to cancel the copy paste operation. Second time doing so the usb drive got ejected by ...
user avatar
1 vote
0 answers
90 views

Do BTRS errors always mean a drive is dying?

I believe my drive might be dying but I'm getting contradictory feedback. The drive is a XPG Gammix AGAMMIXS11P-1TT-C S11 Pro 3D NAND PCIe NVMe Gen3x4 M.2 2280 SSD 1To. I'm using Fedora (34 at first, ...
user avatar
  • 11
13 votes
2 answers
1k views

Bit Rot within LUKS Encryption

How does bit rot affect a LUKS container and the filesystem inside? Suppose you have a filesystem that is well suited to deal with bit rot. Now put it inside a LUKS container. In case bit rot ...
user avatar
  • 247
0 votes
0 answers
76 views

Corrupted root file system

/dev/sda4 contains a file system with errors/ check foced. /dev/sda4: Inodes that were part of a corrupted orphan linked list found. /dev/sda4: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., ...
user avatar
0 votes
1 answer
48 views

Conversion of files into directories, and the possibility of changing them back

Basically what happened is due to a known bug with duplicity I had to manually extract the difftar archives (Difftarchives?) Imagine my shock and slight horror when I saw that many files that ought to ...
user avatar
1 vote
1 answer
33 views

My external HD corrupted after forced reboot

After update kernel, I forced reboot and canceling jobs what running in shutdown. The external hard drive is corrupted and does not display in /dev. Relevant information in log: [sda] 0 512-byte ...
user avatar
0 votes
0 answers
30 views

Cannot recognize an old external usb harddrive

I want to check the content of an old external harddrive and probably delete it all (and maybe overwrite it) before throwing it away. Maybe it's not even worth checking the content and just straight ...
user avatar
0 votes
0 answers
94 views

Linux Mint sees Windows but update-grub won't update - possible corruption

On dual boot machine, I suddenly could not boot into windows 10 and grub loader no longer was loading. I reinstalled Linux Mint 19.3 Tricia. Now I'm trying to add Windows to grub, which is on sda1. ...
user avatar
  • 101
0 votes
0 answers
35 views

ddrescue with gap + combine gapped images to one

Followup to ddrescue generate mapfile on partial image after cat --generate-mode Did various attempt with ddrescue. For example: ddrescue --no-scrape --sector-size=512 --input-position=900GiB /dev/...
user avatar
  • 23
2 votes
1 answer
146 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 ...
user avatar
  • 23
0 votes
0 answers
178 views

Arch Linux display Xorg not function at all, but Wayland does (very poorly). Corrupted Xorg files from mirror?

Hello fellow Linux users, I recently purchased an old laptop and decided to try Arch Linux. I bought it to see just how well Arch is for a system and also due to the fact of my main PC's HDD is giving ...
user avatar
0 votes
1 answer
72 views

dd command ruining files [closed]

I recently was trying to flash from an IMG file with dd, and it took a lot shorter than normal, and when I checked the drive, it had names like \u2584\u00bc\u2591+\u03c6\u256bv\u2559.| I don't know ...
user avatar
  • 1
1 vote
1 answer
80 views

Modify the data type from .tar file and how to recover a corrupted one

Like the original question bellow, I need to recover a corrupted tar file. But after run: file file.tgz I got this return: file.tgz: data My question is about this return above and how to change ...
user avatar
0 votes
1 answer
28 views

Should I check for filesystem corruption?

I have a Linux Mint laptop with a faulty charger and bad battery life, and sometimes it abruptly turns off without shutting down. I haven't noticed anything different, but should I check for ...
user avatar
  • 173
0 votes
1 answer
151 views

Mounting parts of root filesystem read-only

I have an embedded device that I want to harden against data corruption due to unexpected power outages. It is a vanilla Ubuntu 20.04 LTS build with an app in a docker container on top, and I have ...
user avatar
1 vote
1 answer
186 views

Rebuilding directory tree (and/or inodes)

Problem My Armbian based Orange Pi webserver crashed (probably because of a power loss). I thought it would be fine since ext4 is more resilient and it usually has been in the past, but for some ...
user avatar
  • 143
0 votes
0 answers
120 views

XFS and zero bytes files

I am trying to establish what has happened to my data. Before I go into the history, can anyone explan the discrepency between these two outputs; # du --si /var/media/footage/k0/09/99/88 1.6G /var/...
user avatar
  • 1
2 votes
0 answers
67 views

Restoring data from corrupt btrfs RAID 1

I had a BTRFS RAID 1 array that I was storing my data. I had accidently reformatted as an RAID 1 using MDADM, before I noticed my error unmounted everything. Now my tree seems to be corrupted, I'm ...
user avatar
11 votes
1 answer
1k views

Is it safe to boot computer that lost power while suspending to disk?

I have computer with battery power supply that allows running the computer for approximately one minute after power loss. I want to trigger suspend-to-disk immediately after power loss so it can be ...
user avatar
  • 782
0 votes
2 answers
192 views

Ext4-fs error dm-3

I tried to re-mount a LVM: mount /dev/vg1/lv1 /home buty I got this message: [409104.164857] EXT4-fs (dm-3): VFS: Can't find ext4 filesystem [409104.165223] EXT4-fs (dm-3): VFS: Can't find ext4 ...
user avatar
0 votes
1 answer
367 views

exFAT Refusing to mount - The primary GPT table is corrupt

I am trying to mount a 4TB exFAT HD on my Manjaro Linux 5.9.11 system. It refuses to mount using the default kernel drivers: mount: /home/user/Ark: wrong fs type, bad option, bad superblock on /dev/...
user avatar
  • 156
2 votes
0 answers
498 views

BTRFS critical (device sda): corrupt leaf after mounting on Windows with WSL2

My question is as to the correct steps to attempt a fix of my BTRFS system, the possible cause and the place to report the problem. The Story I was playing around with the new Windows Insider Build ...
user avatar
  • 156
1 vote
0 answers
368 views

Corrupted Linux partition after move+resize job, no backup. Any advice?

TLDR: I stupidly corrupted part of my partition table after a move+resize job. I don't have a backup for the table or the data. What would you recommend to restore the partition table? I'm ready to ...
user avatar
  • 111
2 votes
1 answer
726 views

How does btrfs prevent data corruption without journaling?

According to this page, filesystems like ext4 have journaling for both blocks and metadata, and it's used to prevent data corruption: A journaling file system is a file system that keeps track of ...
user avatar
  • 143
0 votes
0 answers
57 views

ZIP file not opening (corrupted)

I have been tasked with fixing a corrupted zipfile - the clue I have been given is to change its file header. I looked at the hex bytes using gHex and changed 50 4B 05 06 to 50 4B 03 04 but it's still ...
user avatar
0 votes
1 answer
539 views

I corrupted a linux luks partition and get initramfs at startup with no error msg

I have searched for like 10+ hours for this issue and have not found a fix so here I am :/ Long story short I corrupted my main linux boot drive (which has luks encryption) by downsizing it on a live ...
user avatar
  • 1
1 vote
1 answer
1k views

How to fix ext4_free_inode corrupt filesystem?

I got a RPi4 with an external hard drive, it had a kernel panic ---[ end Kernel panic - not syncing: Attempted to kill init! I pulled the plug on it and on restart I'm getting a bunch of filesystem ...
user avatar
  • 121
0 votes
0 answers
259 views

Faster way to find corrupt files on Linux

I need a rapid method to list corrupted files on my HDD. So far I tries these commands in a 6.7GiB folder before doing this on the root of the data filesystem : $ time $(which grep) -a -r . ./ 2>&...
user avatar
  • 1,237
1 vote
1 answer
920 views

BAD signature when installing specific package with apk after forced poweroff

Earlier I was playing around with my PinePhone running postmarketOS Edge (based on Alpine Linux Edge) and while installing gcc-go using apk via the command sudo apk add gcc-go the phone froze. As such,...
user avatar
  • 514
0 votes
1 answer
186 views

Need help restoring a corrupted folder

I have a mechanical hard drive that I was trying to access files on. I bought a cheap SATA to USB adapter. Said adapter was underpowered, and I could hear the platter revving up and down. I made the ...
user avatar
0 votes
0 answers
132 views

LM 20 Win 10 dual boot going read-only and corrupting filesystem

I've been having trouble with my dual boot (win 10/LM20) install that are just driving me crazy. Here's a summary of the diagnosis I've made so far Install windows 10 making a partition for Linux ...
user avatar
3 votes
1 answer
1k views

Btrfs, checksum corruption

I have Btrfs setup on 3 disks with metadata and data in RAID1. But now I have a checksum error which it cannot recover. The checksum is the same on both copies and only differs from the expected ...
user avatar
  • 31
0 votes
1 answer
61 views

Check installed packages + check effective deployement of packages [to detect problems caused by memory corruption]

My computer has a flawed memory stick for two years and I can't correct this (sticks aren't removable and computer cannot be changed : so it won't be the subject). Sometimes a content is corrupted ...
user avatar
  • 729
2 votes
1 answer
259 views

Corrupt BIOS hw-PMU resources CentOS 7 Hp Proliant 310 but boots successfully

I just installed CentOS 7 on my HP Proliant 310 Gen8 Server. Everything looks fine, except the line of corrupt BIOS when CentOS is booting [Firmware Bug] The BIOS has corrupted hw-PMU resources (MSR ...
user avatar
  • 51
1 vote
1 answer
99 views

Can a file disappear from an ext4 partition if an application was using it?

A Passwords file was in use by KeePassXC. After restart, file is gone. Normal operation is: File is open and when system gets rebooted, it closes it safely (so far). Keepassxc always always autosaves. ...
user avatar
  • 163
0 votes
0 answers
111 views

Corrupted LUKS2 /home partition

My /dev/sdc drive got corrupted by a dual boot windows missclick. I must have corrupted the partition table as far as I know. As most fora suggest I used testdisk to analyse and rewrite the GPT and It ...
user avatar
  • 1
0 votes
0 answers
63 views

Get data from corrupt lz4 tar archive

I have a tar, that somehow got corrupt. I very much need some certs and config files I backed up using said file. Problem is, there's a corrupt folder in the archive and tar bails after hitting it. Is ...
user avatar
5 votes
0 answers
2k views

How dangerous is "Free blocks count wrong"?

I ran fsck in read-only mode and got some errors like this : Free blocks count wrong (5597728, counted=5231480). Fix? no As stated here : Free Block Checks Free blocks are stored in the cylinder ...
user avatar
1 vote
1 answer
727 views

Are there benefits in using Btrfs in a non-RAID setup compared to conventional filesystems?

Some installation guides recommend using Btrfs for a single root-partition in a non-RAID setup. Are there any advantages in using Btrfs instead of conventional filesystems (Ext4 / XFS) on a single ...
user avatar
0 votes
1 answer
113 views

Delete (corrupted?) directory?

I have an Ubuntu 16.04 with a cephfs mount shared with another 2 Ubuntus. There is a folder inside the cephfs mount that won't answer to any command (ls, cd, rm, du...). So I guess it's corrupted or ...
user avatar
4 votes
1 answer
189 views

Failed to move a 7z Archive, now it can’t be read, but there is a fragment left in the original location named .part

I was trying to move my old 7z archive from an older ext4 partition to my current one, but in the process it randomly seems to have cancelled. Not only does the new location possess an incomplete ...
user avatar
1 vote
1 answer
191 views

How to repair Corrupted jpeg file that still get their thumbail done correctly?

I've got a bunch of photos that were on an SD card. Most of them are corrupted now, I cannot open them in any program (Gwenview, Gimp, on windows too...) But every file browser still can correctly ...
user avatar