Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The big blunder

Status
Not open for further replies.

faheyd

Technical User
Apr 22, 2007
2
US
Hi all,
First post. I'm using Centos 4.4 on my home serving using samba to share a few directories, which works fine.
A couple of months ago I did something really stupid and am just now getting around to try to recover from it.

Somehow, while using webmin to share my 'opt' directory, I obviously did something wrong and ended up wiping out 'opt'.
I'm not exactly sure (and can't remember) what I did to do that.
I can only tell you I'm left with a 'file' named: " -rwxr-xr-x 1 root root 4294967296 Oct 3 2006 ext2_file ".
What I've tried to do, is dd that file back to my hda10 partition that did not work. Something obviously exists as it's a 4.2GB file, but I can find no way to restore it. I've moved that ext2_file off the partition to my var directory for safekeeping. My opt partition is empty right now and will mount, but of course, nothing is there.

So, my question is how to 'write' that file back to the hda10 partion and restore the data so that I can mount it again.

Thanks for taking the time to read my story of self-inflicted pain.

Dylan
 
What is the output of the following command ?
file ext2_file

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
# file ext2_file
ext2_file: Linux rev 1.0 ext2 filesystem data

Thanks,
Dylan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top