Go Back   Steve's Digicams Forums > Software > Editors (Photoshop, Vegas, Final Cut Pro, Kdenlive, etc.)

Reply
 
Thread Tools Search this Thread
Old Aug 27, 2011, 7:00 AM   #31
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Note that if it copies the entire card OK (and we can tell that from bytes rescued), then there will be no need to run it again (we'd just be wasting our time, since it already got a good copy without any sector read errors). In other words, we would not gain anything by doing that part again, and any recoverable images would already be in the disk image file it creates. But, I need to see the output from it so I know how to approach the recovery process (since it will tell you how many bytes it rescued and how many errors it sees if it can't copy it OK).
JimC is offline   Reply With Quote
Old Aug 27, 2011, 7:08 AM   #32
Member
 
Join Date: Aug 2011
Posts: 41
Default

here is the output

[root@mepis1 sdd1]# su
[root@mepis1 sdd1]# ddrescue /dev/sdc sdhc_copy2.img sdhc_copy2.log


Press Ctrl-C to interrupt
Initial status (read from logfile)
rescued: 0 B, errsize: 0 B, errors: 0
Current status
rescued: 3957 MB, errsize: 0 B, current rate: 13106 kB/s
ipos: 3957 MB, errors: 0, average rate: 13983 kB/s
opos: 3957 MB, time from last successful read: 0 s
Finished
[root@mepis1 sdd1]# a
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 7:17 AM   #33
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

OK. Great. It copied it just fine, and we'd be wasting our time running it again.

Now, see what you get running photorec against the image file we created. Use the defaults until you get to the part that asks if you want to analyze Free (unallocated) space only, or if you want to scan the Whole (entire partition) image. Then, change it to Whole and use defaults for the rest. Let me know what you get after it's finished:

su
photorec sdhc_copy2.img
JimC is offline   Reply With Quote
Old Aug 27, 2011, 7:25 AM   #34
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

As before, you should find your images in folders named recup, recup1, recup2, etc. It may or may not reuse the same ones again this time. If you click on the File Cabinet icon in your task bar, then click on the icon for the drive, you should be able to navigate to those folders and check the images there after photorec finishes running.

Also note that you'll find an application named Gwenview under your Graphics menus that you can use to view recovered image files (point it to /mnt/sdd1 and you should see the folders and images).

Note that if you were not able to recover everything, we can try something different, too (mounting the disk image file as a loop device to see if it's readable that way). Let me know what you see recovered using photorec and we'll go from there.
JimC is offline   Reply With Quote
Old Aug 27, 2011, 8:02 AM   #35
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Did you give up on me? We are not finished yet unless you see all of your images after using photorec again (since photorec is only going to find the ones that are contiguous). ;-)

We want to do this next when photorec finishes running. I'll repeat some of the mount commands for your external drive, just in case you restarted your PC or anything. These will assume that your external drive is still showing up as sdd1 when you use fdisk -l

If you unplugged anything since posting last, we'll need to do it differently. Again, please wait until we're finished before doing anything like restarting your PC, etc. Please copy and paste the output from this if you have not unplugged anything yet. This set of commands is to mount the disk image file we saved as a loop device after running a file system check to fix anything wrong with it, then copy all of the folders and images on it to a folder named recovered1 on your external hard drive.

su
umount /dev/sdd1
mkdir /mnt/sdd1
mount -t ntfs-3g /dev/sdd1 /mnt/sdd1
mkdir /mnt/sdhc_img
mkdir /mnt/sdd1/recovered1
cd /mnt/sdd1
fsck -v -f -y sdhc_copy2.img
mount -o loop sdhc_copy2.img /mnt/sdhc_img
cp -r /mnt/sdhc_img /mnt/sdd1/recovered1

If you have restarted your PC and/or unplugged anything, then do this instead and post the output so I can adjust the commands needed to copy the images from the disk image file we created, and please do not do anything else after that before we go to the next steps if you want those images back. ;-)

su
fdisk -l
JimC is offline   Reply With Quote
Old Aug 27, 2011, 8:32 AM   #36
Member
 
Join Date: Aug 2011
Posts: 41
Default

no i did not giv up...

