LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2007, 02:13 PM   #1
ashishjen
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Rep: Reputation: 15
recover deleted files


i mistakenly deleted some files of my windows drive i.e. fat32.
can anybody help in finding a way to recover the deleted files.

unrm is not working on my box and debugfs is giving following error while opening /dev/hdc1 (from where i deleted the file):

debugfs: open /dev/hdc1
/dev/hdc1: Bad magic number in super-block while opening filesystem
 
Old 02-02-2007, 07:04 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I typed a response to this yesterday and it did not get posted---sorry.

First--do not write to that drive. Deleting a file simply releases the pointers. The data is still there, but the system can write new data on top of it.

If the data is critical, then consider cloning the drive (or partition) before trying any recovery techniques.

The response from debugfs indicates that you have more issues than simply a few deleted files. Please give a description of your configuration (include the output of fdisk -l) and what recent changes have been made.

Search Google for "FAT32 file recovery". Read up on the different tools before trying anything.
 
Old 02-02-2007, 11:25 AM   #3
ashishjen
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Original Poster
Rep: Reputation: 15
i didnt get anything...

fdisk is not working....
my problem actually is that i have deleted some files of windows from linux and therefore cant boot up windows so i want to help me out in recovering the deleted files from linux only as i cant access windows.

hope u get it right this time.
 
Old 02-02-2007, 01:22 PM   #4
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Rep: Reputation: 30
In that case, you may be able to dd to another partition then reinstall windows. Optionally, you can create temporary windows install somewhere to attempt reading from this drive. However, as pixellany mentioned, Windows may start writing to this drive the moment it sees it, and this can lead to overwriting your deleted files. Linux is alot better about not writing to a FAT32 partition without asking.

There may be a Linux software solution, but I doubt it. Unfortunately, a quick Google search results in a bunch of ads.
 
Old 02-02-2007, 01:32 PM   #5
ashishjen
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Original Poster
Rep: Reputation: 15
i am looking for a linux solution like unrm but that is not working...
 
Old 02-02-2007, 03:23 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by ashishjen
....fdisk is not working....
my problem actually is that i have deleted some files of windows from linux and therefore cant boot up windows so i want to help me out in recovering the deleted files from linux only as i cant access windows.

hope u get it right this time.
What do you mean--you hope I get it right?? Did I make a mistake?
What happens with fdisk -l? (be sure to run it as root)

I am sure there are lots of Linux-based utilities that will work on FAT-32. What did you find on Google?

Quote:
i am looking for a linux solution like unrm but that is not working...
When you say that something is "not working", you have to tell us what is happening--what are the error messages?
 
  


Reply


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
Recover Deleted Files thammerlund Linux - Newbie 4 07-13-2006 11:40 PM
How do I recover deleted files? Hector404 Linux - General 5 12-27-2005 02:35 AM
how to recover deleted files sibtay Linux - Software 13 01-22-2005 09:09 PM
Recover deleted files? subaruwrx Linux - Newbie 8 06-04-2004 09:47 AM
Recover deleted files markdw Linux - General 1 12-07-2001 05:08 PM


All times are GMT -5. The time now is 09:06 PM.

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