Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When is it safe to remove USB stick with kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
donguss
n00b
n00b


Joined: 18 Apr 2018
Posts: 22

PostPosted: Mon Jun 04, 2018 10:47 am    Post subject: When is it safe to remove USB stick with kernel? Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Jun 04, 2018 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3136

PostPosted: Mon Jun 04, 2018 9:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum