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 07-23-2006, 04:56 AM   #1
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
lost fat32 partition during resize. Is it possible to recover some files?


I used partition panager (under windows) to resize a fat32 partition on my external hard drive in order to create a boot partition to install linux. For some unknown reason, the computer freezed during the operation (hd idle, mouse not moving, keyboard out of order...), so I had to reboot. Foolishly, I hadn't created partition manager's recovery cdrom, so I booted into windows again and run partition manager again and altough it detected the abnormal termination, it seems that it didn't finish the operation. I used chkdsk to fix partition errors and all I got is files in the format filexxxx.chk.

Now my question. I had some iso images in there that I want to recover. (I had lots of other files too, but I have kept a backup of the most important ones and I don't care about the others). I tried mounting some big chk files (600+ MB), as most of the iso images were of this size. I used
Code:
mount -t iso9660 filexxxx.chk /mnt/image -o loop,ro
However, mount doesn't work and dmsg|tail says
Code:
Unable to identify CD-ROM format.
So, is it possible to recover those isos (or at least some of them)?
 
Old 07-23-2006, 05:33 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
To try and recover partition table running GNU/Linux try:
Gpart
Testdisk
Parted
* some Live CDs have these already.

If you don't have "magic" installed on MICROS~1 and you can't load a Live or Rescue CD to test .chk files on try
WhatFormat (shareware): http://www.jozy.nl/whatfmt.html

To rename MICROS~1 .chk files from try (all freeware, windows apps)
Uncheck/FileCHK http://www.ericphelps.com/uncheck/
CHK-mate http://www.diydatarecovery.nl/chkmate.htm

To recover files from (V)FAT running GNU/Linux try
Fatback: (also on the Biatchux/FIRE CD): http://prdownloads.sourceforge.net/b...ack-1.3.tar.gz
Foremost ("magic" based): http://foremost.sourceforge.net/foremost.html
Magic Rescue ("magic" based): http://jbj.rapanden.dk/magicrescue/
The Sleuth Kit: http://www.sleuthkit.org/sleuthkit/
 
Old 07-23-2006, 07:57 AM   #3
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Original Poster
Rep: Reputation: 30
Thanks for the reply. I'll try those tools.
 
Old 07-23-2006, 09:15 AM   #4
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Original Poster
Rep: Reputation: 30
Really thanks. I used foremost and got many useful files back. I will try again when I clean up my internal hard disk to be able to save all recovered files.
About the isos, though, foremost actually recovered the contents of the isos but not the isos themselves. Exactly as I expected it.
Anyway, thanks again.
 
  


Reply

Tags
data, recovery


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
Software to help me recover 'Deleted' FAT32 Partition Data? flamesrock Linux - Software 8 07-26-2005 10:39 PM
rm -R, lost my files, any way to recover? mm.. :) brynjarh Linux - General 1 05-10-2005 06:39 AM
reiserfs partition lost, any way to recover? kostian Linux - Newbie 7 10-29-2004 04:31 PM
can fdisk or cfdisk resize a fat32 partition? toastermaker Linux - Software 6 01-29-2004 06:42 AM
Recover a lost partition!!!!! Caveman Linux - Newbie 4 09-26-2003 01:10 PM

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

All times are GMT -5. The time now is 02:51 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
Open Source Consulting | Domain Registration