Undelete or recover from badblocks on disks

jaymax jaymax36 at gmail.com
Tue Sep 22 10:09:10 UTC 2009

Thanks again Roland,
I think I must have lost those files when fsck_ffs did its salvage operation

The expected files were 

fls from the image file => listfile

# sed -n 30153,30158p list
d/d 4804608:    bkup
d/d 918528:     servers
+ d/d 918529:   apache
++ d/d 918530:  httpd-2.0.40
+++ d/d 918531: os
++++ d/d 918532:        os2

Shows the bkup directory but no subdirectory (i.e ../dump/. or dumpfiles

Now, if perchance these files were found with fls what would have been the
method to extract them back and make them readable to the file system.



Roland Smith wrote:
> On Fri, Sep 18, 2009 at 10:17:31PM -0700, jaymax wrote:
>> Thanks Roland, 
> Create a disk image from the damaged drive, and save it on another disk
> with enough space. You can use dd(1) to create a disk image. You can
> devide the image into several files. For example, I will use dd to get two
> consecutive 10
> # dd if=/dev/da0s1 of=dd1.img bs=1m count=10
> 10+0 records in
> 10+0 records out
> 10485760 bytes transferred in 1.031497 secs (10165575 bytes/sec)
> The (valid, IMHO) reason for using disk images is that you want to
> investigate a copy of the data, so you cannot accidentily destroy the
> original data.

View this message in context: http://www.nabble.com/Undelete-or-recover-from-badblocks-on-disks-tp25498179p25530662.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

More information about the freebsd-questions mailing list