LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-22-2021, 06:39 PM   #31
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by colorpurple21859 View Post
What happened when you the commands in post 25
That caused an error in the Grub Customizer.

I wiped the disk and installed MX 21.
 
Old 10-22-2021, 09:27 PM   #32
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Did installing mx-21 fix your problem?
 
Old 10-23-2021, 11:38 AM   #33
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Did installing mx-21 fix your problem?
No, but someone recommended reinstalling/recreating Grub. Will do that later today.
 
Old 10-23-2021, 12:39 PM   #34
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Post the contents of /etc/fstab
 
Old 10-23-2021, 02:31 PM   #35
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Post the contents of /etc/fstab
# Pluggable devices are handled by uDev, they are not in fstab
UUID=fa0d630d-3523-40a3-89cf-af8eda7c5bc5 / ext4 noatime 1 1
UUID=f76bb067-85a0-4664-9b11-4304f02c8d81 swap swap defaults 0 0
 
Old 10-23-2021, 02:48 PM   #36
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Post the output of ls /boot/grub
 
Old 10-23-2021, 03:03 PM   #37
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Open a terminal
Code:
 sudo apt-get install grub-efi
sudo apt-get install efibootmgr
sudo mkdir /boot/efi
sudo mount /dev/nvme0n1p2 /boot/efi
sudo grub-install --target=x86_64-efi
Ignore error message about efivars
Reboot, use f12 key to see if there is an option to boot mx efi mode, if not an option to boot from a file and look for a grubx64.efi file.
Once booted rerun sudo grub-install and update-grub

Last edited by colorpurple21859; 10-23-2021 at 03:42 PM.
 
Old 10-23-2021, 03:22 PM   #38
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Open a terminal
Code:
 sudo apt-get install grub-efi
sudo apt-get install efibootmgr
sudo mkdir /boot/efi
sudo mount /dev/nvme0n1p2 /boot/efi
sudo grub-install  —target=x86_64-efi
Ignore error message about efivars
Reboot, use f12 key to see if there is an option to boot mx efi mode, if not an option to boot from a file and look for a grubx64.efi file.
Once booted rerun sudo grub-install and update-grub
No boot option, bid find that file in File System.

sudo grub-install
gives me
Installing for i386-pc platform.
grub-install: error: install device isn't specified.
 
Old 10-23-2021, 03:32 PM   #39
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
sudo grub-install
gives me
Installing for i386-pc platform.
You won’t get that message with
Code:
sudo grub-install  --target=x86_64-efi

Last edited by colorpurple21859; 10-23-2021 at 03:39 PM.
 
Old 10-23-2021, 03:39 PM   #40
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
You won’t get that message with
Code:
sudo grub-install —taget=x86_64-efi
I am getting
grub-install: error: cannot find a GRUB drive for —taget=x86_64-efi. Check your device.map.
 
Old 10-23-2021, 03:41 PM   #41
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Muxpux View Post
I am getting
grub-install: error: cannot find a GRUB drive for —taget=x86_64-efi. Check your device.map.
Also with
sudo grub-install —target=x86_64-efi
 
Old 10-23-2021, 03:42 PM   #42
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Muxpux View Post
Also with
sudo grub-install —target=x86_64-efi
$ sudo grub-install --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
 
Old 10-23-2021, 04:01 PM   #43
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
You have to run all of these after a reboot
for it to work
Code:
 sudo mkdir /boot/efi
sudo mount /dev/nvme0n1p2 /boot/efi
sudo grub-install --target=x86_64-efi

Last edited by colorpurple21859; 10-23-2021 at 04:09 PM.
 
Old 10-23-2021, 05:08 PM   #44
Muxpux
Member
 
Registered: Oct 2021
Location: California
Distribution: MX-19.4
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
You have to run all of these after a reboot
for it to work
Code:
 sudo mkdir /boot/efi
sudo mount /dev/nvme0n1p2 /boot/efi
sudo grub-install --target=x86_64-efi
Thanks for putting up with this!

After reboot and pasting that, I get:

mkdir: cannot create directory ‘/boot/efi’: File exists
mount: /boot/efi: wrong fs type, bad option, bad superblock on /dev/nvme0n1p2, missing codepage or helper program, or other error.
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

Note: The Windows drive is a NVMe drive.
 
Old 10-23-2021, 08:28 PM   #45
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Post the output of
Code:
lsblk -f
 
  


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
[SOLVED] GRUB bootloader questions.(Can I restore the windows bootloader & windows 10 upgrade) anon261 Linux - General 3 07-19-2015 05:01 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Grub bootloader overwritten by WinXP bootloader, all other os' gone! craigforsure Linux - Newbie 5 03-29-2010 02:49 AM
Replace GRUB Bootloader with WIN NT Bootloader wombat53 Linux - Software 1 09-04-2009 08:56 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM

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

All times are GMT -5. The time now is 07:09 AM.

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