Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HOW TO RECOVER DELETED FILES FROM SOLARIS 5.9 MACHINE

117 views
Skip to first unread message

chah...@rediffmail.com

unread,
May 25, 2007, 2:29:20 AM5/25/07
to neelam...@oracle.com
Hi All,

We had some very impotant scripts on a solaris 5.9 machine, but those
files have got deleted by mistake.
Is there any way, by which we can recover all those files?
Please share your knowledge on the same and help us in resolving this
issue.

Thank you,
-Neelam Chahar
neelam...@oracle.com

"Thommy M. Malmström"

unread,
May 25, 2007, 3:40:20 AM5/25/07
to
chah...@rediffmail.com wrote:
> Hi All,
>
> We had some very impotant scripts on a solaris 5.9 machine, but those
> files have got deleted by mistake.
> Is there any way, by which we can recover all those files?
> Please share your knowledge on the same and help us in resolving this
> issue.

Restore from backup! If something is "very impotant" you have backups, haven't you?

Message has been deleted

Richard B. Gilbert

unread,
May 25, 2007, 8:18:02 AM5/25/07
to

Restore them from a recent backup. You DO make regular disk backups
don't you?

Message has been deleted

Marc

unread,
May 25, 2007, 3:12:56 PM5/25/07
to
Michael Vilain wrote:

> There is a REMOTE possibility that if you physically write protected the
> disk ASAP and halted the system that a forensic disk restore of the
> files might be possible at about $10K a go with no guarantee.

There are so many free utilities to try and recover files from an ext2 fs
on linux (but far less for ext3, despite their closeness) that I doubt
there is none that would work on solaris ufs. Randomly checking on the
web, photorec might be able to get something, although there is no
mention of UFS.

Note that obviously you can't expect to recover everything perfectly.

Mark

unread,
May 26, 2007, 6:00:06 AM5/26/07
to
Hi,

Funny thing is, I just KNEW when I saw this post, the next 5 responses
would be "restore from backup" ;)

Anyway, I have never heard of anyone actually using this, but I found
this when googling for "Solaris data recovery" :
http://www.stellarinfo.com/solaris-data-recovery.htm

Maybe you could give it a shot - if it works, let us know.

Alternatively, you could try using dd on on the disk device, capture
the output in a file somewhere and trawl through it with "strings"
looking for bits that match your scripts.

Oh, and if you hadn't immediately stopped all write access to the disk
involved, then you're probably straight out of luck anyway - the
blocks containing your data are probably long overwritten...

-Mark


Alex Mizrahi

