Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 05-15-2008, 11:41 AM   #1
Registered: May 2007
Posts: 179

Rep: Reputation: 30
how to restore a folder

hi guys
i have mistakenly erase all the components on a folder.
i would like to know if is there anyway i could do a undo or a restore to get eveythign back?
by the way i am using soalris 10
Old 05-15-2008, 12:00 PM   #2
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Are you doing anything for backup? A restore is about the only way. There isn't a recycle bin in Solaris, it actually believes you want to delete things...
Old 05-15-2008, 01:21 PM   #3
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
oh darn!!!
so basically i lost all the files in there right?
Old 05-15-2008, 04:11 PM   #4
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
If you rm something, and this something cannot be recovered from, for example, an earlier snapshot of that file system, then yes, I think you lost it.
Old 05-16-2008, 09:06 AM   #5
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
oh ok

well thnx
Old 05-31-2008, 09:53 AM   #6
Registered: Sep 2005
Location: Tripoli/Libya
Distribution: Solaris
Posts: 73

Rep: Reputation: 15
do you have any symbolic link for this folder ? then I'll suggest to know the inode for this folder I think the only way to restore file in Solaris is to know the indoe number. hope this help
Old 05-31-2008, 09:58 AM   #7
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
How about "testdisk"? I have never used it, but I have seen it recommended many times.

Lost data is usually recoverable if you do not do anything to write to the disk. When you "delete" something you are only removing the link to the inode--the actual data is still there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
save web page results in a file and a folder. Whats the folder for? geeyathink General 2 01-30-2008 06:57 AM
How to restore files using the restore command ? SKYNAT Linux - Newbie 2 12-28-2007 10:26 PM
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration