Debian doesn't run cron after moving boot disk

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I'm working on a bunch of custom scripts for Debian to run on an Odroid. My OS is on an SD card.



Recently I needed to clone this SD card to another Odroid. I copied an image using Win32DiskImager on my Windows PC and wrote that image to a fresh SD card. After booting from this SD card on the second Odroid I found that a lot of things had mysteriously broken.



Firstly my /etc/network/interfaces file got wiped, so I had to manually reenter info for the eth0 and lo. More frustrating than this though is that for some reason, at least two services don't run on boot anymore, namely SSH and cron. This is really troublesome.



I'm not sure how to rectify this or how to stop it from happening again. This is a big problem for me since I need to copy this image to a lot of Odroids.










share|improve this question
























  • I would advise trying to including a modicum of technical detail and debugging here. Otherwise, you are just asking people to guess.

    – Rui F Ribeiro
    Jan 24 at 22:55
















0















I'm working on a bunch of custom scripts for Debian to run on an Odroid. My OS is on an SD card.



Recently I needed to clone this SD card to another Odroid. I copied an image using Win32DiskImager on my Windows PC and wrote that image to a fresh SD card. After booting from this SD card on the second Odroid I found that a lot of things had mysteriously broken.



Firstly my /etc/network/interfaces file got wiped, so I had to manually reenter info for the eth0 and lo. More frustrating than this though is that for some reason, at least two services don't run on boot anymore, namely SSH and cron. This is really troublesome.



I'm not sure how to rectify this or how to stop it from happening again. This is a big problem for me since I need to copy this image to a lot of Odroids.










share|improve this question
























  • I would advise trying to including a modicum of technical detail and debugging here. Otherwise, you are just asking people to guess.

    – Rui F Ribeiro
    Jan 24 at 22:55














0












0








0








I'm working on a bunch of custom scripts for Debian to run on an Odroid. My OS is on an SD card.



Recently I needed to clone this SD card to another Odroid. I copied an image using Win32DiskImager on my Windows PC and wrote that image to a fresh SD card. After booting from this SD card on the second Odroid I found that a lot of things had mysteriously broken.



Firstly my /etc/network/interfaces file got wiped, so I had to manually reenter info for the eth0 and lo. More frustrating than this though is that for some reason, at least two services don't run on boot anymore, namely SSH and cron. This is really troublesome.



I'm not sure how to rectify this or how to stop it from happening again. This is a big problem for me since I need to copy this image to a lot of Odroids.










share|improve this question
















I'm working on a bunch of custom scripts for Debian to run on an Odroid. My OS is on an SD card.



Recently I needed to clone this SD card to another Odroid. I copied an image using Win32DiskImager on my Windows PC and wrote that image to a fresh SD card. After booting from this SD card on the second Odroid I found that a lot of things had mysteriously broken.



Firstly my /etc/network/interfaces file got wiped, so I had to manually reenter info for the eth0 and lo. More frustrating than this though is that for some reason, at least two services don't run on boot anymore, namely SSH and cron. This is really troublesome.



I'm not sure how to rectify this or how to stop it from happening again. This is a big problem for me since I need to copy this image to a lot of Odroids.







ssh boot cron sd-card






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 24 at 22:53









Rui F Ribeiro

40.1k1479136




40.1k1479136










asked Jan 24 at 22:33









user333291user333291

1




1












  • I would advise trying to including a modicum of technical detail and debugging here. Otherwise, you are just asking people to guess.

    – Rui F Ribeiro
    Jan 24 at 22:55


















  • I would advise trying to including a modicum of technical detail and debugging here. Otherwise, you are just asking people to guess.

    – Rui F Ribeiro
    Jan 24 at 22:55

















I would advise trying to including a modicum of technical detail and debugging here. Otherwise, you are just asking people to guess.

– Rui F Ribeiro
Jan 24 at 22:55






I would advise trying to including a modicum of technical detail and debugging here. Otherwise, you are just asking people to guess.

– Rui F Ribeiro
Jan 24 at 22:55











1 Answer
1






active

oldest

votes


















0














Network configuration is tied to a specific interface - if you've put image in second piece of hardware without telling it, the MAC will have changed and it won't apply your network settings to the new NIC. Lookup udev, and the contents of /etc/udev/rules.d.



I suspect SSH isn't starting because it depends on network, which has failed because there is no functional NIC. Fix this, and other stuff will start working as a consequence. Maybe that will fix everything, but if there are still issues we will need more detail to help further - recent log content, or output of what happens when you manually start cron, for example.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f496568%2fdebian-doesnt-run-cron-after-moving-boot-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









    0














    Network configuration is tied to a specific interface - if you've put image in second piece of hardware without telling it, the MAC will have changed and it won't apply your network settings to the new NIC. Lookup udev, and the contents of /etc/udev/rules.d.



    I suspect SSH isn't starting because it depends on network, which has failed because there is no functional NIC. Fix this, and other stuff will start working as a consequence. Maybe that will fix everything, but if there are still issues we will need more detail to help further - recent log content, or output of what happens when you manually start cron, for example.






    share|improve this answer



























      0














      Network configuration is tied to a specific interface - if you've put image in second piece of hardware without telling it, the MAC will have changed and it won't apply your network settings to the new NIC. Lookup udev, and the contents of /etc/udev/rules.d.



      I suspect SSH isn't starting because it depends on network, which has failed because there is no functional NIC. Fix this, and other stuff will start working as a consequence. Maybe that will fix everything, but if there are still issues we will need more detail to help further - recent log content, or output of what happens when you manually start cron, for example.






      share|improve this answer

























        0












        0








        0







        Network configuration is tied to a specific interface - if you've put image in second piece of hardware without telling it, the MAC will have changed and it won't apply your network settings to the new NIC. Lookup udev, and the contents of /etc/udev/rules.d.



        I suspect SSH isn't starting because it depends on network, which has failed because there is no functional NIC. Fix this, and other stuff will start working as a consequence. Maybe that will fix everything, but if there are still issues we will need more detail to help further - recent log content, or output of what happens when you manually start cron, for example.






        share|improve this answer













        Network configuration is tied to a specific interface - if you've put image in second piece of hardware without telling it, the MAC will have changed and it won't apply your network settings to the new NIC. Lookup udev, and the contents of /etc/udev/rules.d.



        I suspect SSH isn't starting because it depends on network, which has failed because there is no functional NIC. Fix this, and other stuff will start working as a consequence. Maybe that will fix everything, but if there are still issues we will need more detail to help further - recent log content, or output of what happens when you manually start cron, for example.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 25 at 3:52









        GarethHumphriesAccGarethHumphriesAcc

        1593




        1593



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f496568%2fdebian-doesnt-run-cron-after-moving-boot-disk%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

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?