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

Reply
 
Thread Tools Search this Thread
Old Aug 26, 2011, 12:03 PM   #11
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Sorry for the delay.

Great. It sounds like you just had a bad burn (that happens and burning at a slower speed often helps to prevent that).

I see you have multiple drives in the system. The first drive is a 1TB drive with unusual partitioning. I'm assuming that Windows is probably on sda6. The second drive in your system also has an unusual partitioning scheme. I'm assuming you just set them up using an extended partition so you could get define more logical partitions for some reason.

We just need to figure out the best place to save a copy of your memory card. I 'd probably save it to the drive you have that's 1 large NTFS partition (the one showing up as /dev/sdc, which is the third drive in your system). I'm assuming that's probably an external drive.

Note that I'd just use Firefox and copy and paste commands. You'll find it already installed in Mepis (under the Internet Section of the menus). Just use Edit>Copy from Firefox, then use Edit>Paste in Konsole after you click in it.

For starters, do this from Konsole for me (just use Firefox from within Mepis and copy and paste all of this from a forum post into Konsole, then press Enter so that photorec runs against the captured disk image file). Type root for the password if prompted.

su
cd /mnt
mkdir sdc1
umount /dev/sdc1
mount -t ntfs-3g /dev/sdc1 /mnt/sdc1
cd /mnt/sdc1
umount /dev/sdd1
ddrescue /dev/sdd sdhc_copy1.img sdhc_copy1.log
photorec sdhc_copy1.img

What that's doing is making sure you're running with root permissions (that's what the su command is for). Then, the cd /mnt command is changing to the /mnt folder. Then, the mkdir sdc1 command is creating a folder under it named sdc1. It may already be there. So, if you see any errors, no big deal.

Then, we're going to unmount and remount /dev/sdc1 (it's the first partition on the third drive in your system, which is an NTFS partition on a 1TB Drive) as read/write, where it will show up as a folder under /mnt/sdc1, and navigate to it. It may or may not be mounted already, so you may see errors. I'm just unmounting it and remounting it to make sure it's the way I need it for the rest of the commands so that I know how it's mounted.

Then, we're going to change to that folder (/mnt/sdc1) and make sure /dev/sdd1 (the partition on your memory card) is unmounted. We do not want it to be mounted for copying it (and if you accidentally clicked on it from Dolphin, it might be, so we're going to unmount it using a umount command to make sure it's not mounted). Then, we're going to make a disk image copy of it using ddrescue, saving it to a file named sdhc_copy1.img located in the root directory of the 1TB drive you have that's formatted as one large ntfs partition (/mnt/sdc1, which we've already navigated to in that set of commands). We're using a log file (sdhc_copy1.log) so that ddrescue can make multiple passes to try and get a better copy if it sees any errors. After that, we're running photorec against the disk image file of your card.

Do that much (paste those commands into Konsole, then paste the output of those commands into a forum post here after it finishes running). That may be enough to get images that are not corrupted back for you if ddrescue can get a good copy of the card (and if you don't see any errors from the copy with ddrescue, then there may not be anything further on it that's recoverable that you didn't already get before).

Again, you'll find Firefox in the menus, so you can access the forums from Mepis as long as you have an internet connnection (no need to capture screens, as you can just highlight the text in Konsole, and then copy and paste the text using Edit>Copy, and paste it into a forum post using Edit>Paste). If you don't have a connection from Firefox, click on the Network Manager icon in the system tray (just to the right of the volume control icon) and then click on your network adapter in the list that comes up to make a connection. It will use dhcp by default. But if you're set up differently (for example, using a static IP address), you'll see a button to manage connections to change network settings as desired.
JimC is offline   Reply With Quote
Old Aug 27, 2011, 12:31 AM   #12
Member
 
Join Date: Aug 2011
Posts: 41
Default

JimC,

My windows is installed in 250 gb hard disk.
I added the 1TB HD later...

and yes the last 1TB HD is an external device.

so plz let me know if there will be any change in command.

and wat fool i am ... I didnt see u replied as i was only checking page 1 of the thread
:P
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 12:57 AM   #13
Member
 
Join Date: Aug 2011
Posts: 41
Default

I have taken a screenshot of dolphin
this will help u understand my pc a bit

http://postimage.org/image/4bulelb8/full/

1 more thing i could not find memory card in dolphin y??

thnx
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 3:17 AM   #14
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

If you run those commands, you are not supposed to be able to find it in Dolphin, since we were unmounting the card. We do not want it mounted, so please do not click on it. If it was not there before running those commands, then it's probably got errors and is unmountable (unless it's force mounted). Do not worry about that part. Because we suspect it has errors is the reason we're using ddrescue to copy it. ;-) It should still be copyable using ddrescue if it shows up using fdisk -l (and it did when you ran it), and we do not care if it's mountable or not the way we're approaching your problem.

Did you copy and paste those commands into Konsole and run them? If so, can you copy and paste the output from Konsole to a post here so I can see what those commands reported?

If everything ran OK, then you should have seen ddrescue report that it "rescued" (copied) all of the card OK, and photorec should have been able to recover images from the disk image file created (sdhc_copy1.img), writing them to folders labeled recup, recup1, etc. (located on your 1TB External drive by default unless you changed the location being saved to when running it).
JimC is offline   Reply With Quote
Old Aug 27, 2011, 3:46 AM   #15
Member
 
Join Date: Aug 2011
Posts: 41
Default

I copied n pasted whole cmd at once
this is wat i got..

