Debian doesn't run cron after moving boot disk
Clash Royale CLAN TAG#URR8PPP
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
add a comment |
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
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
add a comment |
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
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
ssh boot cron sd-card
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
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%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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 25 at 3:52
GarethHumphriesAccGarethHumphriesAcc
1593
1593
add a comment |
add a comment |
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.
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%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
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
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