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













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.



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.






share|improve this answer










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.



    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.






    share|improve this answer










    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.



      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.






      share|improve this answer










      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.



        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.






        share|improve this answer










        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.



        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.







        share|improve this answer










        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|improve this answer



        share|improve this answer








        edited 12 mins ago





















        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 19 mins ago









        vchrizzvchrizz

        13




        13




        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

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org