Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [data-recovery]

Questions about recovering data. Includes data loss due to hardware failure, software failure, and user or administrator failure (accidental delete). Please also add tags for the specific things involved, such as /raid, /ext4, /hard-disk, /rm, etc.

0
votes
1answer
18 views

Geany: disk full, file truncated

I was working on a text file in Geany under Debian. When I went for saving it, it said the disk was full. So I freed some space and retried so save. This time it said the file on disk was newer. I ...
0
votes
0answers
18 views

Recover/reupload messages deleted by fetchmail

I used fetchmail to access my Hotmail/Outlook mailbox. It downloaded every message inside Inbox, but now that folder is empty at the server. Now I see that fetchmail deletes messages by default: -k ...
1
vote
0answers
51 views

mount img from data recovery

win10 laptop with both ssd & hdd unmountable. I booted with live-debian and copied hdd with safecopy in an .img-file on external usb hdd. This worked, 100% copied, no bad blocks, no unrecoverable ...
-2
votes
1answer
56 views

Replace a binary file within another binary file

Is it possible replace in place a binary file located inside another binary file? For example, compressed firmware.bin file contains: DECIMAL HEXADECIMAL DESCRIPTION ------------------------...
3
votes
1answer
156 views

Unrecoverable Btrfs filesystem after a power failure?

I've been writing to a 3TB USB external hard drive (WD MyBook) with a Btrfs filesystem, when accidentally I've switched the power off to the drive's power brick. What is strange - the write ...
0
votes
0answers
34 views

Recover files from previous filesystem

Accidentally, I installed a new linux distro over a 100G partition of a 250G SSD, with my previous linux. I used it (system upgrades, web browsing) for around 30 minutes before I realised what I did. ...
7
votes
3answers
1k views

Why does photorec keep finding files after I have filled the disk free space as root?

Before I lend my laptop for a while to my young and linux-savy nephew I want to make sure he's not able to carve into my personal data in the blank space of the drive. I have saturated the blank space ...
-1
votes
2answers
32 views

Data recovery after dd on a sda partition

I had installed opensuse in UEFI mode in my computer but having a legacy Windows so it did not appear in boot menu. Following a weird tutorial on the internet I dd the Windows partition of my sda. I ...
-3
votes
1answer
44 views

Data loss in disk in linux

How to get back lost data in /dev/sde? I unmounted a mount point on which /dev/sde was mounted and ran mkfs.ext4 as it was not getting remounted and that lead to data loss. Now I can't find /dev/sde ...
2
votes
1answer
76 views

Can ext4 filesystem withstand a bad sector (unreadable)?

If a hdd bad sector happens in the metadata for /home/user/me on an ext4 fs would that mean data loss for all subdirectories? Background: I know that many users are satisfied with the ext4 ...
0
votes
0answers
45 views

Recover accidentally deleted custom files

I accidentally deleted important custom (not known-or-commercial) files from my scientific researches on image processing. I created the files by collecting raw digital signals from an image sensor. ...
2
votes
0answers
123 views

How to recover data from synology Raid 5?

My old synology server (cs407s), died. So I'm trying to retrieve the data from the disk. I have tree disks from RAID 5. I tried to mount the disk on computer running grml. # lsblk sda 8:0 0 ...
0
votes
1answer
27 views

gddrescue slow transfer, but no bad sectors [closed]

I recently noticed my 2ndary internal HDD was having issues when I wanted to back up information to my external HDD. 1.4 TB out of the 2TB was being used. My transfers rates were plummeting to 0 and ...
1
vote
1answer
136 views

SD Card Recovery without data loss or corruption

I have a 128 GB Micro SD Card that I formatted as ext4 and used in a Chromebook for an Ubuntu Chroot Environment. I used it for quite some time that way. At some point, I either deleted everything off ...
1
vote
1answer
2k views

How to recover a broken mp4 file: moov atom not found

I made a recording with ffmpeg -f alsa -ac 2 -i plughw:0,0 /tmp/audio.mp4 I then moved /tmp/audio.mp4 to another directory (/root/audio.mp4) without stopping ffmpeg leading to a broken .mp4 file: ...
0
votes
0answers
37 views

Does fsck.f2fs not support loopback image files?

I had a micro SD card that I had "adopted" so the Android phone I had could use the storage as apart of the total storage for applications and data. This worked for sometime till the micro SD failed. ...
0
votes
1answer
87 views

Recovering a Failed Software Raid5

