Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8747079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:17:56+00:00 2026-06-13T12:17:56+00:00

I am working on an embedded linux device that has an internal SD card.

  • 0

I am working on an embedded linux device that has an internal SD card. This device needs to be updatable without opening the device and taking out the SD card. The goal is to allow users to update their device with a USB flash drive. I would like to completely overwrite the internal SD card with a new SD card image.

My first thought was to unmount the root filesystem and use something to the effect of:

dd if=/mnt/flashdrive/update.img of=/dev/sdcard 

However, It appears difficult to actually unmount a root filesystem correctly, as processes like “login” and “systemd” are still using resources on root. As soon as you kill login, for example, the update script is killed as well.

Of course, we could always use dd without unmounting root. This seems rather foolish, however. 😛

I was also thinking of modifying the system init script to perform this logic before the system actually mounts the root filesystem.

Is there a correct/easy way to perform this type of update? I would imagine it has been done before.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:17:57+00:00Added an answer on June 13, 2026 at 12:17 pm

    Re-imaging a mounted file system doesn’t sound like a good idea, even if the mount is read-only.

    Consider:

    • Use a ramdisk (initialized from a compressed image) as your actual root filesystem, but perhaps have all but the most essential tools in file systems mounted beneath, which you can drop to upgrade. Most Linux implementations do this early in their boot process anyway before they mount the main disk filesystems: rebooting to do the upgrade may be an option.

    • SD cards are likely larger than you need anyway. Have two partitions and alternate between them each time you upgrade. Or have a maintenance partition which you boot into to perform upgrades/recovery.

    • Don’t actually image the file system, but instead upgrade individual files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an embedded Linux device that has only qt. For some
I am working on an embedded linux device that requires custom java code to
I am working on development of an embedded Linux device which needs to exchange
Currently I am working with a embedded system that has the Linux OS. I
I am working on a touchscreen GUI for an embedded Linux device that will
I'm working with a C++ application in an embedded systems running Linux. This device
I'm working on an embedded project that currently uses C in Linux and uClibc.
I'm working on an embedded Linux project. Our build process makes an image that
I am working on embedded device and trying to figure-out basics of opengl-es-2.0, I
I am currently working on an embedded Linux device for data logging. The Linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.