LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2024, 05:25 PM   #1
lWanderingl
LQ Newbie
 
Registered: Mar 2024
Distribution: Debian 12
Posts: 3

Rep: Reputation: 0
os-prober doesn't seem able to find my linux system, an LVM encrypted with LUKS


I have a double system on my SSD, Windows and Linux.

This also isn't the first time I try to install a LUKS LVM debian system, previously grub could at least create a boot menu entry for Windows but Debian didn't work proberly so I have re-installed it once again, but this time os-prober cannot detect neither system.

The first issue that I've encountered with this latest instance of my system is that in the installer environment grub couldn't be installed due to some error, so I've just ignored it and after completing the installation I've entered chroot from a live system to install grub manually.

This is the command I've used:

#grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --recheck --debug

Then:

#sudo update-grub

Which returned:

#Generating grub configuration file ...
#Found background image: .background_cache.png
#Warning: os-prober will be executed to detect other bootable partitions.
#Its output will be used to detect bootable binaries on them and create new boot entries.
#grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
#Adding boot menu entry for UEFI Firmware Settings ...
#done


/dev/sda1 is most probably the USB drive that hosts my live system but why isn't debian detected even if it's UEFI (it contains the efivars directory)? I don't care about fixing teh boot entry for windows right now but I really need debian to work.

Even unmounting and unplugging teh live USB doesn't fix anything, the related error just doens't appear.
 
Old 03-30-2024, 02:08 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,519

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
Quote:
grub couldn't be installed due to some error

What error? Did you create a mount point and mount the efi partition before running the command and if sda is your usb, what is your internal drive shown as? It would help other members viewing to help you if you post all the command to chroot/ mount and install grub.
 
Old 04-05-2024, 04:48 PM   #3
lWanderingl
LQ Newbie
 
Registered: Mar 2024
Distribution: Debian 12
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
What error? Did you create a mount point and mount the efi partition before running the command and if sda is your usb, what is your internal drive shown as? It would help other members viewing to help you if you post all the command to chroot/ mount and install grub.
Well that error appeared while inside the Debian's installation environment on USB, and I don't have a screenshot.

To mount the chroot system I've simply used the "cryptsetup luksOpen" command and followed this guide for the rest https://wiki.debian.org/GrubEFIReinstall

But anyway, I've found out the solution for my problem when I've noticed there was no kernel or initrd image on my efi partiton.
I'm pretty sure that during my previous attempts I had those two files, maybe they didn't work because they were corrupted or missing some links? I don't know, but the important is that after reinstalling the kernel and regenerating initrd I could successfully add Debian to grub's menu and now my luks LVM system is finally working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to boot or Dual boot with Windows 10. Missing SSD. & os-prober doesn't find windows 10 lowell2753@gmail.com CentOS 5 03-15-2019 04:59 AM
(Centos 7) Unable to boot or Dual boot with Windows 10. Missing SSD. & os-prober doesn't find windows 10 lowell2753@gmail.com Linux - Newbie 5 03-14-2019 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration