HELP pls - rescue data from usb

have copied some data to usb from another pc. when trying to restore, the files are not shown in some folders. :’(

the usb is 32gb. df shows that some 6gb is used (refer below 19% used). hopefully the files are there somehow?
View image: 1 df sdb1 5g

the usb could be mounted. dophin shows all the folders. however in some folders no files are shown (when there should be something there).
View image: 2 all folders are shown for usb
View image: 3 some folders show nothing

for some folders files could be shown correctly. and the files could be copied to hdd.
View image: 4 some folders show normal

google seems suggest that I need ddrescue. however having some problems during install. what should I choose (1 or 2) encountering below?
View image: 9 ddrescue install

and after I have installed ddrescue how to proceed?

have tried photorec which does not help. only those normal files, total 448 mb are recovered. I am expecting some 6gb.
View image: 6 running photorec

HELP appreciated… tks

Please do not use pictures elsewhere when not strickly needed. We have to click forward and back until our fingers are falling apart. You copy/paste the text from the terminal window (Konsole in your case) in between CODE tags in your post. You get the CODE tags by clicking on the # button in the toolbar of the post editor.

You can see a lot of the posts here on the forums to get an impression on how that looks.

On 2013-06-16 16:36, andy0023 wrote:
>
> have copied some data to usb from another pc. when trying to restore,
> the files are not shown in some folders. :’(

Are you sure they were really copied?

> google seems suggest that I need ddrescue. however having some
> problems during install. what should I choose (1 or 2) encountering
> below?
> ‘View image: 9 ddrescue install’ (http://postimg.org/image/npe56z1ll/)

Why do you want to install an older version?
Why do you want to install something that is already installed?

>
> and after I have installed ddrescue how to proceed?

dd_rescue is used to clone a disk or partition to another one, not to
repair. You can, of course, clone the disk and work on the clone, not
the original - which is why it is suggested to use it.

> have tried photorec which does not help. only those normal files,
> total 448 mb are recovered. I am expecting some 6gb.
> ‘View image: 6 running photorec’ (http://postimg.org/image/hlwkn2bbt/)

Photorec is really good for restoring photos, some multimedia, but
little else, unfortunately.

I would simply go to the original computer and get the files again,
making sure not to unplug the thing before it is really finished.
Previously, I would run a disk check in Windows (I’m assuming the other
computer is Windows).


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

hi Carlos and all,

  1. I thought files shd have been copied. no error msg when I copied from windows to usb. currently df reads usb used 6gb. but summing up the individual folders is only 500mb. so I hope that the files are still somehow in the usb.

  2. so believe that I shd use dd_rescue and no need try installing ddrescue.
    I am thinking to try something like

dd_rescue /dev/sdb1 /dev/sda5/backup.img        --- hope to create an image file in root folder
fsck -y /dev/sda5/backup.img        ---- hope to repair the image file
mount /dev/sda5/backup.img /mnt/recoverydata              --- hope that all my files in usb would appear in /mnt/recoverydata 
  1. what I lost are jpg and mov files. unluckily photorec seems not helping me.

  2. the poor thing is that the original files in windows have been removed.

I am noob of linux shell and unsure of the steps in (2). any advice would be appreciated. tks.

On 2013-06-16 19:56, andy0023 wrote:

> I am thinking to try something like
>
> Code:
> --------------------
> dd_rescue /dev/sdb1 /dev/sda5/backup.img — hope to create an image file in root folder
> fsck -y /dev/sda5/backup.img ---- hope to repair the image file
> mount /dev/sda5/backup.img /mnt/recoverydata — hope that all my files in usb would appear in /mnt/recoverydata
> --------------------

**** STOP!!!

That destroys your root folder!

dd_rescue /dev/sdb1 /root/backup.img

> 3. what I lost are jpg and mov files. unluckily photorec seems not
> helping me.
>
> 4. the poor thing is that the original files in windows have been
> removed.

Gosh. :frowning:

Do not ever trust usb/flash stick, they fail.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2013-06-16 19:56, andy0023 wrote:

> Code:
> --------------------
> mount /dev/sda5/backup.img /mnt/recoverydata — hope that all my files in usb would appear in /mnt/recoverydata
> --------------------


mount -o loop=/dev/loop0 /root/backup.img /mnt

> 3. what I lost are jpg and mov files. unluckily photorec seems not
> helping me.

Probably they were never really copied.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)