Error: no such device

hello, everyone! I have a dualboot laptop with Win11 and Manjaro Linux. Don’t know exactly what caused it, but when i try to boot my linux system i get stuck in grub rescue with no such device error. I have two separate SSDs for Windows and Linux, and my Linux system is encrypted. how can I fix this issue?

Hi and welcome to the Forum :+1:


Help others to help you better by:

  1. Providing system info about your hardware by posting program output instead of describing your hardware.
  2. Use new lines when a sentence ends, so it is better readable and followable by others.
  3. If english is not your native language please see:
    • :us: :uk: English [HowTo] Become multi-language on internet
    • :tr: Türkçe [Nasıl] İnternette çok dilli olun
    • :de: Deutsch [Wie man] Werden Sie im Internet mehrsprachig
    • :fr: Français [Comment] Devenir multilingue sur internet
    • :es: Española [Cómo] Conviértete en multilenguaje en Internet
    • :cn: 中文 [如何] 成为互联网上的多语言
    • :it: Italiana [Come] Diventa multilingua su internet
    • :ru: русский язык [Как] Стать многоязычным в Интернете

Please read and follow all advice in this thread:

Especially:


If you are unable to boot into your system to provide the needed info, then use a Live-ISO image to boot from a USB-Stick…
Some commands as mentioned in the articles above are:

inxi -v7azy
lsblk --all --fs
1 Like

Hi @mend4x, and welcome!

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Hope you manage!


:bangbang: Tip: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.


Reinstalling grub from chroot environment.

Once in the live environment, you have to reinstall GRUB. To do so, run the following:

grub-install --recheck --force --target=x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi --bootloader-id=Manjaro

Followed by:

update-grub

When successfully completed, exit the chroot environment:

exit

Followed by rebooting and seeing if it worked.

If it did, feel free to heap on the praise. If, however, it didn’t, well, then is wasn’t me and I’m innocent!


How to chroot

  1. Ensure you’ve got a relatively new ISO or at least one with a still supported LTS kernel.

  2. Write/copy/dd the ISO to a USB thumb drive.

  3. When done, boot with the above mentioned USB thumb drive into the live environment.

  4. Once booted, open a terminal and enter the following command to enter the chroot encironment:

manjaro-chroot -a
  1. If you have more than one Linux installation, select the correct one to use from the list provided.

When done, you should now be in the chroot environment.

But, be careful, as you’re now in an actual root environment on your computer, so any changes you make will persist after a restart.


Also see: