dd-backup of corrupted disk
I used dd to create a imagefile of a partition of my external hdd. I used the 'conv=noerror,sync' option to skip readerrors and it did a full copy.
'sudo dd if=/dev/sdd of="/media/me/out/theimage.img" conv=noerror,sync'
Now I noticed that fsck returns some errors on the source-disk /dev/sdd. I had fsck repair the disk, which went well.
Now the question is: Should I make a new imagefile? Could it be that dd missed some data due to corrupted filesystem or some such?
Or can I use fsck to fix the imagefile just like it fixed the disk?
Right now if I run fsck on the image file, it screams at me that there are issues with the filesystem...
partitioning hard-drive dd fsck
add a comment |
I used dd to create a imagefile of a partition of my external hdd. I used the 'conv=noerror,sync' option to skip readerrors and it did a full copy.
'sudo dd if=/dev/sdd of="/media/me/out/theimage.img" conv=noerror,sync'
Now I noticed that fsck returns some errors on the source-disk /dev/sdd. I had fsck repair the disk, which went well.
Now the question is: Should I make a new imagefile? Could it be that dd missed some data due to corrupted filesystem or some such?
Or can I use fsck to fix the imagefile just like it fixed the disk?
Right now if I run fsck on the image file, it screams at me that there are issues with the filesystem...
partitioning hard-drive dd fsck
add a comment |
I used dd to create a imagefile of a partition of my external hdd. I used the 'conv=noerror,sync' option to skip readerrors and it did a full copy.
'sudo dd if=/dev/sdd of="/media/me/out/theimage.img" conv=noerror,sync'
Now I noticed that fsck returns some errors on the source-disk /dev/sdd. I had fsck repair the disk, which went well.
Now the question is: Should I make a new imagefile? Could it be that dd missed some data due to corrupted filesystem or some such?
Or can I use fsck to fix the imagefile just like it fixed the disk?
Right now if I run fsck on the image file, it screams at me that there are issues with the filesystem...
partitioning hard-drive dd fsck
I used dd to create a imagefile of a partition of my external hdd. I used the 'conv=noerror,sync' option to skip readerrors and it did a full copy.
'sudo dd if=/dev/sdd of="/media/me/out/theimage.img" conv=noerror,sync'
Now I noticed that fsck returns some errors on the source-disk /dev/sdd. I had fsck repair the disk, which went well.
Now the question is: Should I make a new imagefile? Could it be that dd missed some data due to corrupted filesystem or some such?
Or can I use fsck to fix the imagefile just like it fixed the disk?
Right now if I run fsck on the image file, it screams at me that there are issues with the filesystem...
partitioning hard-drive dd fsck
partitioning hard-drive dd fsck
asked Dec 18 at 22:08
bernd feinman
133
133
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can do either: fix the image file or make a new one.
However, I would use ddrescue instead of dd as it was designed to be able to read bad sectores / skip over them / ...:
sudo apt install gddrescue
ddrescue --retry-passes=3 /dev/sdd /media/me/out/theimage.img /media/me/out/theimage.log
For more info: man ddrescue
Thanks. Ironically, ddrescue hangs on me... log: # current_pos current_status current_pass 0x6F3170000 ? 1 # pos size status 0x00000000 0x6F3180000 + 0x6F3180000 0xD4C6E80000 ?
– bernd feinman
Dec 19 at 1:16
Read all of the documentation: you have a bad sector and it doesn't hang: it's trying to continue...
– Fabby
Dec 19 at 1:16
1
How long can that take though? It's been stuck for at least 15 min. I'll let it run overnight.
– bernd feinman
Dec 19 at 1:22
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1102948%2fdd-backup-of-corrupted-disk%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can do either: fix the image file or make a new one.
However, I would use ddrescue instead of dd as it was designed to be able to read bad sectores / skip over them / ...:
sudo apt install gddrescue
ddrescue --retry-passes=3 /dev/sdd /media/me/out/theimage.img /media/me/out/theimage.log
For more info: man ddrescue
Thanks. Ironically, ddrescue hangs on me... log: # current_pos current_status current_pass 0x6F3170000 ? 1 # pos size status 0x00000000 0x6F3180000 + 0x6F3180000 0xD4C6E80000 ?
– bernd feinman
Dec 19 at 1:16
Read all of the documentation: you have a bad sector and it doesn't hang: it's trying to continue...
– Fabby
Dec 19 at 1:16
1
How long can that take though? It's been stuck for at least 15 min. I'll let it run overnight.
– bernd feinman
Dec 19 at 1:22
add a comment |
You can do either: fix the image file or make a new one.
However, I would use ddrescue instead of dd as it was designed to be able to read bad sectores / skip over them / ...:
sudo apt install gddrescue
ddrescue --retry-passes=3 /dev/sdd /media/me/out/theimage.img /media/me/out/theimage.log
For more info: man ddrescue
Thanks. Ironically, ddrescue hangs on me... log: # current_pos current_status current_pass 0x6F3170000 ? 1 # pos size status 0x00000000 0x6F3180000 + 0x6F3180000 0xD4C6E80000 ?
– bernd feinman
Dec 19 at 1:16
Read all of the documentation: you have a bad sector and it doesn't hang: it's trying to continue...
– Fabby
Dec 19 at 1:16
1
How long can that take though? It's been stuck for at least 15 min. I'll let it run overnight.
– bernd feinman
Dec 19 at 1:22
add a comment |
You can do either: fix the image file or make a new one.
However, I would use ddrescue instead of dd as it was designed to be able to read bad sectores / skip over them / ...:
sudo apt install gddrescue
ddrescue --retry-passes=3 /dev/sdd /media/me/out/theimage.img /media/me/out/theimage.log
For more info: man ddrescue
You can do either: fix the image file or make a new one.
However, I would use ddrescue instead of dd as it was designed to be able to read bad sectores / skip over them / ...:
sudo apt install gddrescue
ddrescue --retry-passes=3 /dev/sdd /media/me/out/theimage.img /media/me/out/theimage.log
For more info: man ddrescue
answered Dec 19 at 0:01
Fabby
26.4k1360159
26.4k1360159
Thanks. Ironically, ddrescue hangs on me... log: # current_pos current_status current_pass 0x6F3170000 ? 1 # pos size status 0x00000000 0x6F3180000 + 0x6F3180000 0xD4C6E80000 ?
– bernd feinman
Dec 19 at 1:16
Read all of the documentation: you have a bad sector and it doesn't hang: it's trying to continue...
– Fabby
Dec 19 at 1:16
1
How long can that take though? It's been stuck for at least 15 min. I'll let it run overnight.
– bernd feinman
Dec 19 at 1:22
add a comment |
Thanks. Ironically, ddrescue hangs on me... log: # current_pos current_status current_pass 0x6F3170000 ? 1 # pos size status 0x00000000 0x6F3180000 + 0x6F3180000 0xD4C6E80000 ?
– bernd feinman
Dec 19 at 1:16
Read all of the documentation: you have a bad sector and it doesn't hang: it's trying to continue...
– Fabby
Dec 19 at 1:16
1
How long can that take though? It's been stuck for at least 15 min. I'll let it run overnight.
– bernd feinman
Dec 19 at 1:22
Thanks. Ironically, ddrescue hangs on me... log: # current_pos current_status current_pass 0x6F3170000 ? 1 # pos size status 0x00000000 0x6F3180000 + 0x6F3180000 0xD4C6E80000 ?
– bernd feinman
Dec 19 at 1:16
Thanks. Ironically, ddrescue hangs on me... log: # current_pos current_status current_pass 0x6F3170000 ? 1 # pos size status 0x00000000 0x6F3180000 + 0x6F3180000 0xD4C6E80000 ?
– bernd feinman
Dec 19 at 1:16
Read all of the documentation: you have a bad sector and it doesn't hang: it's trying to continue...
– Fabby
Dec 19 at 1:16
Read all of the documentation: you have a bad sector and it doesn't hang: it's trying to continue...
– Fabby
Dec 19 at 1:16
1
1
How long can that take though? It's been stuck for at least 15 min. I'll let it run overnight.
– bernd feinman
Dec 19 at 1:22
How long can that take though? It's been stuck for at least 15 min. I'll let it run overnight.
– bernd feinman
Dec 19 at 1:22
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1102948%2fdd-backup-of-corrupted-disk%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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