UNdeleting files

Dave Decot decot at hpisod2.HP.COM
Wed Aug 1 06:40:51 AEST 1990


>    I have lost files on one of the disks and would
>    like to follow the i-nodes to recover them, since
>    they are very large (some > 1M) and valuable.
> 
>    The files were lost when a shell-script having
>    "rm -r" was accidentally executed.  The disk was
>    immediatly (within 5 mts) unmounted and the contents
>    have since been unchanged.
> 
>    I have the i-node numbers of these files from a
>    2-month old backup.
> 
>    Operating system : Sun OS 4.0.3 (BSD 4.2)
>    Machine          : Sun 3

Read the man page for fsdb(8) (or fsdb(1M)) carefully, and then practice
removing and then restoring some other unneeded large file.

This should enable you to restore the file, if it wasn't obliterated
during the "5 mts".

Dave Decot



More information about the Comp.unix.wizards mailing list