T
T
t38c3j2019-04-01 14:51:54
linux
t38c3j, 2019-04-01 14:51:54

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

4 answer(s)
R
Ronald McDonald, 2019-04-01
@Zoominger

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.

A
Asparagales, 2019-04-01
@Asparagales

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.

A
Alexander Belov, 2017-01-16
@zvrata

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

R
Rsa97, 2017-01-16
@Rsa97

Are you sure that there is at least one line with such fields?
Add console.log(col1, col2) to the loop and see the output.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question