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
0 answers
24 views

How do I fix a corrupted file system?

My NAS went offline today. I could not even boot up. I have extracted the OS drive (Debian Bookworm) and plugged it into my laptop via an adapter. I failed mounting it, with the error: unknown ...
Sandrew Cheru's user avatar
0 votes
1 answer
38 views

How to repair this problematic hard drive?

I have a WD 1.3 TB hard driver, it might have some bad sectors. I plug it in the Raspberry Pi and partition the disk with following commands sudo fdisk -l /dev/sdb, then g, n, w to create the new ...
Kejing Gu's user avatar
2 votes
1 answer
145 views

rsync --recursive --ignore-existing: what (if any) additional flags are needed to resume/repair/overwrite any partially copied files?

Assume an rsync --recursive --ignore-existing foo bar copy command was being run for a large directory tree named foo, but that that command got prematurely interrupted. For example, because of a ...
Will's user avatar
  • 125
5 votes
2 answers
127 views

What can cause “multiply claimed blocks” on an ext4 drive?

“Multiply claimed blocks” is an error reported by fsck when blocks appear to belong to more than one file. This causes data corruption since both files change when one of the files are written. But ...
PetaspeedBeaver's user avatar
0 votes
0 answers
51 views

FileSystem becomes read-only on Samsung HDD

I have a issue with my btrfs filesystem it boots fine, but some time during usage while running some programs it suddenly gives this error in the terminal. I/O error brfs unable to open /dev/sda5 read ...
geek's user avatar
  • 177
0 votes
0 answers
110 views

Debian installation is emergency mode, how to recover data and create a new installation with previous installation's apps and data?

I'm using a Raspberry Pi as a home media server, and it has been in emergency mode for a while. Despite being in this mode, it continues to function normally. My question is, is there an effective way ...
Jimmy Bungalo's user avatar
0 votes
1 answer
103 views

What files can an XMP-enabled RAM corrupt, if the RAM fails Memtest?

Background: I purchased a new computer, and during the past two months, I experienced the computer freezing, thrice. When it freezes, I have no option other than to reboot the computer. last -x showed:...
Nav's user avatar
  • 379
0 votes
1 answer
182 views

Is there a case where Applications need to do it's own File corruption checks with file systems like EXT4 and XFS and recent Linux OS like Red-Hat 8

What I presumed is File systems like EXT4 and XFS. Writes blocks to disk (Could be a Hard Disk or a SSD) along with a checksum. When Reading back, if checksum fails, read operation will NOT return ...
aKumara's user avatar
  • 111
0 votes
1 answer
304 views

Open corrupted JPEG files (differently corrupted, missing data in the middle, missing headers) and try to recover the intact portions

Using ddrescue I rescued most of an old harddisk and afterwards recovered files using photorec. There is plenty of photos fully restored, which is great. But there is also plenty of broken JPEGs that ...
M. Schmidt's user avatar
0 votes
0 answers
99 views

Corrupted EXT4 filesystem on embedded Linux (A20 Olimex Lime 2) with clean poweroff

Context I'm here to talk to you about an EXT4 filesystem issue that I don't understand. In my company, we are working on embedded Linux system. We use the board Olimex Lime 2. T2-OLinuXino-LIME2-...
Julien's user avatar
  • 1
0 votes
0 answers
36 views

BTRFS folder suddenly shows up as a file

So, I have a BTRFS drive and a folder that contains videos from my capture card moved to a folder on the drive. I was trying to check what videos were in the folder and went to cd into it, but instead ...
Eduardo Perez's user avatar
0 votes
0 answers
43 views

Ubuntu and other software completely unable to detect a usb drive

I was attempting to flash a USB drive so that I could install Windows on a different HDD, but in the process, it became completely unreadable. So now whenever I try using it it does not appear in any ...
Is Linus A Instrument's user avatar
0 votes
0 answers
18 views

Corrupted display in mint linux thinkpad X240

Good day to all of you, I had this problem with manjaro, I erased my disk afterwords and installed mint, I encountered it again after a shutdown. It's a startup with X cursor shape and no basic window ...
industrious's user avatar
3 votes
2 answers
184 views

