From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079036515403.tru64-unix-managers.marc@archive.invalid> From: Krzysztof Rajewicz Date: Tue, 02 Feb 1999 08:19:49 +0000 To: tru64-unix-managers Subject: SUMMARY: Undelete X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079036515403 Hi, managers. Thank you very much to the following people who responded : John F. Marten Richard L Jackson Jr Wallace, Lisa A. Dr. Tom Blinn alan@nabeth Bevan Broun Jim Belonis SUMMARY: 1) for this method to work you will need to remember a word from the beginining of the file and a word from the end of the file, this works for text files only, and use with caution. -stop working emediately. -go to the filesystem where the file was. -issue the following command in this syntax: egrep 'firstword.+endword' /dev/filesystem > /tmp/name example: egrep 'ftp.+free' /dev/rz1g > /tmp/mylostfile or you can use the name of the partition instead. ie: /usr/fred. 2) There is an UNDELETE available from the DECUS Library. But as usual with UNDELETE commands, it is likely that the free'ed blocks have already been re-used creating other new files since the newly free'ed blocks are in the cache ready to be re-used immediately. If you want a real UNDELETE to work, you have to dismount the disk immediately to protect it from this effect. 3) Unless you are using an AdvFS file system and have configured it to use the optional "wastebasket" feature, there is no way to "undelete" a file on a Digital UNIX (or for that matter most any other UNIX) system. If you've got backups, you can restore the file from backups. 4) You must restore the file. UFS and AdvFS do not have undelete file features. Of course, unless the user is using a desktop environment that supports said feature. Best regards; Krzysztof Reg.Eng.Tech. Cel. 0837775407 Tel. 0331953857 (w) e-mail: Rajewiks@eskom.co.za