How to read data from `safecopy` image file












0















The hard disk of a ThinkPad with a Windows 7 install was failing, so I tried to recover as much data as possible.



For that I started the ThinkPad with an Ubuntu Live USB, started the terminal and ran safecopy. It managed to recover 139 GB of ~149GB from that failing HD.



This is how I ran it:



sudo safecopy --stage1 /dev/sdd2 /media/ubuntu/ssd256a/thinkpad.img


So now I have an img file on an external SSD, and the original HD cannot be read anymore.



Tried to mount the img file like so:



$ sudo mount -o loop thinkpad.img 
mount: thinkpad.img: can't find in /etc/fstab.


I can't mount it obviously.



Finally I run fdisk



parallels@parallels-Parallels-Virtual-Platform:/media/psf/ssd256a$ !31
fdisk -lu thinkpad.img
Disk thinkpad.img: 139 GiB, 149186150400 bytes, 291379200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


So there is no info about partition table.



Now I am lost.



How can I read / get the files out of this img file?










share|improve this question


















  • 1





    There seems to be nothing wrong. You merely have not provided the mount command enough information for it to do it's job. You didn't tell it the (-t) type, nor where in your filesystem you want it to be mounted.

    – user535733
    Mar 16 at 15:48













  • Thank you very much for your answer. - So I need to specify the type (ntfs in my case, but I suppose auto will do as well), and where to mount. But what about the missing partition table?

    – Ugur
    Mar 16 at 16:06











  • So this is what I tried: parallels@parallels-Parallels-Virtual-Platform:~$ sudo mount /media/psf/ssd256a/thinkpad.img /media/thinkpad/ -t auto and I get the error message mount: /media/thinkpad: can't read superblock on /dev/loop23.

    – Ugur
    Mar 16 at 16:15


















0















The hard disk of a ThinkPad with a Windows 7 install was failing, so I tried to recover as much data as possible.



For that I started the ThinkPad with an Ubuntu Live USB, started the terminal and ran safecopy. It managed to recover 139 GB of ~149GB from that failing HD.



This is how I ran it:



sudo safecopy --stage1 /dev/sdd2 /media/ubuntu/ssd256a/thinkpad.img


So now I have an img file on an external SSD, and the original HD cannot be read anymore.



Tried to mount the img file like so:



$ sudo mount -o loop thinkpad.img 
mount: thinkpad.img: can't find in /etc/fstab.


I can't mount it obviously.



Finally I run fdisk



parallels@parallels-Parallels-Virtual-Platform:/media/psf/ssd256a$ !31
fdisk -lu thinkpad.img
Disk thinkpad.img: 139 GiB, 149186150400 bytes, 291379200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


So there is no info about partition table.



Now I am lost.



How can I read / get the files out of this img file?










share|improve this question


















  • 1





    There seems to be nothing wrong. You merely have not provided the mount command enough information for it to do it's job. You didn't tell it the (-t) type, nor where in your filesystem you want it to be mounted.

    – user535733
    Mar 16 at 15:48













  • Thank you very much for your answer. - So I need to specify the type (ntfs in my case, but I suppose auto will do as well), and where to mount. But what about the missing partition table?

    – Ugur
    Mar 16 at 16:06











  • So this is what I tried: parallels@parallels-Parallels-Virtual-Platform:~$ sudo mount /media/psf/ssd256a/thinkpad.img /media/thinkpad/ -t auto and I get the error message mount: /media/thinkpad: can't read superblock on /dev/loop23.

    – Ugur
    Mar 16 at 16:15
















0












0








0








The hard disk of a ThinkPad with a Windows 7 install was failing, so I tried to recover as much data as possible.



For that I started the ThinkPad with an Ubuntu Live USB, started the terminal and ran safecopy. It managed to recover 139 GB of ~149GB from that failing HD.



This is how I ran it:



sudo safecopy --stage1 /dev/sdd2 /media/ubuntu/ssd256a/thinkpad.img


So now I have an img file on an external SSD, and the original HD cannot be read anymore.



Tried to mount the img file like so:



$ sudo mount -o loop thinkpad.img 
mount: thinkpad.img: can't find in /etc/fstab.


I can't mount it obviously.



Finally I run fdisk



parallels@parallels-Parallels-Virtual-Platform:/media/psf/ssd256a$ !31
fdisk -lu thinkpad.img
Disk thinkpad.img: 139 GiB, 149186150400 bytes, 291379200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


