View previous topic :: View next topic |
Author |
Message |
donguss n00b
Joined: 18 Apr 2018 Posts: 22
|
Posted: Mon Jun 04, 2018 10:47 am Post subject: When is it safe to remove USB stick with kernel? |
|
|
For example, our kernel resides on the USB stick and we plug it in every time we boot our machine. Let's suppose it's UEFI setup and the kernel is efi stub.
On which stage of boot process is it safe to remove the stick wothout fearing of kernel data corruption? |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Jun 04, 2018 10:59 am Post subject: |
|
|
I would say somewhere between (the "pivot" between initramfs and openrc/systemd starting) and the root and localmount services starting. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3136
|
Posted: Mon Jun 04, 2018 9:52 pm Post subject: |
|
|
With a bootloader it's easy, as soon as kernel and initramfs are loaded (and kernel takes over). So, when you see the first output line printed by kernel, it's already safe to remove boot disk.
Not sure how efi boot works. I suppose it also starts with loading kernel to memory and THEN hands control over, so the same rules apply. Kernel takes over -> you can remove your stick. |
|
Back to top |
|
|
|