dd if=/dev/sda2 | gzip > /mnt/external/mydrive.img.gz

Or my pref:
apt-get install pv
pv -peat -B 10240 /dev/sda2 | gzip > /mnt/external/mydrive.img.gz

On Tue, Feb 16, 2016 at 11:46 AM, Matt Minuti <matt.min...@gmail.com> wrote:

> I did the same thing for the first time last spring and actually managed
> to save everything! Spinning platter, ext4. Here's the process I used, for
> everyone's future reference. Hopefully it helps, good luck!
>
>
>
> First thing I did was boot up a live usb and dd the partition to an image
> on an external hard drive (good practice to not mess with the original any
> more than necessary). `dd if=/dev/sda2 of=/mnt/external/mydrive.img`
>
> Next I used ext4magic (https://sourceforge.net/projects/ext4magic/ with
> usage scenarios stuff at http://ext4magic.sourceforge.net/howto_en.html),
> which is based on ext4undelete but seemed better to me, probably because
> you can easily recover only files deleted within a certain timeframe, so
> you don't have a ton of junk dredged up.
>
> Example:
> Files deleted roughly 2 days ago, recovering everything after 3 days ago
> and before 1 day ago, recovering from the backup image.
> ext4magic -R -a $(date -d "-3day" +%s) -b $(date -d "-1day" +%s) -d
> /mnt/external/recovered_files_here/ /mnt/external/mydrive.img
>
> Afterwards, I used fslint to search for duplicates and help me figure out
> which copy of the file to keep. Partly because fslint is really awesome,
> partly because I was really low on space at this point...
>
>
> On Tue, Feb 16, 2016 at 9:40 AM, Susan Cragin <susancra...@earthlink.net>
> wrote:
>
>>
>> It is an ssd but I'm going to try. What the heck. My favorite files are a
>> cluster of small txt and org files. And I haven't used the machine since
>> then.
>>
>>
>>
>>
>>
>> -----Original Message-----
>> >From: Joshua Judson Rosen <roz...@hackerposse.com>
>> >Sent: Feb 16, 2016 9:31 AM
>> >To: Susan Cragin <susancra...@earthlink.net>, GNHLUG-discussion <
>> gnhlug-discuss@mail.gnhlug.org>
>> >Subject: Re: Data recovery
>> >
>> >On 02/16/2016 09:22 AM, Susan Cragin wrote:
>> >>
>> >> I recursively deleted my home folder, "susan."
>> >> I have days-old backup but want to try data recovery.
>> >
>> >Is this on a spinning-platter HDD, or on one of those
>> >new-fangled SSDs?
>> >
>> >As far as I understand it, you're unlikely to be able
>> >to recover any data from an SSD as they're so aggressive
>> >about remapping logical/physical blocks.
>> >
>> >
>> >--
>> >"Don't be afraid to ask (λf.((λx.xx) (λr.f(rr))))."
>>
>>
>> _______________________________________________
>> gnhlug-discuss mailing list
>> gnhlug-discuss@mail.gnhlug.org
>> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>>
>
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss@mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
>
_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to