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

  • Home
  • SEARCH
  • 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 5991867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:27:00+00:00 2026-05-22T23:27:00+00:00

I read through this very interesting q/a about how computers reboot , and although

  • 0

I read through this very interesting q/a about how computers reboot, and although I do not know much at all about OS development, I was wondering if you could partially shut down the system, then boot back up from that point on.

For example, on Linux, if I read the output correctly during a shutdown, it goes a bit like this:

  1. Send Terminate / KILL to all processes.
  2. Shutdown services / daemons
  3. Power off.

And the startup sequence goes a bit like:

  1. BIOS, Bootloader
  2. Load kernel and modules
  3. Start services / daemons
  4. Start processes

So could we shutdown until after 2, then start back up from 3 onwards? Essentially I’m thinking this should reset the processes and daemons while keeping the kernel in memory, thus saving up on the kernel loading time on a normal (re)boot.

  • 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-05-22T23:27:00+00:00Added an answer on May 22, 2026 at 11:27 pm

    Focusing on Linux here:

    "Rebooting" userspace (and some hardware parts)

    You’re missing something from your boot sequence in terms of how those services, daemons and programs are started.

    Enter init on Linux. The purpose of /sbin/init, which could be system V init, upstart or systemd, is exactly launching all of these other processes. All of those init utilities have features to manage the services they run beneath them.

    Now, a linux system also has the concept of runlevels, namely:

    0 = shutdown
    1 = single user recovery mode, no networking
    2 = ?
    3 = multi user networking no X
    4 = ?
    5 = multi user networking X
    

    The ? ones aren’t strictly defined. Anyway, if you su to root and type init 3 right now, assuming you’re on Linux, X and every x client will be terminated. Of course, if something is allowed on a given runlevel it won’t be killed off, but if you want a certain process rebooting only, then this achieves it quite nicely. The use case for restarting system daemons is in response to an update and most package managers these days will actually do this for you via your initscript tool of choice.

    So we can restart our entire GUI, we can restart any daemon. We could kill any other process too. Reloading hardware drivers? I can already do that on the fly via modprobe, so if I fancy an update of my graphics drivers, I can init 3, remove the old ones, insert the new ones and carry on.

    Your package manager knows how to restart system daemons and you can always follow its advice to log out and back in; thus Linux is already fairly efficient in terms of avoiding reboots on update.

    "Rebooting" the kernel

    So basically, I like to think most of Linux can be "rebooted" without actually rebooting. So now What’s left?

    1. I can’t reload the kernel.
    2. I can’t easily unmount the root filesystem. I’m relying on it for that newly loaded userspace. Disclaimer: you could just reload an initramfs during a kernel "reload", so we’re depending on 1 here.

    Now, the question is how do you reload the kernel? Well the kernel isn’t actually any special magic, it’s just another computer program copied into memory, so we can just write a program somewhere that writes over our kernel and passes execution to it…

    This exists, believe it or not, and is called kexec. I’ll leave the wikipedia page to summarise the problems with it:

    While feasible, implementing a mechanism such as kexec raises two major challenges:

    1. the new kernel will overwrite the memory of the currently running one, while it is still executing
    2. the new kernel will usually expect all physical devices to be in a well-defined state (as they are after system reboot, when the BIOS (or firmware) resets them to a "sane" state). Bypassing a real reboot may leave devices in an unknown state, and the new kernel will have to recover from that.

    kexec does not, unlike a system shutdown, automatically stop filesystems or processes for you; you’re responsible for that.

    So there you have it. Depending on which part you need to reload, on Linux, most of it is possible.

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

Sidebar

Related Questions

has anyone ever read/skimmed through this book? it is valuable/very helpful to people such
I've read through some of the post on here about closures and currying but
I have read through the solutions to similar problems, but they all seem to
I have read several interesting C#/F# comparisons here on stackoverflow. So, first of all,
I realize this may be a very simple question but I need to know
I'm trying to read through the documentation on Berkeley DB XML , and I
I have read through several reviews on Amazon and some books seem outdated. I
I have a kernel module that provides data to a userland process through read().
I have a object built through a factory containing my parameters read from the
I recently started learning Emacs . I went through the tutorial, read some introductory

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.