How to recover data from NTFS partition after accidently running EXT4 dd on it?











up vote
1
down vote

favorite












I was trying to copy my EXT4 partition as backup and I accidentally putted my NTFS partition containing my data on the dd command.



Now my data is lost :(



I've tried testdisk but it wasn't able to find partition. What should I do?



Update: This was the command I ran:



dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync









share|improve this question
























  • Exactly what did tou run? Please update your question with the command you did run.
    – Soren A
    Nov 21 at 10:05










  • @SorenA this is what I ran dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync
    – HQuser
    Nov 21 at 10:06






  • 1




    What is overwritten is gone. dd copies data from source (if=) to destination (of=) and overwrites data on destination. Testdisk can only recover data that hasn't been overwritten. A current backup is your only hope now.
    – Soren A
    Nov 21 at 10:09










  • Is there any way to recover what can be recovered by repairing the filesystem?
    – HQuser
    Nov 21 at 10:11










  • No! ddcopies block for block and overwrites the destination - what is overwritten is gone.
    – Soren A
    Nov 21 at 10:14

















up vote
1
down vote

favorite












I was trying to copy my EXT4 partition as backup and I accidentally putted my NTFS partition containing my data on the dd command.



Now my data is lost :(



I've tried testdisk but it wasn't able to find partition. What should I do?



Update: This was the command I ran:



dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync









share|improve this question
























  • Exactly what did tou run? Please update your question with the command you did run.
    – Soren A
    Nov 21 at 10:05










  • @SorenA this is what I ran dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync
    – HQuser
    Nov 21 at 10:06






  • 1




    What is overwritten is gone. dd copies data from source (if=) to destination (of=) and overwrites data on destination. Testdisk can only recover data that hasn't been overwritten. A current backup is your only hope now.
    – Soren A
    Nov 21 at 10:09










  • Is there any way to recover what can be recovered by repairing the filesystem?
    – HQuser
    Nov 21 at 10:11










  • No! ddcopies block for block and overwrites the destination - what is overwritten is gone.
    – Soren A
    Nov 21 at 10:14















up vote
1
down vote

favorite









up vote
1
down vote

favorite











I was trying to copy my EXT4 partition as backup and I accidentally putted my NTFS partition containing my data on the dd command.



Now my data is lost :(



I've tried testdisk but it wasn't able to find partition. What should I do?



Update: This was the command I ran:



dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync









share|improve this question















I was trying to copy my EXT4 partition as backup and I accidentally putted my NTFS partition containing my data on the dd command.



Now my data is lost :(



I've tried testdisk but it wasn't able to find partition. What should I do?



Update: This was the command I ran:



dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync






hard-drive data-recovery ntfs dd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 10:26

























asked Nov 21 at 10:04









HQuser

1115




1115












  • Exactly what did tou run? Please update your question with the command you did run.
    – Soren A
    Nov 21 at 10:05










  • @SorenA this is what I ran dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync
    – HQuser
    Nov 21 at 10:06






  • 1




    What is overwritten is gone. dd copies data from source (if=) to destination (of=) and overwrites data on destination. Testdisk can only recover data that hasn't been overwritten. A current backup is your only hope now.
    – Soren A
    Nov 21 at 10:09










  • Is there any way to recover what can be recovered by repairing the filesystem?
    – HQuser
    Nov 21 at 10:11










  • No! ddcopies block for block and overwrites the destination - what is overwritten is gone.
    – Soren A
    Nov 21 at 10:14




















  • Exactly what did tou run? Please update your question with the command you did run.
    – Soren A
    Nov 21 at 10:05










  • @SorenA this is what I ran dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync
    – HQuser
    Nov 21 at 10:06






  • 1




    What is overwritten is gone. dd copies data from source (if=) to destination (of=) and overwrites data on destination. Testdisk can only recover data that hasn't been overwritten. A current backup is your only hope now.
    – Soren A
    Nov 21 at 10:09










  • Is there any way to recover what can be recovered by repairing the filesystem?
    – HQuser
    Nov 21 at 10:11










  • No! ddcopies block for block and overwrites the destination - what is overwritten is gone.
    – Soren A
    Nov 21 at 10:14


















Exactly what did tou run? Please update your question with the command you did run.
– Soren A
Nov 21 at 10:05




Exactly what did tou run? Please update your question with the command you did run.
– Soren A
Nov 21 at 10:05












@SorenA this is what I ran dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync
– HQuser
Nov 21 at 10:06




@SorenA this is what I ran dd if=/dev/sda2 of=/dev/sda1 bs=64K conv=noerror,sync
– HQuser
Nov 21 at 10:06




1




1




What is overwritten is gone. dd copies data from source (if=) to destination (of=) and overwrites data on destination. Testdisk can only recover data that hasn't been overwritten. A current backup is your only hope now.
– Soren A
Nov 21 at 10:09




What is overwritten is gone. dd copies data from source (if=) to destination (of=) and overwrites data on destination. Testdisk can only recover data that hasn't been overwritten. A current backup is your only hope now.
– Soren A
Nov 21 at 10:09












Is there any way to recover what can be recovered by repairing the filesystem?
– HQuser
Nov 21 at 10:11




Is there any way to recover what can be recovered by repairing the filesystem?
– HQuser
Nov 21 at 10:11












No! ddcopies block for block and overwrites the destination - what is overwritten is gone.
– Soren A
Nov 21 at 10:14






No! ddcopies block for block and overwrites the destination - what is overwritten is gone.
– Soren A
Nov 21 at 10:14

















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',
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%2f1094750%2fhow-to-recover-data-from-ntfs-partition-after-accidently-running-ext4-dd-on-it%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094750%2fhow-to-recover-data-from-ntfs-partition-after-accidently-running-ext4-dd-on-it%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido