LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Data Recover from /dev/db4 (https://www.linuxquestions.org/questions/linux-newbie-8/data-recover-from-dev-db4-739822/)

raixun 07-13-2009 03:32 PM

Data Recover from /dev/db4
 
hi i has an archlinux partion formatted and named as /dev/hdb4

i formatted with new size as reiserfs and installed slackware on /dev/hdb4 at a few day ago.

i want recover my image files from old archlinux partion
is it possible ?

unSpawn 07-13-2009 04:14 PM

Yes, just don't aim for onehundred percent recovery. This unfortunately is not an uncommon topic. Try searching LQ for terms like "recovery" or "undelete" and tools like photorec, foremost and Live CDs like HELIX and KNOPPIX.

In short: a filesystem structure consists of superblocks, reserved inodes, inodes and data blocks. "Formatting" means overlaying a partition with a (new) filesystem structure. However formatting does not necessarily mean wiping the paritition area, it just overlays the structure. Therefore a group of blocks (aka a file) may still exist (where not overwritten) but they're no longer hooked into the filesystem structure, they are effectively unlinked and therefore invisible on mount. The problem with recovering files here is that not all blocks a file may occupy are directly linked. That's why OSS header/footer carvers like scalpel, foremost and photorec try their best using file "magic" to recover things.

If unsure make a backup beforehand, make sure you do not mount the filesystem as you boot your Live CD and write out recovered files to a mounted filesystem that is safe to write to.


All times are GMT -5. The time now is 04:37 PM.