Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Aug 2022 14:23:57 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   What is the best way to look for a lost file in the disk blocks
Message-ID:  <20220809122357.GA17@sh4-5.1blu.de>

next in thread | raw e-mail | index | archive | help

Hello,

Last night I damaged a plain UTF-8 HTML file (I copied by accident a
JPEG file over it) and it turned out that the backup was done a month
ago. I learned my lesson from this re/ doing backups more often of files
I'm working on...
Maybe there is a chance that the disk blocks are still not overwritten,
what would be the best way to look for them block by block and if it
contains certain string "foo-bar" having the block number from the
beginning of the device to get it back with dd(1) into a file. Any
scripts or tools for this?

Thanks

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220809122357.GA17>