I'm looking to recover data from 4 old HDDs set up in a software raid5 and it looks like a disk has failed. What I want to do is recover the raid so I can copy its data somewhere else. I have done ...
0
votes
0answers
235 views

Input/Output error after moving files on external hard-drive

I have an external hard-drive for saving all my photos/memories. I put all the pictures to the folder INTENSO/Handy-Backup/IPhone/DCIM/. Because I resetted my iPhone, I wanted to move all the old ...
0
votes
1answer
24 views

Made external HDD bootable installation device by accident. How do I recover files? [duplicate]

So I messed up big time and ran: sudo dd if=~/Downloads/linuxmint-19-cinnamon-64bit-beta.iso of=/dev/sdb bs=1M while having my HDD still in and it made the HDD the bootable device instead of another ...
1
vote
1answer
48 views

Can recover data from disk but not from image of same disk?

So I'm creating this training scenario whereby participants have to take an image of a broken disk, loop mount and recover the data. It's supposed to be fairly basic, but I've come accross this weird ...
13
votes
1answer
1k views

Best practice to continue mv

I used the terminal to copy files from one drive to another. sudo mv -vi /location/to/drive1/ /location/to/drive2/ However that suddenly stopped, while some hours into it, and without an error, ...
0
votes
0answers
39 views

Do deleted HFS+ partitions appear as 'Linux filesys. data' when running TestDisk on Linux?

I'm trying to restore HFS+ partitions that someone accidentally deleted when connecting their Mac formatted external HDD to a Windows PC. Here's the TestDisk (7.1-WIP) [Analyse] output: TestDisk 7.1-...
1
vote
0answers
79 views

recover from snapshot

I have snapshotted an LV named roa to a snapshot volume named ima, then accidentally removed A file, I need to recover A file from the snapshot volume like what Btrfs snapshot did, but guides on LVM ...
5
votes
4answers
432 views

Recovering data from external hard disk error

I am trying to recover a hard disk. The external hard disk is recognised, and the Disks software in Ubuntu that the disk is OK, but has one bad sector. Is it possible to recover the data? I tried ...
-1
votes
2answers
2k views

Ubuntu recovery says “fsck from util-linux” and exits

I booted Ubuntu in recovery mode to try and fix a disk error. However, when I run: fsck I just get: fsck from util-linux 2.31.1 And nothing else happens. Any fsck command is simply printing '...
0
votes
1answer
28 views

Unreadable block in multiblock reading on dd / ddrescue: How does it handle it?

Let's say that I set the block size of dd or ddrescue to 256K. A sector of flash drives usually has 512 bytes, a sector on optical data discs has 2048 bytes. Let's assume that in the next 256 KB, ...
0
votes
1answer
61 views

ext4 partition is broken during resizing with gparted

I installed Fedora 28. But I resized the partition that contained Fedora (/dev/sda7) wrongly using GParted and now I can't boot my system. (Note the partition format is ext4)
1
vote
1answer
355 views

Recover files from a luks partition with extundelete

I have a luks encrypted SD Card and I want to recover all deleted files from it. I have been truing with extundelete using the following commands: extundelete --restore-directory RecoverDir/ /media/...
2
votes
1answer
38 views

Generating dead LBA list from gddrescue mapfile/logfile?

I ultimately would like to know which files in images generated by (g)ddrescue are affected by damage. gddrescue (command ddrescue) is a tool for recovering data from damaged media. When specifying ...
0
votes
1answer
65 views

Can dvdisaster recover optical discs better than gddrescue?

gddrescue is more universal. But both tools are just limited by hardware restrictions. If a CD's sector is unreadable, the drive usually refuses to let the computer know about the subcode. For ...
2
votes
1answer
57 views

How to recover when ext4 superblock's inode count is reset to 0

We tried to resize a 15TB ext4 partition to 16TB and accidentally managed to hit an old (and fixed in newer releases) off-by-one bug of ext4_resize_fs() which causes inode count to reset to 0 thanks ...
0
votes
2answers
381 views

Get contents of ddrescue image file

I have a failed harddrive with around 400 GB of data, of which approximately 50 GB need to be recovered. All the data is located in a specific directory (/Fotos2018/). The hard drive is a WD My ...
1
vote
0answers
46 views

Cannot access mounted partition after using dd

I have used following command to create an image of mounted partition sda1: dd if=/dev/sda1 of=/dev/sdb1 'conv=noerror,sync' where sda1 is the one I want to "backup" and sdb1 is obviously target, ...
0
votes
1answer
39 views

Recover Data while installing Liniux by option : “Erase disk and install Linux Mint”

