Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Cannot get past Grub at boot - Lenovo 520s

Message
Author
User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2064
Joined: Wed Apr 11, 2018 5:09 pm

Re: Cannot get past Grub at boot - Lenovo 520s

#11 Post by fehlix » Mon Nov 05, 2018 7:54 pm

dolphin_oracle wrote:
Mon Nov 05, 2018 5:37 pm
the installer uses this to find the esp device

Code: Select all

partition-info find-esp=/dev/$BOOTDRIVE
Indeed, that partition-info should tell the trues. I've just checked, with one of my UEFI-acers:
Before the test change:

Code: Select all

sudo partition-info find-esp=/dev/mmcblk0
/dev/mmcblk0p1
It finds the first partition, which is an ESP-partition.
After removing esp and boot-flag using gparted (for testing only)

Code: Select all

sudo partition-info find-esp=/dev/mmcblk0
it cannot find the ESP-partition.
So yes, that's a proper and quick test, for checking manually created ESP's are valid one's. :number1:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

np123
Forum Novice
Forum  Novice
Posts: 8
Joined: Mon Nov 05, 2018 5:17 am

Re: Cannot get past Grub at boot - Lenovo 520s

#12 Post by np123 » Tue Nov 06, 2018 1:50 am

fehlix wrote:
Mon Nov 05, 2018 5:30 pm
np123 wrote:
Mon Nov 05, 2018 5:00 pm
So you were right in that in the root partition within grub is a file called grub.cfg.new

I ran the command and then tried to run boot repair, but it still says no esp partition found, other than on l
As you booted already into Grub, at least, and you have now a proper grub.cfg, you might boot succesfully.

Code: Select all

ls -al /media/demo/rootMX17.1/boot/grub
Well at least , I can only guess, you have a proper grub.cfg. But you seem to prefere to not let us know. So I can only guess. :blindfold:

As you are in LiveUSB boot please provide output of

Code: Select all

parted -l
and

Code: Select all

lsblk -f
Might be your ESP-partition is not properly created manually by yourself.
I actualy dont understand why you have choosen to create those manually? Any rational for doing so?
Hi,

Sorry, wasnt trying to ask for help with you unable to see the directory. This is all the files in the grub directory:

$ ls -al /media/demo/rootMX17.1/boot/grub
total 40
drwxr-xr-x 5 root root 4096 Nov 5 20:43 .
drwxr-xr-x 4 root root 4096 Nov 5 20:43 ..
drwxr-xr-x 2 root root 4096 Nov 5 20:43 fonts
-rw------- 1 root root 5664 Nov 5 20:43 grub.cfg.new
-rw-r--r-- 1 root root 1024 Nov 5 20:43 grubenv
drwxr-xr-x 2 root root 4096 Nov 5 20:43 locale
drwxr-xr-x 2 root root 12288 Nov 5 20:43 x86_64-efi


lsblk -f
$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
loop0 squashfs /live/linux
sda
└─sda1 vfat MXLIVE 1CA9-044D /live/boot-dev
nvme0n1
├─nvme0n1p1 vfat ESP A7F2-4FEF
└─nvme0n1p2 ext4 rootMX17.1 032310df-27c9-422d-99bf-90256e781dae /media/demo/rootMX17.1

I only chose to do it manually as one option. I had the same result when the installer chose its own partitions. Could it be something to do with the USB stick being the first fat partition found?

np123
Forum Novice
Forum  Novice
Posts: 8
Joined: Mon Nov 05, 2018 5:17 am

Re: Cannot get past Grub at boot - Lenovo 520s

#13 Post by np123 » Tue Nov 06, 2018 1:52 am