unread,
May 26, 2007, 12:35:05 PM5/26/07
to
(message (Hello 'Marc)
(you :wrote :on '(Fri, 25 May 2007 19:12:56 +0000 (UTC)))
(

??>> There is a REMOTE possibility that if you physically write protected
??>> the disk ASAP and halted the system that a forensic disk restore of
??>> the files might be possible at about $10K a go with no guarantee.

there lots of software to restore from FAT and NTFS on Windows machines, and
it really works -- i've successfully restored ocassionaly deleted files many
times, on live system without any halting etc. is UFS so different?

M> There are so many free utilities to try and recover files from an ext2
M> fs on linux (but far less for ext3, despite their closeness) that I
M> doubt there is none that would work on solaris ufs. Randomly checking on
M> the web, photorec might be able to get something, although there is no
M> mention of UFS.

it should be possible to grep through all data on physicall disk, no? i've
done it on linux, and have found my files. with no additional software --
just grepping on block device.

)
(With-best-regards '(Alex Mizrahi) :aka 'killer_storm)
"I am everything you want and I am everything you need")


Rich Teer

unread,
May 26, 2007, 12:47:20 PM5/26/07
to
On Sat, 26 May 2007, Alex Mizrahi wrote:

> there lots of software to restore from FAT and NTFS on Windows machines, and
> it really works -- i've successfully restored ocassionaly deleted files many
> times, on live system without any halting etc. is UFS so different?

Yes. On FAT/NTFS, deleting a file consisted more or less of just setting a
bit in the first character of the file's name, so to undelete it you just
clear that bit. UFS is very different.

> it should be possible to grep through all data on physicall disk, no? i've
> done it on linux, and have found my files. with no additional software --
> just grepping on block device.

You've been very lucky. There's no guarantee that the blocks of a file
will be contiguous or in the "right" order. Good luck trying to find
all the blocks of a deleted 10 MB binary file, which are scattered all
over the disk...

--
Rich Teer, SCSA, SCNA, SCSECA, OGB member

CEO,
My Online Home Inventory

Voice: +1 (250) 979-1638
URLs: http://www.rite-group.com/rich
http://www.myonlinehomeinventory.com

Bob Nelson

unread,
May 26, 2007, 6:30:19 PM5/26/07
to
Rich Teer wrote:

> On Sat, 26 May 2007, Alex Mizrahi wrote:
>
>> there lots of software to restore from FAT and NTFS on Windows machines,
>> and it really works -- i've successfully restored ocassionaly deleted
>> files many times, on live system without any halting etc. is UFS so
>> different?
>
> Yes. On FAT/NTFS, deleting a file consisted more or less of just setting
> a bit in the first character of the file's name, so to undelete it you
> just clear that bit. UFS is very different.

...and it's superior in every possible way, too. The fact that NTFS/FAT
allow for recovery of deleted files was a /very/ poor design decision and
is fraught with numerous security holes. If you remove a file on a real
operating system, the file is removed because Unix respects your wishes and
doesn't treat you like a mistake-prone child.

Rich Teer

unread,
May 26, 2007, 7:30:10 PM5/26/07
to
On Sat, 26 May 2007, Bob Nelson wrote:

> ...and it's superior in every possible way, too. The fact that NTFS/FAT
> allow for recovery of deleted files was a /very/ poor design decision and
> is fraught with numerous security holes. If you remove a file on a real
> operating system, the file is removed because Unix respects your wishes and
> doesn't treat you like a mistake-prone child.

100% agreed; I was being uncharacteristically charitable to the "designers"
of those "file systems". ;-)

Dave

unread,
May 27, 2007, 4:42:11 AM5/27/07
to
It looks like that is for x86 and not SPARC, although the orignal poster
did not say what he has.

Casper H.S. Dik

unread,
May 27, 2007, 6:25:00 AM5/27/07
to
Rich Teer <rich...@rite-group.com> writes:

>You've been very lucky. There's no guarantee that the blocks of a file
>will be contiguous or in the "right" order. Good luck trying to find
>all the blocks of a deleted 10 MB binary file, which are scattered all
>over the disk...

Especially if the disks have been in use for some time.

When one of our customers was hit by an accidental remove of */*
on some of the database disks (no backups either), I brushed of some
tools I had to do statistical analysis of data.

The difficulty of recover UFS lies in the fact that inodes are zerod
so you no longer have the 12 odd block pointers that hold the file
together.

You can easily tell the difference between a data block, indirect
block or double/triple indirect block; recovering the large database
files proofed relatively easy; those filesystems had only ever contain
those large files. Typically the first direct blocks are laid out
consecutively so the problem becomes:

- find the sequence of 8 direct blocks
- find the indirect block (a block full of block pointers)
- find the double block (a block full of pointers to blocks of
pointers)

Then some other folks did the gruntwork to recover the files on the other
disks.

Casper

Thomas Dickey

unread,
May 27, 2007, 2:46:33 PM5/27/07
to
Alex Mizrahi <udod...@users.sourceforge.net> wrote:

> there lots of software to restore from FAT and NTFS on Windows machines, and
> it really works -- i've successfully restored ocassionaly deleted files many
> times, on live system without any halting etc. is UFS so different?

yes: NTFS, etc., have a directory which includes all files on a disk,
while UFS doesn't (it's scattered around in individual directory files
and - depending on the storage scheme for those files(*) - is generally
lost when deleting a file. For both, the problem of overwriting parts of
a deleted file exists (since it's common to both, it's irrelevant).

(*) I'm aware it's more complicated than that, but did not notice any
technically competant discussion of this in the thread.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Latheef Accel New Delhi

unread,
May 28, 2007, 12:55:17 AM5/28/07
to
By default it is not possible by using any of the solaris native
command, but I think it is possible using some third party utility
such as steller


On May 27, 11:46 am, Thomas Dickey <dic...@saltmine.radix.net> wrote:

Angel León O

unread,
Sep 29, 2023, 11:38:04 PM9/29/23
to
Your answer is very stupid, I think, if chah had backup, he wouldn't be writing here.

Marco Moock

unread,
Sep 30, 2023, 12:21:25 AM9/30/23
to
Am 29.09.2023 um 20:37:59 Uhr schrieb Angel León O:

> Your answer is very stupid, I think, if chah had backup, he wouldn't
> be writing here.

Google posters are also sometimes stupid because they answer to posts
from 2007.

And there is still: No backup, no pity.

0 new messages