I tried to intsall the Linux Mint by selecting the option by option : "Erase disk and install Linux Mint" assuming that the installation will be on C drive (where windows was installed ) but the ...
0
votes
1answer
380 views

Rescue data on a bad micro sd card

I have a micro SD card that was damaged, when putting in the reader of my computer, I got this [65850.877706] mmc0: unrecognised CSD structure version 2 [65850.877719] mmc0: error -22 whilst ...
1
vote
1answer
89 views

How to manage to read files unreadable due to bad sectors?

I am having ext3 filesystem, and recent Linux distribution. I need to copy (read) a file(s) over to a new destination. Unfortunately cp / mv or MC (Midnight Commander) stop / fail at certain point ...
-2
votes
1answer
53 views

Obtain information on encrypted android card image

For several days now I have tried to recover the key for an encrypted android-container (android_expand, used as internal storage) without success. As all kinds of stuff of the past years is on that ...
1
vote
1answer
278 views

Deleted /etc/pam.d/common

I deleted all common-* files in /etc/pam.d folder and now I am locked out. I am running Ubuntu 14.04. I did backup all these files in a folder inside pam.d but now I can't even move them. If I try, ...
1
vote
1answer
490 views

Why is ddrescue slow when it could be faster on error free areas?

This question addresses the first pass of ddrescue on the device to be rescued. I had to rescue a 1.5TB hard disk. The command I used is: # ddrescue /dev/sdc1 my-part-img my-part-map When the ...
-1
votes
2answers
143 views

Restoring a text (known_hosts) file

rm ~/.ssh/known_hosts Without doing a backup of this file Now file is empty, is there any way to recovery/restore this file ?
4
votes
1answer
102 views

How to delete “undeletable” lines in Vi?

Background I accidentally deleted an important python script, and so I ran the command sudo grep --binary-files=text --context=100 'unique string' /dev/sda1 > recover_file to search for it on my ...
2
votes
1answer
214 views

ddrescue .NTFS file can't open file

I have just rescued an old damaged HDD to my 8TB drive and I've got 1 .IMG file. I then took the 8TB drive to my work Windows 10 machine and used 7-zip to extract the file. Then I got 2 .NTFS files ...
3
votes
0answers
4k views

ext2fs_open2: Bad magic number in super-block

I'm trying to resize a Linux partition, but after tweaking a lot with this disk I don't know If I have totally corrupted it. Device Boot Start End Sectors Size Id Type /dev/sdd1 * ...
0
votes
1answer
685 views

extundelete - How to solve 'Block bitmap checksum does not match bitmap when trying to examine filesystem'?

The OS is Ubuntu 17.10 and I've been trying to recover(undelete) with extundelete. (The File System is ext4.) This didn't work. So, I tried with extundelete /dev/mapper/ubuntu--vg-root --restore-...
1
vote
0answers
102 views

LVM Metadata recover without access to /et/lvm (sic)

I've made a mistake with my luks lvm device. Yesterday I wanted to extend my vg-home logical volume with a second disk, so I did vgextend /dev/sdb1 vg (vg is the name of my volume group) but when I ...
1
vote
0answers
550 views

Using gdisk on drive with valid MBR and corrupt GPT

All: I ran ddrescue from a 1.5 TB input (corrupted) Windows external drive that was formatted NTFS to a 8 TB (uncorrupted) Western digital external drive that was formatted ext4. The 8 TB drive was ...
1
vote
3answers
406 views

In ddrescue, should the target drive be formatted the same way as the damaged drive?

Friends: I have 3 brief questions about ddrescue. This is the operation that I want to run: sudo ddrescue -f -n -v -v -v -v /dev/sdi /dev/sdh RescueHD10.log For me, the output drive "/dev/sdh", is ...
0
votes
4answers
169 views

Reading an old (damaged) CD-R

I am trying to recover data from an old CD that was in storage. However, when I try to mount it: sudo mount -t hfs /dev/cdrom /mnt I get the message mount: no medium found on /dev/sr0 Is there any ...
1
vote
1answer
551 views

ddrescue: How to retry for 1 bad block after all other data is safely stored?

I used ddrescue yesterday hopefully to retrieve 1:1 copy and stored it as an image on a new drive. Suppose I read backwards, because I knew, that there is a bad cluster at the beginning of the failing ...
1
vote
1answer
679 views

Extracting the contents of a tar folder into a target directory

I have a tar archive and I need to extract the contents of a directory into another directory. So for example the content may be located in /home/me/stuff/ and everything in the stuff folder should ...