[root@mepis1 demo]# mountsu
bash: mountsu: command not found
[root@mepis1 demo]# cd /mnt
[root@mepis1 mnt]# mkdir sdc1
mkdir: cannot create directory `sdc1': File exists
[root@mepis1 mnt]# umount /dev/sdc1
umount: /dev/sdc1: not mounted
[root@mepis1 mnt]# mount -t ntfs-3g /dev/sdc1 /mnt/sdc1
[root@mepis1 mnt]# cd /mnt/sdc1
[root@mepis1 sdc1]# umount /dev/sdd1
umount: /dev/sdd1: not mounted
[root@mepis1 sdc1]# ddrescue /dev/sdd sdhc_copy1.img sdhc_copy1.log

it is still running
is that ok?
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 3:52 AM   #16
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

The first command was a problem. That looks like you had typed in mount before and never pressed the Enter key after it (what your first screen capture looked like -- I just never mentioned it to you since seeing it's output was not that important). So, the su command you just pasted didn't work (because it was appended to the line with mount on it versus being on a line by itself). You need to press Enter after copying and pasting commands. Otherwise, the last command pasted never gets run.

That's not problem if you were in the same konsole session, since su should have worked when you ran it before and left it in superuser mode (and if you see red text for your prompt in Konsole, then you're running with root permissions, which is what we want)

Yes, that's fine if it's still running, and everything else looks as expected (that you saw it report that sdc1 was already there was expected, as was the output from the umount commands; as I was only using those to make sure they were unmounted). That it is still running is a good sign (meaning it's copying the card). You should see it reporting how much it's copied OK (shown as "rescued") while it's running.

Then, when it's finished photorec should start (as long as you pressed the enter key after copying and pasting those commands into Konsole). If not, press your Enter key when ddrescue finishes running to start photorec. Just use the defaults for where it's saving to (and your recovered photos will be in folders on your external drive labeled recup, recup1, recup2, etc). After ddrescue finishes running, then you should see this command to start photorec as the last line you already pasted into Konsole (after ddrescue):

photorec sdhc_copy1.img

Basically, you're going to run photorec the same way you did before when you used it with Windows. But, this time, we're running it against a disk image copy of your card versus the physical card (which may have sector read errors since it wasn't able to retrieve all of your images before and you said you saw sector errors), so that photorec will not need to deal with any physical errors on the card (since the copy you make with ddrescue will not have any physical sector errors, even though it may still have file system errors, since the copy will be in an image file on a good disk drive versus on a card with sector read problems).
JimC is offline   Reply With Quote
Old Aug 27, 2011, 4:07 AM   #17
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

P.S.

Please copy and paste the output from ddrescue when it's done so I can see what it reported copying. Are you seeing it report any errors while it's running now? Note that if it sees errors, it should try to work around them and make the best copy it can, rereading those areas since we told it to use a log file to keep track of what it's copied OK (which lets it retry copying areas that it saw errors on the first time around, without needing to recopy what it already copied without errors). If it is seeing a lot of errors and you don't get any more images back with photorec, we may want to try doing something different (for example, unplug the card for a while to let the card cool off, then plug it back in and run ddrescue again).
JimC is offline   Reply With Quote
Old Aug 27, 2011, 5:13 AM   #18
Member
 
Join Date: Aug 2011
Posts: 41
Default

hey i was able to recover few images ,
so i repeated the steps and i recoverd few more images.

then i unplugged the card and change ports
and tried to run the cmd but i got error

may be because of the change in port
can u make som changes in cmd so that it works again.

i m pasting the bash screen below:

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: 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/sdc1 3 2112 3860480 b W95 FAT32

Disk /dev/sdd: 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/sdd1 1 121602 976760032+ 7 HPFS/NTFS
[root@mepis1 demo]# mount
tmpfs on /linux/lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sr0 on /cdrom type iso9660 (ro,relatime)
/dev/loop0 on /linux type squashfs (ro,relatime)
/ramdisk on /ramdisk type tmpfs (rw,relatime,size=998912k,nr_inodes=124864,mode=75 5)
/ramdisk on /home type tmpfs (rw,relatime,size=998912k,nr_inodes=124864,mode=75 5)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdb5 on /mnt/sdb5 type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096,d efault_permissions,user=demo)
/dev/sdd1 on /media/FreeAgent GoFlex Drive type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
[root@mepis1 demo]# su
[root@mepis1 demo]# cd /mnt
[root@mepis1 mnt]# mkdir sdc1
mkdir: cannot create directory `sdc1': File exists
[root@mepis1 mnt]# umount /dev/sdc1
umount: /dev/sdc1: not mounted
[root@mepis1 mnt]# mount -t ntfs-3g /dev/sdc1 /mnt/sdc1
NTFS signature is missing.
Failed to mount '/dev/sdc1': Invalid argument
The device '/dev/sdc1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
[root@mepis1 mnt]# ^C
[root@mepis1 mnt]#



and thanks a lot...
i never thot i cld recover these images.

ur work and time spent is much appreciated.
livinggourmand is offline   Reply With Quote
Old Aug 27, 2011, 5:22 AM   #19
Administrator
 
Join Date: Jun 2003
Location: Savannah, GA (USA)
Posts: 22,378
Default

Don't do that anything like that without checking with me first to make sure you know what you're doing, you could risk messing something up (like corrupting your existing Windows partitions if you don't unmount one first, as I'm seeing errors indicating you may have already done that if the external drive label did not change).

Did you unplug that drive (your external drive) while you were unplugging your card reader?

You can't unplug a mounted drive unless you want to risk corrupting it's file system, and that error about sdc1 does not look good. Again, unless you want to corrupt your hard drives, do not start unplugging them without asking me about how to do it safely first, as it looks like you may have corrupted a file system.

What do you get when you do this now?

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

oh ! i didnt know that....
i ll take care from now on

here is what i get when i run

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: 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/sdc1 3 2112 3860480 b W95 FAT32

Disk /dev/sdd: 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/sdd1 1 121602 976760032+ 7 HPFS/NTFS
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 3:21 AM.