ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Seeing the post count of 3 at the time I was about to say "Hi and welcome to LQ" and then go on about how people here are volunteers, we're not here to provide on demand programs to incomplete or unclear questions, and then offer some pointers to the Site FAQ.
But realize you probably know this since you've been registered with LQ for 7 years.
First, are there typos? What is "chrased"? I'm assuming you mean "erased". I recommend PhotoRec.
I also recommend you look into data recovery software you can find on the web.
I recommend you get a full image of the drive using dd.
You should update your question to add some explanations about:
How did the drive get erased exactly?
Has it been attempted to be accessed since the erasure? If so, how?
What operating system, and version of it are you using?
Such a program would be beyond the scope of this forum.
erm, why? testdisk/photorec it is, and we've been giving out that info many times.
and it would be best to access the disk "from the outside", i.e. boot from a live medium (usb/cd/dvd).
edit:
it is, however, possible that OP meant "crashed", which might point to a different situation altogether.
spidey-linux, if testdisk/photorec doesn't help, we'll need more information about your machine, linux installed, what exactly happened etc.
Actually programming a disk recovery utility from scratch that requires in-depth knowledge of the innards of the particular OS, the particular disk format types, how to repair catalog inconsistencies for each type ... it just didn't seem appropriate to me. Your opinion may differ, so go to it if you want to!
Actually programming a disk recovery utility from scratch that requires in-depth knowledge of the innards of the particular OS, the particular disk format types, how to repair catalog inconsistencies for each type ... it just didn't seem appropriate to me. Your opinion may differ, so go to it if you want to!
+1 for try, -2 for bad answer and lack of research.
Laserbeak: the guiding mantra (that does not refer to FREEDOM) behind linux development is "there is more than one way to do it", and this holds for nearly any specific case of "it" in this context. There are tools in the linux domains for doing nearly anything that you can get the hardware to do, and (as many here are professional programmers, engineers, and administrators) error recovery and Disaster Recovery tools abound. There are actually MANY tools for recovery from HD corruption, reformatting, crash (a different condition) and errors but the one recommended above shines as an excellent example and far better than MOST commercial tools. It should serve the OP well, if we have not misunderstood the issue.
In general, if you can think it and the hardware can do it someone has coded for that. In the case that you think it and no one has tried that yet, suggest. Perhaps someone WANTS to but has not had that idea yet. You might get in on a project!
Never assume it cannot be done, should not be done, or that it does not exist without having a look first. You might be pleasantly surprised.
(I have been in this since 1997, and am still pleasantly surprised OFTEN!)
PS. I pause on occasion to visit www.grc.com and pull on ideas. Steve Gibson programmed some of the best hard drive recovery software ever written, for windows, in ASSEMBLY LANGUAGE! It amazes me what a smart person can do with motivation, tools, and a perceived need. I never run Windows at home anymore, so I guess it is just hero worship. ;-)
My point is that if you look, the odds are it is out there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.