So there is no info about partition table.



Now I am lost.



How can I read / get the files out of this img file?










share|improve this question














The hard disk of a ThinkPad with a Windows 7 install was failing, so I tried to recover as much data as possible.



For that I started the ThinkPad with an Ubuntu Live USB, started the terminal and ran safecopy. It managed to recover 139 GB of ~149GB from that failing HD.



This is how I ran it:



sudo safecopy --stage1 /dev/sdd2 /media/ubuntu/ssd256a/thinkpad.img


So now I have an img file on an external SSD, and the original HD cannot be read anymore.



Tried to mount the img file like so:



$ sudo mount -o loop thinkpad.img 
mount: thinkpad.img: can't find in /etc/fstab.


I can't mount it obviously.



Finally I run fdisk



parallels@parallels-Parallels-Virtual-Platform:/media/psf/ssd256a$ !31
fdisk -lu thinkpad.img
Disk thinkpad.img: 139 GiB, 149186150400 bytes, 291379200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


So there is no info about partition table.



Now I am lost.



How can I read / get the files out of this img file?







partitioning hard-drive data-recovery






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 16 at 14:34









UgurUgur

1011




1011








  • 1





    There seems to be nothing wrong. You merely have not provided the mount command enough information for it to do it's job. You didn't tell it the (-t) type, nor where in your filesystem you want it to be mounted.

    – user535733
    Mar 16 at 15:48













  • Thank you very much for your answer. - So I need to specify the type (ntfs in my case, but I suppose auto will do as well), and where to mount. But what about the missing partition table?

    – Ugur
    Mar 16 at 16:06











  • So this is what I tried: parallels@parallels-Parallels-Virtual-Platform:~$ sudo mount /media/psf/ssd256a/thinkpad.img /media/thinkpad/ -t auto and I get the error message mount: /media/thinkpad: can't read superblock on /dev/loop23.

    – Ugur
    Mar 16 at 16:15
















  • 1





    There seems to be nothing wrong. You merely have not provided the mount command enough information for it to do it's job. You didn't tell it the (-t) type, nor where in your filesystem you want it to be mounted.

    – user535733
    Mar 16 at 15:48













  • Thank you very much for your answer. - So I need to specify the type (ntfs in my case, but I suppose auto will do as well), and where to mount. But what about the missing partition table?

    – Ugur
    Mar 16 at 16:06











  • So this is what I tried: parallels@parallels-Parallels-Virtual-Platform:~$ sudo mount /media/psf/ssd256a/thinkpad.img /media/thinkpad/ -t auto and I get the error message mount: /media/thinkpad: can't read superblock on /dev/loop23.

    – Ugur
    Mar 16 at 16:15










1




1





There seems to be nothing wrong. You merely have not provided the mount command enough information for it to do it's job. You didn't tell it the (-t) type, nor where in your filesystem you want it to be mounted.

– user535733
Mar 16 at 15:48







There seems to be nothing wrong. You merely have not provided the mount command enough information for it to do it's job. You didn't tell it the (-t) type, nor where in your filesystem you want it to be mounted.

– user535733
Mar 16 at 15:48















Thank you very much for your answer. - So I need to specify the type (ntfs in my case, but I suppose auto will do as well), and where to mount. But what about the missing partition table?

– Ugur
Mar 16 at 16:06





Thank you very much for your answer. - So I need to specify the type (ntfs in my case, but I suppose auto will do as well), and where to mount. But what about the missing partition table?

– Ugur
Mar 16 at 16:06













So this is what I tried: parallels@parallels-Parallels-Virtual-Platform:~$ sudo mount /media/psf/ssd256a/thinkpad.img /media/thinkpad/ -t auto and I get the error message mount: /media/thinkpad: can't read superblock on /dev/loop23.

– Ugur
Mar 16 at 16:15







So this is what I tried: parallels@parallels-Parallels-Virtual-Platform:~$ sudo mount /media/psf/ssd256a/thinkpad.img /media/thinkpad/ -t auto and I get the error message mount: /media/thinkpad: can't read superblock on /dev/loop23.

– Ugur
Mar 16 at 16:15












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126178%2fhow-to-read-data-from-safecopy-image-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1126178%2fhow-to-read-data-from-safecopy-image-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局