i hav recoverd many images.... the photorec process was complete

but my system got stuck...
i waited for more than half hr but it was freezed ....

nothing was working..... so i had to restart... to see if u have updated anything...

i ll chk the images ang get back

giv me 10 mins..
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 8:35 AM   #37
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

OK..

Do this first so we can tell how your external drive is showing up (it may show up differently after you restart your PC, especially if you've unplugged anything). As before, enter root as the password when prompted.

su
fdisk -l
JimC is offline   Reply With Quote
Old Aug 27, 2011, 8:42 AM   #38
Member
 
Join Date: Aug 2011
Posts: 41
Default

hey i have recovered all images.....

demo@mepis1:~$ su
Password:
[root@mepis1 demo]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
16 heads, 63 sectors/track, 1938021 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbabf4e67

Device Boot Start End Blocks Id System
/dev/sda1 2 1938018 976760568 f W95 Ext'd (LBA)
/dev/sda5 2 1015874 511999960+ 7 HPFS/NTFS
/dev/sda6 1015875 1938018 464760544+ 7 HPFS/NTFS

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1ba21ba1

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2741 22017051 7 HPFS/NTFS
/dev/sdb2 2742 30400 222170917+ f W95 Ext'd (LBA)
/dev/sdb5 2742 15795 104856223+ 7 HPFS/NTFS
/dev/sdb6 15796 23758 63962766 7 HPFS/NTFS
/dev/sdb7 23759 30400 53351833+ 7 HPFS/NTFS

Disk /dev/sdc: 1000.2 GB, 1000204885504 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa4b57300

Device Boot Start End Blocks Id System
/dev/sdc1 1 121602 976760032+ 7 HPFS/NTFS

Disk /dev/sdd: 3957 MB, 3957325824 bytes
61 heads, 60 sectors/track, 2111 cylinders
Units = cylinders of 3660 * 512 = 1873920 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdd1 3 2112 3860480 b W95 FAT32
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 8:47 AM   #39
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Are you sure about that (you'd need to open each image file to check it, since images can be bad even if the thumbnails look OK)?

I'd suggest doing this anyway so you've got a copy of everything in the file system with the original filenames, etc. It looks like your drive labels did change again. So, this should do it for you (you should end up with all of the folders on your card under a folder named recovered1 on your external drive).

su
umount /dev/sdc1
mkdir /mnt/sdc1
mount -t ntfs-3g /dev/sdc1 /mnt/sdc1
mkdir /mnt/sdhc_img
mkdir /mnt/sdc1/recovered1
cd /mnt/sdc1
fsck -v -f -y sdhc_copy2.img
mount -o loop sdhc_copy2.img /mnt/sdhc_img
cp -r /mnt/sdhc_img /mnt/sdc1/recovered1

Let me know what you get from that. It may take a little while to finish copying all of the files with that last command (it may look like it's stuck when it's really not).
JimC is offline   Reply With Quote
Old Aug 27, 2011, 8:52 AM   #40
Member
 
Join Date: Aug 2011
Posts: 41
Default

root@mepis1 demo]# su
[root@mepis1 demo]# umount /dev/sdc1
[root@mepis1 demo]# mkdir /mnt/sdc1
mkdir: cannot create directory `/mnt/sdc1': File exists
[root@mepis1 demo]# mount -t ntfs-3g /dev/sdc1 /mnt/sdc1
[root@mepis1 demo]# mkdir /mnt/sdhc_img
[root@mepis1 demo]# mkdir /mnt/sdc1/recovered1
[root@mepis1 demo]# cd /mnt/sdc1
[root@mepis1 sdc1]# fsck -v -f -y sdhc_copy2.img
fsck from util-linux-ng 2.17.2
[root@mepis1 sdc1]# mount -o loop sdhc_copy2.img /mnt/sdhc_img
mount: you must specify the filesystem type
[root@mepis1 sdc1]# cp -r -v /mnt/sdhc_img /mnt/sdc1/recovered1
`/mnt/sdhc_img' -> `/mnt/sdc1/recovered1/sdhc_img'
[root@mepis1 sdc1]#

is that ok
??
livinggourmand is offline   Reply With Quote
 
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 6:12 AM.