Operating System - HP-UX
1847846 Members
3342 Online
104021 Solutions
New Discussion

anyway to recover deleted files on HP_UX?

 
SOLVED
Go to solution
Manu_13
Frequent Advisor

anyway to recover deleted files on HP_UX?

hi,

I did a rm -rf on a dir by mistake. Can I recover those lost files by any means?

thnx,
manu
10 REPLIES 10
Robert-Jan Goossens_1
Honored Contributor

Re: anyway to recover deleted files on HP_UX?

Hi Manu,

No, you will need to recover the files from your back-up.

Regards,
Robert-Jan
Manu_13
Frequent Advisor

Re: anyway to recover deleted files on HP_UX?

Hi Roberts-Jan,

I dont have a backup. That is why I need to recover these files.

thnx!
Manohar
Bharat Katkar
Honored Contributor
Solution

Re: anyway to recover deleted files on HP_UX?

Well,

Manu .. you can only recover text/ascii files if you know the contents and no body has overwritten the filesystem therafter.
Also it is not 100% possible to get everything you lost.

umount the filesystem and use dd command on the filesystem.

# dd if= of=filename
# vi filename

Try searching the strings you know and do cut and paste as much as possible for you. :)

Hope that helps to some extent.

Regards,
You need to know a lot to actually know how little you know
YOGI_3
Frequent Advisor

Re: anyway to recover deleted files on HP_UX?

hi manu ...
as there is no option to recover once removed,
so always use -i option with rm, it will ask for confirmation.

Yogesh
There is never a wrong time to do the right things
harry d brown jr
Honored Contributor

Re: anyway to recover deleted files on HP_UX?

no backup = no recovery!

This is why we ALWAYS stress people to do BACKUPs.

deleting a needed file - painful
having an available backup - priceless

live free or die
harry d brown jr
Live Free or Die
Pete Randall
Outstanding Contributor

Re: anyway to recover deleted files on HP_UX?

Check with your systems administrator to make sure that there isn't a backup. I find it hard to believe that a responsible sysadmin would leave unbacked-up systems. It may well be being backed up regularly and you just didn't know it.


Pete

Pete
Manu_13
Frequent Advisor

Re: anyway to recover deleted files on HP_UX?

Bharat,

I have lost not just text/ascii files, but large number of tar files and some packages.

Thnx,
Manu
Bharat Katkar
Honored Contributor

Re: anyway to recover deleted files on HP_UX?

Sorry to say that u r in tourble now.
Just try searching for any old backup, that is the only way out otherwise you have lost everything that was in that directory..

Regards,
You need to know a lot to actually know how little you know
harry d brown jr
Honored Contributor

Re: anyway to recover deleted files on HP_UX?

Only the NSA can help you, but you can't afford them. You are seriously out of luck. There is NO MAGIC BULLET.


live free or die
harry d brown jr
Live Free or Die
Manu_13
Frequent Advisor

Re: anyway to recover deleted files on HP_UX?

Hi guys,

Thanks for the suggestions. Luckily few of the stuff I had backed up on my PC. :). I will never use "rm -rf" on anything again!

Cheers,
Manu