How can I automate ddrescue from a failing usb hard drive?Recovering broken driveHow to find the device name...

World War I as a war of liberals against authoritarians?

What is the term when voters “dishonestly” choose something that they do not want to choose?

Differential and Linear trail propagation in Noekeon

In what cases must I use 了 and in what cases not?

Help rendering a complicated sum/product formula

Do I need to be arrogant to get ahead?

In the 1924 version of The Thief of Bagdad, no character is named, right?

How does one measure the Fourier components of a signal?

Bash - pair each line of file

What are idioms that are antonymous to "don't skimp on"?

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

Existence of a celestial body big enough for early civilization to be thought of as a second moon

Does multi-classing into Fighter give you heavy armor proficiency?

Generic TVP tradeoffs?

Worshiping one God at a time?

How do hiring committees for research positions view getting "scooped"?

What is the significance behind "40 days" that often appears in the Bible?

Describing a chess game in a novel

Can other pieces capture a threatening piece and prevent a checkmate?

Recruiter wants very extensive technical details about all of my previous work

Do I need to consider instance restrictions when showing a language is in P?

PTIJ What is the inyan of the Konami code in Uncle Moishy's song?

Why is there so much iron?

Asserting that Atheism and Theism are both faith based positions



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













3















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?










share|improve this question


















  • 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
















3















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?










share|improve this question


















  • 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














3












3








3








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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














  • 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










1 Answer
1






active

oldest

votes


















0














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.





share








New contributor




vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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%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









    0














    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.





    share








    New contributor




    vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      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.





      share








      New contributor




      vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        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.





        share








        New contributor




        vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        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.






        share








        New contributor




        vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        share


        share






        New contributor




        vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 5 mins ago









        vchrizzvchrizz

        12




        12




        New contributor




        vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        vchrizz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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%2f201945%2fhow-can-i-automate-ddrescue-from-a-failing-usb-hard-drive%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

            List of shipwrecks in 1808...

            Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

            How do I enter a file or directory with special characters in its name?How to write the path of a folder with...