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.
215
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:...
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 ...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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'...
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%...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 - ...
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': ...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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.
...