LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-24-2005, 02:02 PM   #1
fuelinux
Member
 
Registered: Oct 2003
Location: Tbilisi, Georgia
Posts: 85

Rep: Reputation: 15
Lost FAT partition contents


ok, i know this might be wrong forum for my problem. I just didn't know where else to post it. Here is the situation:
I have 20 GB HD with 3 partitions on it.
1. /dev/hdb1 = Linux native - with Slackware 7.1 on it. Works just fine as far as I can tell;
2. /dev/hdb2 = FAT32 - with all the multimedia and games stuff;
3. /dev/hdb3 = Linux Swap.

The disk already had some issues when I've installed Slackware on it. some problems with File Allocation Table. Last time I was unable to delete files from FAT32 partition. It said "can't find path to file" or similar. So I had to cut the file, move it to second HD and delete it then. I couldn't perform scandisk on FAT32 either. In short, disk was problematic.
One day I found the HD is no longer accessible by Win95. Linux still works, but it can't read anything from FAT32 partition. It's been recognised, but when I cd to /dev/hdb2 and make ls in that directory, it seems empty.
That is, I lost my 6 GB of music, games and stuff on that partition. Tragedy

Here is my cry for help:
Is there any application under (Windows fails, so don't even offer ) which could kind of recover lost stuff, so I could move it to the safe disk? I think it's gone, but I've asked it anyways. Perhaps you guys can help?

Thanks in advance
 
Old 08-24-2005, 03:07 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
Re: Lost FAT partition contents

Quote:
Originally posted by fuelinux
but when I cd to /dev/hdb2 and make ls in that directory, it seems empty.
That's not surprising. You need to mount the disk first.

For everything else, try Knoppix first!

Samsara
.
 
Old 08-24-2005, 03:30 PM   #3
fuelinux
Member
 
Registered: Oct 2003
Location: Tbilisi, Georgia
Posts: 85

Original Poster
Rep: Reputation: 15
it's mounted already. Slack asks if you wish to mount FAT partitions on the istallation stage. otherwise how could I see the partition and make cd to it?
 
Old 08-25-2005, 12:27 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I'm not an expert on data recovery, but I don't think you will find anything in linux to recover your data automatically. You can use the 'dd' command to make a backup copy of the partition, assuming it is just the filesystem that is corrupted and not a hardware problem.

But I would think your best bet is to have a look at the disk on something running Windows, using a Windows-based recovery tool. I've only ever recovered files on a camera CF card, but everything I could find was Windows-based. The best tool I found for that was the free demo of ZAR (http://www.z-a-recovery.com) which works only on image files. I'd suggest you do a bit of research on this and other recovery programs, and decide how much your lost data is worth.
 
Old 08-25-2005, 05:53 AM   #5
fuelinux
Member
 
Registered: Oct 2003
Location: Tbilisi, Georgia
Posts: 85

Original Poster
Rep: Reputation: 15
maroonbaboon
ty for your reply, dude. i have visited ZAR's site and it says
Quote:
Only (up to) four directories can be recovered in the demo version.
http://www.z-a-recovery.com/download.htm
If you have already tried this programm, could you clarify the following for me?
let's assume that affected partition has following folder structure

FolderA/A1/A2/A3/A4
FolderB/B1/B2/B3/B4
FolderC/C1/C2/C3/C4
FolderD/D1/D2/D3/D4
FolderE/E1/E2/E3/E4

will ZAR recover only folders FolderA, FolderB, FolderC and FolderD WITHOUT their contents or WITH contents? or perhaps I should indicate FolderA to the program and it will save the tree FolderA/A1/A2/A3?
I mean what does exactly this 4 folder limit mean?

my question pretty much looks like abracadabra lol but could you answer me?

Thanks

/edit
could you provide sintax for "dd" command and is it possible to copy partition to another disk with dd?

Last edited by fuelinux; 08-25-2005 at 06:12 AM.
 
Old 08-25-2005, 06:04 AM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Sorry I just don't know. I used the version specifically for recovering images on flash memory, and ZAR was clearly the best out of 5 or 6 freeware tools I tried. I don't know anything about their other offerings. Maybe there are other Windows freeware tools around that are worth considering. All the ones I tried were specific to photo cards.
 
  


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
Kmail - some message contents lost doublej Linux - Software 1 10-20-2005 08:46 AM
Lost /boot contents. Oops! khader69 Linux - Newbie 2 04-26-2005 05:06 AM
Can't get at FAT partition Boffy Linux - General 5 02-21-2005 11:27 AM
contents of /home lost! skvasistha Linux - Software 2 11-23-2004 05:31 AM
lost fat partitions during red hat 9.0 install illtbagu Linux - General 3 07-30-2003 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:11 AM.

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
Open Source Consulting | Domain Registration