dolphin_oracle wrote:
Mon Nov 05, 2018 5:37 pm
make sure on the grub install screen that you are chosing the nvme drive and not the usb (although IIRC the usb shouldn't be showing up).

the installer uses this to find the esp device

Code: Select all

partition-info find-esp=/dev/$BOOTDRIVE
where $BOOTDRIVE is generated from whatever device is selected from the grub install screen.
Thanks. On the live usb when i run that command I get this:

$ sudo partition-info find-esp=/dev/$BOOTDRIVE
partition-info fatal error: No root device name found

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2064
Joined: Wed Apr 11, 2018 5:09 pm

Re: Cannot get past Grub at boot - Lenovo 520s

#14 Post by fehlix » Tue Nov 06, 2018 6:08 am

np123 wrote:
Tue Nov 06, 2018 1:52 am
Thanks. On the live usb when i run that command I get this:

$ sudo partition-info find-esp=/dev/$BOOTDRIVE
partition-info fatal error: No root device name found
OK, please re-run these two commands:
This:

Code: Select all

sudo partition-info find-esp=/dev/nvme0n1
and

Code: Select all

sudo parted -l
and do show the output here ( prefrable between the code-tags ( [code] [/code] by pressing clicking on </>
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16608
Joined: Fri Dec 15, 2006 8:07 pm

Re: Cannot get past Grub at boot - Lenovo 520s

#15 Post by Stevo » Tue Nov 06, 2018 3:33 pm

Wasn't there some issue with the Debian kernel not seeing some types of NVME drives? What model do you have?

Of course, if you can browse the drive from the live USB, that would weigh a lot against that theory.

If we do a backport of Buster's GRUB, maybe we should put it into the Experimental repo first...

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2064
Joined: Wed Apr 11, 2018 5:09 pm

Re: Cannot get past Grub at boot - Lenovo 520s

#16 Post by fehlix » Tue Nov 06, 2018 4:27 pm

Stevo wrote:
Tue Nov 06, 2018 3:33 pm
If we do a backport of Buster's GRUB, maybe we should put it into the Experimental repo first...
Yes, please. One bug already mentioned is withen current /etc/grub.d/30_uefi-firmware
which stops the installer to write grub.cfg ( for some UEFI's not for all :eek: )
OK, I we could patch, but would rather perfer to get at least the newer grub from buster.
I'm happy to test it asap ;=)
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

np123
Forum Novice
Forum  Novice
Posts: 8
Joined: Mon Nov 05, 2018 5:17 am

Re: Cannot get past Grub at boot - Lenovo 520s

#17 Post by np123 » Tue Nov 06, 2018 5:09 pm

fehlix wrote:
Tue Nov 06, 2018 6:08 am
np123 wrote:
Tue Nov 06, 2018 1:52 am
Thanks. On the live usb when i run that command I get this:

$ sudo partition-info find-esp=/dev/$BOOTDRIVE
partition-info fatal error: No root device name found
OK, please re-run these two commands:
This:

Code: Select all

sudo partition-info find-esp=/dev/nvme0n1
and

Code: Select all

sudo parted -l
and do show the output here ( prefrable between the code-tags ( [code] [/code] by pressing clicking on </>
Hi,

Output of the first command as follows:

Code: Select all

demo@mx1:~
$ sudo partition-info find-esp=/dev/nvme0n1
nvme0n1p1
Output of the second command as follows:

Code: Select all

demo@mx1:~
$ sudo parted -l
Model: TOSHIBA TransMemory (scsi)
Disk /dev/sda: 7759MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  7759MB  7758MB  primary  fat32        boot, lba


Model: Unknown (unknown)
Disk /dev/nvme0n1: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  538MB  537MB  fat32              boot, esp
 2      538MB   128GB  127GB  ext4


User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16608
Joined: Fri Dec 15, 2006 8:07 pm

Re: Cannot get past Grub at boot - Lenovo 520s

#18 Post by Stevo » Tue Nov 06, 2018 5:55 pm

fehlix wrote:
Tue Nov 06, 2018 4:27 pm
Stevo wrote:
Tue Nov 06, 2018 3:33 pm
If we do a backport of Buster's GRUB, maybe we should put it into the Experimental repo first...
Yes, please. One bug already mentioned is withen current /etc/grub.d/30_uefi-firmware
which stops the installer to write grub.cfg ( for some UEFI's not for all :eek: )
OK, I we could patch, but would rather perfer to get at least the newer grub from buster.
I'm happy to test it asap ;=)
Well, the new GRUB packages worked on MX 17.1 64-bit in a VM, so I'll upload them. Do you know how to set up a local apt repository so you can throw the debs in there? It's really easy:

Setup

Code: Select all

sudo apt install local-apt-repository
sudo mkdir -p /srv/local-apt-repository
Then in the folder with the debs

Code: Select all

sudo cp *.deb /srv/local-apt-repository
sudo /usr/lib/local-apt-repository/rebuild
(rebuild command only necessary if not running systemd)

Code: Select all

sudo apt update
and the upgrades should appear in apt. Answer "N" to replacing any of our custom files with the maintainer's version. It also may ask where you want to install the new Grub, so know where that's going to go. I'll upload the zip of the build to Google Drive. Here: https://drive.google.com/open?id=1xMuMS ... 0eteIkPTn7

Post Reply

Return to “Installation”