Is there a filesystem that can maintain extra ECC data like raid5, but in the filesystem to make a fault-tolerant single external drive?

Normally to make a fault-tolerant or corruption-repairing filesystem, you use multiple drives and raid 5, or anything but raid 0. There are also many ways to make a fault-tolerant archive file like ...
Brian White's user avatar
0 votes
1 answer
869 views

Unable to format my USB Flash Drive after installing a Distro to the drive itself

This may sound stupid, and it is, I installed a distro directly into my flash drive, after checking everything worked I loaded kali liveUSB to try and format it back to it's original size, however ...
Nnss's user avatar
  • 1
2 votes
0 answers
112 views

zfs scrubbing not detecting corruption in backing store - why?

A bit of background: I am storing VM images, my home directory, my mail, my media collection on single-primary DRBD devices built on LVM logical volumes built on two RAID0 arrays (one in each DRBD ...
Alexis Huxley's user avatar
1 vote
0 answers
115 views

badblocks stuck in a loop?

I'm using a program called badblocks to scan disks for errors, and I'm finding that it sometimes appear to get stuck in a loop. I'm using in read/write mode and by default it tests four patterns. Here'...
jyoung's user avatar
  • 61
0 votes
0 answers
452 views

How to auto-recover after unclean shutdown?

I have an embedded system that I do not have very easy access to. Although in retrospect, I shouldn't have built it this way, but the only way to shut down the system is to kill power. This works 99.9%...
dberm22's user avatar
  • 113
0 votes
0 answers
1k views

Recover ext4 partition superblock `Free blocks count wrong for group #0`

I have a broken ext4 partition which I want to recover. The problem occurred because of a sudden power loss. The partition is an encrypted luks partition. Opening the luks container works. Say I open ...
student's user avatar
  • 18.3k
1 vote
1 answer
2k views

LUKS partition mounting just as read-only

I have a LUKS encrypted partition on a second hard drive that I use on my computer. When I turn on my computer, it is encrypted unless I go to it and try to open it, an operation that the system then ...
kplt's user avatar
  • 13
3 votes
1 answer
4k views

How to repair errors on BTRFS partition

I need help checking and repairing a BTRFS partition. It all started with a few directories on my system being inaccessible. Permissions of these directories are shown with question marks when I ...
mabalenk's user avatar
  • 531
1 vote
0 answers
59 views

Linux "ls -sh" command error in (corrupt?) folder print outs many blank spaces?

I am working with some disorganized data on a server. For a couple of the folders when I use the command: ls -sh To list files and file sizes, the seems to be an error where the cursor starts ...
Visio1288's user avatar
  • 113
0 votes
0 answers
299 views

RPMDB Corruption Issue - RHEL 7

RPMDB got corrupted recursively on one of my server recursively. 2016-07-07 14:14:31,296 - ERROR - error: rpmdb: BDB0113 Thread/process 6723/140691298633536 failed: BDB1507 Thread died in Berkeley ...
Arunkumar NKL's user avatar
2 votes
0 answers
1k views

Recover ext4 filesystem on LVM with corrupted superblocks

After a power outage, an EXT4 fs inside an LV had its superblocks corrupted, and can't be mounted. The LVs are all within the same physical disk and VG. The disk doesn't appear to be corrupted, only ...
user6000's user avatar
1 vote
1 answer
159 views

USB Drive is not detecting and is in read only mode with error NTFS signature is missing

command : sudo hdparm -r0 /dev/sdb Output : /dev/sdb: setting readonly to 0 (off) readonly = 1 (on) By any chance it will be turned off ? If yes how can we? Issue: USB is not detected. Unable to ...
Srinathiya Murugesan's user avatar
1 vote
0 answers
15 views

Can I change the attributes of a directory from a failed mirror that is showing as a file back to a directory

I had a raid mirror fail and I was able to bring back up one of the drives after I replaced a bad HBA and copy everything to another system. I had a backups directory on this mirror that is now ...
mindcloud's user avatar
0 votes
0 answers
165 views

Constant ext4 corruption

For the second time now in about 6 weeks, my Proxmox root has reported ext4 errors and I've had to fix them by booting into initramfs and running fsck.ext4. There's one file I can't seem to delete - ...
Harv's user avatar
  • 2,014
1 vote
1 answer
402 views

Access files inside a directory that has corrupt inode

I have an ext2 filesystem with corrupted/deleted inodes. The data I need does not appear to have corrupt inodes but the directory that the data is in does. $ ls -l ls: cannot access 'data_dir': ...
chaugen1's user avatar
0 votes
1 answer
409 views

Why are my PNG files becoming corrupt so frequently?

I use R/RStudio to draw graphics and maps, and save them as PNG. Along the creation process, I save the same file over and over, to see how it's going, until I get to the final product. Sometimes the ...
Rodrigo's user avatar
  • 1,812
1 vote
0 answers
185 views

What can I do about a corrupt NAR info file?

I seem to have corrupted a NAR info file. I think a process got killed while writing to them. Whenever I ask nix for something it spits back an error about a corrupt NAR info file. For example: $ nix-...
Sriotchilism O'Zaic's user avatar
2 votes
1 answer
1k views

Error when trying to corrupt packets in linux terminal (netem)

The following rule corrupts 5% of the packets by introducing a single bit error at a random offset in the packet: sudo tc qdisc change dev ens8 root netem corrupt 5% But recently it gave me the ...
Arash's user avatar
  • 123
5 votes
3 answers
4k views

Cannot format a MicroSD card

I have a SanDisk Ultra Plus 64gb MicroSd XC Card that I used to run ubuntu server on a raspbery PI. Now I have to format this card but I can not succes. I've tried many things including: Formating ...
Sera's user avatar
  • 51
0 votes
0 answers
771 views

Unable to decompress gzip file ("not in gzip format")

I've been tasked with diagnosing an issue with a webpage, and I've been able to trace the issue back to a gzip'ed JavaScript file, jquery.min.js.gz. To view the code, I've downloaded and attempted to ...
PerplexedDimension's user avatar
0 votes
1 answer
335 views

Shredding one partition messes up whole external drive

I used the "shred" command on Linux to wipe a specific partition on my HDD (just a once-over with zeroes; no extra passes of random data). The command I used: shred -uvz -n 0 /dev/sda But ...
user528665's user avatar
0 votes
1 answer
176 views

Looking for a checksum-based, poor-man's solution to fighting silent data corruption in long term storage of family video files

Secure storage of my collection of family video is becoming problematic after a dramatic increase in size in the last years. I am using a set of 3 copies of the same collection stored in 2.5 USB thin ...
Mephisto's user avatar
  • 1,077
1 vote
0 answers
324 views

Cannot acess file Input/Output Error But can acess other files

I have copied a file from Android to Linux but it was unexpected that I got error for that specific file only and also cannot delete it but I can access other files without any problem. When using GUI ...
Adarsh Raj's user avatar
0 votes
1 answer
192 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 ...
JoeS's user avatar
  • 1
0 votes
1 answer
697 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 ...
オパラ's user avatar
  • 145
0 votes
2 answers
217 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 ...
Daniel F's user avatar
  • 867
0 votes
1 answer
149 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 ...
Kev's user avatar
  • 1,739
2 votes
1 answer
822 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 ...
Wimateeka's user avatar
  • 1,005
0 votes
1 answer
92 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 ...
user514057's user avatar
1 vote
1 answer
586 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, ...
Mobius's user avatar
  • 31
14 votes
2 answers
2k 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 ...
Semnodime's user avatar
  • 347
0 votes
1 answer
53 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 ...
NTibbitts's user avatar
1 vote
1 answer
93 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 ...
Thiago Luís's user avatar
0 votes
0 answers
33 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 ...
Dalibor-P's user avatar
  • 101
0 votes
0 answers
226 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. ...
polaatx's user avatar
  • 101
2 votes
1 answer
675 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 ...
Turmund's user avatar
  • 23
0 votes
0 answers
328 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 ...
Hau5Cat5 Music's user avatar

1
2 3 4 5