* recover deleted files in Digital UNIX
@ 1999-07-20 4:00 Hong Xie
1999-07-20 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-07-20 4:00 ` Lai Wai Lun Alan
0 siblings, 2 replies; 4+ messages in thread
From: Hong Xie @ 1999-07-20 4:00 UTC (permalink / raw)
Hello,
I accidentally deleted a directory containing many important files.
I wonder if anyone know whether and how I can recover those files.
I am using a Digital Alpha workstation running Digital UNIX v4.0.
The filesystem type is UFS. I have root user privilege.
I would appreciate you for any information. Many thanks.
Hong Xie
h.xie@murdoch.edu.au
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recover deleted files in Digital UNIX
1999-07-20 4:00 recover deleted files in Digital UNIX Hong Xie
1999-07-20 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1999-07-20 4:00 ` Lai Wai Lun Alan
1999-07-20 4:00 ` Ed Wensell III aka THE StormRaiser
1 sibling, 1 reply; 4+ messages in thread
From: Lai Wai Lun Alan @ 1999-07-20 4:00 UTC (permalink / raw)
As far as I know, there is no method to recover a deleted file in UNIX
system.
Correct me if I am wrong.
Alan Lai
Hong Xie wrote in message <37944E3F.ED5D8B7A@murdoch.edu.au>...
>
>Hello,
>
>I accidentally deleted a directory containing many important files.
>I wonder if anyone know whether and how I can recover those files.
>I am using a Digital Alpha workstation running Digital UNIX v4.0.
>The filesystem type is UFS. I have root user privilege.
>
>I would appreciate you for any information. Many thanks.
>
>Hong Xie
>h.xie@murdoch.edu.au
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recover deleted files in Digital UNIX
1999-07-20 4:00 ` Lai Wai Lun Alan
@ 1999-07-20 4:00 ` Ed Wensell III aka THE StormRaiser
0 siblings, 0 replies; 4+ messages in thread
From: Ed Wensell III aka THE StormRaiser @ 1999-07-20 4:00 UTC (permalink / raw)
Lai Wai Lun Alan wrote:
>
> As far as I know, there is no method to recover a deleted file in UNIX
> system.
> Correct me if I am wrong.
>
> Alan Lai
This depends on how the files were deleted...
If one were to delete files using the CDE File Manager (or something of
the like), then they MIGHT be able to recover those files from the
Wastebasket. As long as they didn't "empty" their Wastebasket.
If one were to delete their files using good old rm, then the recovery
of those files would be highly dependent on whether or not a good backup
is available. If these "very important files" were system related (rm -R
/usr), then I hope there is either a good backup or the original
installation CD's handy.
If a good backup is not available, maybe now would be a good time to
start...
> Hong Xie wrote in message <37944E3F.ED5D8B7A@murdoch.edu.au>...
> >
> >Hello,
> >
> >I accidentally deleted a directory containing many important files.
> >I wonder if anyone know whether and how I can recover those files.
> >I am using a Digital Alpha workstation running Digital UNIX v4.0.
> >The filesystem type is UFS. I have root user privilege.
> >
> >I would appreciate you for any information. Many thanks.
> >
> >Hong Xie
> >h.xie@murdoch.edu.au
Another possibility is see if you can find some file system tools. If
the system/disk is not accessed much, and you do not have a high level
of security on it, then the files might be "recovered" using the
appropriate hacks. I'm afraid I do not know of any hacks right off...
If the system is heavily used, or is in a "high security" mode, then the
files are probably overwritten or were erased at the moment of deletion.
Which brings us back to having a good backup...
It does not take much to set up a cron job to have files tarred/dumped
to disk or tape once a day.
--
Until soon...
Ed Wensell III
Systems and Operations Support, Pellissippi State
E-mail hint: A college with a dot net domain?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recover deleted files in Digital UNIX
1999-07-20 4:00 recover deleted files in Digital UNIX Hong Xie
@ 1999-07-20 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-07-20 4:00 ` Lai Wai Lun Alan
1 sibling, 0 replies; 4+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1999-07-20 4:00 UTC (permalink / raw)
In article <37944E3F.ED5D8B7A@murdoch.edu.au>, Hong Xie <h.xie@murdoch.edu.au> writes:
>I accidentally deleted a directory containing many important files.
>I wonder if anyone know whether and how I can recover those files.
The usual first choice is to restore them from the most recent
backup. To be honest, if they weren't important enough to backup,
they must not have been that important... I do release there are
cases where the files may have changed significantly between
regular backups.
>I am using a Digital Alpha workstation running Digital UNIX v4.0.
>The filesystem type is UFS. I have root user privilege.
There is an option, but the ease of recovery depends on the data. The
blocks of the deleted files went back to the free space. The location
of the free space is kept as a bitmap by UFS on a per-cylinder group
basis. Files in a directory tend to be in the same cylinder as the
directory. For small and medium sized files the odds are good that
all the data is in the same group as the directory, limiting the number
of free blocks that have to be searched.
At gatekeeper.dec.com:/pub/sysadm is an archive called recover.tar.Z.
This program will search the free space of a UFS for text like data
and write it to stdout. If a hint about which cylinder group to look
in is given, it will only search that cylinder group. It needs read
access to the raw device the file system is on, which root has.
The routine that identifies interesting data can be customized if
you have a way to recognized other types of data. If the file
system your data was on is busy, those blocks may have been allocated
to something else. On the other hand, other directories will tend
to be on other cylinder groups, and will prefer to use the blocks
of those other groups.
>
>I would appreciate you for any information. Many thanks.
Good luck and if you're not making backups of supposedly important
data, do so.
>
>Hong Xie
>h.xie@murdoch.edu.au
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-07-20 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-20 4:00 recover deleted files in Digital UNIX Hong Xie
1999-07-20 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-07-20 4:00 ` Lai Wai Lun Alan
1999-07-20 4:00 ` Ed Wensell III aka THE StormRaiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox