Skip to main content

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
1 vote
2 answers
123 views

Bad magic number in super-block on external HD after multiple power outages—still OK to use?

I have a computer at home that I use as a file server, using Nextcloud. Every computer at home is Ubuntu/etx4. I've had multiple outages recently in the neighborhood, and I think the sudden shutdowns ...
3x5's user avatar
  • 121
0 votes
1 answer
49 views

Can't download or update anything

I'm pretty sure this has something to do with corruption as my drive was corrupted just a few days ago but I managed to fix it. The error occurs when I try to download or update anything, for example ...
Mr Classic's user avatar
1 vote
0 answers
72 views

file system on an emmc damaged by a power surge?

I'm running a Quartz64 (Model A) booting off an eMMC drive, and it recently suffered a file system corruption after a power outage due to a lightening strike.  After this, it wouldn't boot up.  I had ...
jyoung's user avatar
  • 121
0 votes
0 answers
20 views

Recursive search for all corrupted directories ("Structure needs cleaning")

Is there a tool I can use to recursively search through a directory to generate a list of all corrupted directories, ie, those impossible to open ("Structure needs cleaning")? Ideally, is it ...
zadrozny's user avatar
  • 347
0 votes
0 answers
202 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
147 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
207 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
318 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
54 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
134 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
159 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
  • 389
0 votes
1 answer
205 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
520 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
130 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
62 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
4 votes
2 answers
271 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
2k 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
129 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
156 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
  • 121
0 votes
0 answers
670 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
2k 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.6k
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
6k 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
  • 541
1 vote
0 answers
95 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
364 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
2k 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
170 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
16 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
184 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,256
1 vote
1 answer
496 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
486 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,842
1 vote
0 answers
236 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
2k 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
5k 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
949 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
469 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
206 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,097
1 vote
0 answers
353 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
208 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
856 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
306 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
  • 887
0 votes
1 answer
180 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
1k 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,015
0 votes
1 answer
115 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
667 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
  • 377
0 votes
1 answer
55 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
96 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
243 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

1
2 3 4 5