How can I automate ddrescue from a failing usb hard drive?Recovering broken driveHow to find the device name of an HDD that won't mount?ddrescue is taking agesAccidentally deleted all my partitions after Ubuntu 14.04 installationHow to recover windows partitions lost during Ubuntu installationHow can I mount a drive that does not want to mount?Need help extracting data from a floppy disk formatted by an old drum machineDrive Recovery with ddrescueUsing ddrescue to recover hard drive - Don't know if image is being createdRescuing flash drive, device disappears on read error, how to create byte copy
What are idioms that are antonymous to "don't skimp on"?
Worshiping one God at a time?
How to define limit operations in general topological spaces? Are nets able to do this?
Probably overheated black color SMD pads
Deletion of copy-ctor & copy-assignment - public, private or protected?
I got the following comment from a reputed math journal. What does it mean?
Comment Box for Substitution Method of Integrals
Why is indicated airspeed rather than ground speed used during the takeoff roll?
Print last inputted byte
What does Jesus mean regarding "Raca," and "you fool?" - is he contrasting them?
How is the partial sum of a geometric sequence calculated?
What exactly term 'companion plants' means?
Geography in 3D perspective
Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?
Four married couples attend a party. Each person shakes hands with every other person, except their own spouse, exactly once. How many handshakes?
What is the term when voters “dishonestly” choose something that they do not want to choose?
Are dual Irish/British citizens bound by the 90/180 day rule when travelling in the EU after Brexit?
Violin - Can double stops be played when the strings are not next to each other?
How are passwords stolen from companies if they only store hashes?
Asserting that Atheism and Theism are both faith based positions
Brake pads destroying wheels
Generic TVP tradeoffs?
Is it insecure to send a password in a `curl` command?
If "dar" means "to give", what does "daros" mean?
How can I automate ddrescue from a failing usb hard drive?
Recovering broken driveHow to find the device name of an HDD that won't mount?ddrescue is taking agesAccidentally deleted all my partitions after Ubuntu 14.04 installationHow to recover windows partitions lost during Ubuntu installationHow can I mount a drive that does not want to mount?Need help extracting data from a floppy disk formatted by an old drum machineDrive Recovery with ddrescueUsing ddrescue to recover hard drive - Don't know if image is being createdRescuing flash drive, device disappears on read error, how to create byte copy
I've got an interesting problem...
A friend asked me to recover data from a failing external (usb) hard drive, which i've been doing using the ddrescue utility. However, every few hours the drive stops responding (this is why I'm recovering the data) and read speed drops to 0. At this point if i unplug it for 5 mins and plug it back in I can rerun the ddrescue and continue recovering. Im wondering if there is some way to automate this as the read speed is quite slow and there is a lot of data to recover.
I can power down the drive using:
udisks --unmount /dev/sdd1
udisks --detach /dev/sdd
But I have not found a way to spin up the drive again after its been "detached"
The other problem I havent figured out yet is some way to figure out when the read speed has dropped to 0 and its time to do this powercycle.
Anyone have any ideas?
usb-drive automation data-recovery
add a comment |
I've got an interesting problem...
A friend asked me to recover data from a failing external (usb) hard drive, which i've been doing using the ddrescue utility. However, every few hours the drive stops responding (this is why I'm recovering the data) and read speed drops to 0. At this point if i unplug it for 5 mins and plug it back in I can rerun the ddrescue and continue recovering. Im wondering if there is some way to automate this as the read speed is quite slow and there is a lot of data to recover.
I can power down the drive using:
udisks --unmount /dev/sdd1
udisks --detach /dev/sdd
But I have not found a way to spin up the drive again after its been "detached"
The other problem I havent figured out yet is some way to figure out when the read speed has dropped to 0 and its time to do this powercycle.
Anyone have any ideas?
usb-drive automation data-recovery
2
Not what you asked for, but it sounds like a heat related problem. If you haven't already done so remove the drive from the case and run it externally (better ventillation) and see if that improves your up time
– fabricator4
Oct 17 '12 at 3:03
tried that, and tried removing the usb enclosure all together, connecting via SATA, neither helped.
– Zenshai
Oct 26 '12 at 21:28
add a comment |
I've got an interesting problem...
A friend asked me to recover data from a failing external (usb) hard drive, which i've been doing using the ddrescue utility. However, every few hours the drive stops responding (this is why I'm recovering the data) and read speed drops to 0. At this point if i unplug it for 5 mins and plug it back in I can rerun the ddrescue and continue recovering. Im wondering if there is some way to automate this as the read speed is quite slow and there is a lot of data to recover.
I can power down the drive using:
udisks --unmount /dev/sdd1
udisks --detach /dev/sdd
But I have not found a way to spin up the drive again after its been "detached"
The other problem I havent figured out yet is some way to figure out when the read speed has dropped to 0 and its time to do this powercycle.
Anyone have any ideas?
usb-drive automation data-recovery
I've got an interesting problem...
A friend asked me to recover data from a failing external (usb) hard drive, which i've been doing using the ddrescue utility. However, every few hours the drive stops responding (this is why I'm recovering the data) and read speed drops to 0. At this point if i unplug it for 5 mins and plug it back in I can rerun the ddrescue and continue recovering. Im wondering if there is some way to automate this as the read speed is quite slow and there is a lot of data to recover.
I can power down the drive using:
udisks --unmount /dev/sdd1
udisks --detach /dev/sdd
But I have not found a way to spin up the drive again after its been "detached"
The other problem I havent figured out yet is some way to figure out when the read speed has dropped to 0 and its time to do this powercycle.
Anyone have any ideas?
usb-drive automation data-recovery
usb-drive automation data-recovery
asked Oct 17 '12 at 2:50
ZenshaiZenshai
1161
1161
2
Not what you asked for, but it sounds like a heat related problem. If you haven't already done so remove the drive from the case and run it externally (better ventillation) and see if that improves your up time
– fabricator4
Oct 17 '12 at 3:03
tried that, and tried removing the usb enclosure all together, connecting via SATA, neither helped.
– Zenshai
Oct 26 '12 at 21:28
add a comment |
2
Not what you asked for, but it sounds like a heat related problem. If you haven't already done so remove the drive from the case and run it externally (better ventillation) and see if that improves your up time
– fabricator4
Oct 17 '12 at 3:03
tried that, and tried removing the usb enclosure all together, connecting via SATA, neither helped.
– Zenshai
Oct 26 '12 at 21:28
2
2
Not what you asked for, but it sounds like a heat related problem. If you haven't already done so remove the drive from the case and run it externally (better ventillation) and see if that improves your up time
– fabricator4
Oct 17 '12 at 3:03
Not what you asked for, but it sounds like a heat related problem. If you haven't already done so remove the drive from the case and run it externally (better ventillation) and see if that improves your up time
– fabricator4
Oct 17 '12 at 3:03
tried that, and tried removing the usb enclosure all together, connecting via SATA, neither helped.
– Zenshai
Oct 26 '12 at 21:28
tried that, and tried removing the usb enclosure all together, connecting via SATA, neither helped.
– Zenshai
Oct 26 '12 at 21:28
add a comment |
1 Answer
1
active
oldest
votes
You could try usbctl or uhubctl.
Both tools are able to switch off/on usb ports if your usb chipset supports that.
After you switch off and on the port with the external disk, it should be recognized again.
To automate this, one could either monitor process activity with lsof
or similar or just simple watch the growing size of the output image file and if size does not change after some time, pkill ddrescue
once, wait until it terminated itself, then power off/on the disk and restart the ddrescue process.
New contributor
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%2f201945%2fhow-can-i-automate-ddrescue-from-a-failing-usb-hard-drive%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 could try usbctl or uhubctl.
Both tools are able to switch off/on usb ports if your usb chipset supports that.
After you switch off and on the port with the external disk, it should be recognized again.
To automate this, one could either monitor process activity with lsof
or similar or just simple watch the growing size of the output image file and if size does not change after some time, pkill ddrescue
once, wait until it terminated itself, then power off/on the disk and restart the ddrescue process.
New contributor
add a comment |
You could try usbctl or uhubctl.
Both tools are able to switch off/on usb ports if your usb chipset supports that.
After you switch off and on the port with the external disk, it should be recognized again.
To automate this, one could either monitor process activity with lsof
or similar or just simple watch the growing size of the output image file and if size does not change after some time, pkill ddrescue
once, wait until it terminated itself, then power off/on the disk and restart the ddrescue process.
New contributor
add a comment |
You could try usbctl or uhubctl.
Both tools are able to switch off/on usb ports if your usb chipset supports that.
After you switch off and on the port with the external disk, it should be recognized again.
To automate this, one could either monitor process activity with lsof
or similar or just simple watch the growing size of the output image file and if size does not change after some time, pkill ddrescue
once, wait until it terminated itself, then power off/on the disk and restart the ddrescue process.
New contributor
You could try usbctl or uhubctl.
Both tools are able to switch off/on usb ports if your usb chipset supports that.
After you switch off and on the port with the external disk, it should be recognized again.
To automate this, one could either monitor process activity with lsof
or similar or just simple watch the growing size of the output image file and if size does not change after some time, pkill ddrescue
once, wait until it terminated itself, then power off/on the disk and restart the ddrescue process.
New contributor
edited 12 mins ago
New contributor
answered 19 mins ago
vchrizzvchrizz
13
13
New contributor
New contributor
add a comment |
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.
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%2f201945%2fhow-can-i-automate-ddrescue-from-a-failing-usb-hard-drive%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
2
Not what you asked for, but it sounds like a heat related problem. If you haven't already done so remove the drive from the case and run it externally (better ventillation) and see if that improves your up time
– fabricator4
Oct 17 '12 at 3:03
tried that, and tried removing the usb enclosure all together, connecting via SATA, neither helped.
– Zenshai
Oct 26 '12 at 21:28