Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] The sudden disappearance of ....WHAT??? (I/O error on a SD flash card?!)
Date: Sun, 26 Mar 2017 00:21:45
Message-Id: CAC=wYCFiQKCTw0YBj6Y6FSXRujKXWkRvSbsXdK4aaa8gV9MF1A@mail.gmail.com
In Reply to: Re: [gentoo-user] The sudden disappearance of ....WHAT??? (I/O error on a SD flash card?!) by Bill Kenworthy
1 Step 1: dd the contents into an image
2
3 ddrescue is probably a better option than plain dd.
4
5 step 2: put the sdcard to one side.
6 > step 3: loopback mount a copy of the image (not the original)
7 > step 4: try recovering the filesystem on the loopback, if it fails ... try
8 > something else on another image copy
9
10
11 Yep, once you've got the image mounted loopback, you can run
12 testdisk/photorec depending on how bad it is.

Replies