Answer the question
In order to leave comments, you need to log in
Why does not see grub after rearranging the media?
There is a laptop with nvme and ssd, linux and grub are installed on nvme, windows on ssd. After the demolition of windows, I preconfigured grub so that the item with windows disappeared, which was successfully completed, and rearranged nvme to the PC. But I was surprised that the PC does not boot into grub, but tries to boot into windows and hits an error that it could not boot, but if you return nvme to the laptop, then successfully boot into grub and then to linux. How to fix this other than reinstalling grub and will it help?
UPD: I reinstalled grub, it helped in the sense that an item appeared from where to boot and it boots, but now there are two boot items with nvme, these are windows and linux, for windows I even deleted the /boot/efi/EFI/WIndows directory and reconfigured grub but didn't help, there is still an item in bios with Windows
Answer the question
In order to leave comments, you need to log in
Something is not clear.
If an SSD with Windows was not inserted into the PC, then it will not boot.
And so - check on which one device is GRUB.
It seems to me that you need to delve into the BIOS of your PC and see what priorities and boot order are set there.
Zero because the var k = 0
Condition does not return the new value of the variable.
Working simplified example.
I edited the answer because we return not the old variable, but the new one.
k++ - added 1, returned original k
++k - added 1, returned new k
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question