If this is your first visit, be sure to
check out the FAQ. You will have to register
before you can post. To start viewing messages,
select the forum that you want to visit from the selection below.
Please do not use the CODE tag when pasting content that contains formatting (colored, bold, underline, italic, etc).
The CODE tag displays all content as plain text, including the formatting tags, making it difficult to read.
Announcement
Collapse
No announcement yet.
Neon system grub boot error -- can I devine what to do? /dev/?
I already downloaded and burned a DVD with the Debian 12 ISO. It failed to boot as a live system when I tried it some week+ ago, but that may have been before I identified a good USB port to attach my portable DVD ROM drive.
So I will need to learn how to chroot and the fixing tools.
I have a chroot guide, https://bartsimons.me/ubuntu-linux-chroot-guide/ written in 2018 and a few articles.
So an easy boot to grub boot did not work....
Neon 18.04.1 User on desktop and on Asus Transformer 3 Pro laptop
There are also other less easy ways than the Debian rescue mode to do this: Arch with their pre-configured chroot or the Rescue System from an openSUSE Leap ISO (https://download.opensuse.org/distri...6_64-Media.iso).
The following example is for booting with the openSUSE Leap Rescue System (more or less off the top of my head - so double-check it , but it should work if only GRUB is the problem…):
at login just enter root (no password)
# mount /dev/sdaX /mnt (replace sdaX with the root partition of your KDE neon installation)
# mount /dev/sdaY /mnt/boot/efi (replace sdaY with the EFI partition of your KDE neon installation)
# mount -o bind /dev /mnt/dev
# mount -o bind /run /mnt/run
# mount -o bind /sys /mnt/sys
# mount -o bind /proc /mnt/proc
# chroot /mnt
# grub-install (possibly grub2-install)
# exit
# reboot
Afterwards you should be able to boot into KDE neon again and configure everything to your liking if necessary.
Last edited by Schwarzer Kater; Jul 21, 2023, 07:55 AM.
Reason: typos
Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others
Your message arrived as I had entered the austere Debian 12 world.
I decided I wanted something more helpful to people of limited experience.
I will try with what you proposed using openSUSE.
I will download it and burn a CD.
Before that I had looked over other rescue options and had tentatively selected Rescutux 0.73 based on Debian 10.
Neon 18.04.1 User on desktop and on Asus Transformer 3 Pro laptop
Here are the commands above when executed.
Error messages follow most.
I did not find articles that lept out at me with a clear
explanation of the mounting commands yet that eliminates the errors.
# mount /dev/nvme0n1p3 /mnt # mount /dev/nvme0n1p1 /mnt/boot/efi # mount -o bind /dev /mnt/dev
mount.bin: /mnt/dev: mount point does not exist # mount -o bind /run /mnt/run
mount.bin: /mnt/run: mount point does not exist # mount -o bind /sys /mnt/sys
mount.bin: /mnt/sys: mount point does not exist # mount -o bind /proc /mnt/proc
mount.bin: /mnt/proc: mount point does not exist
We did not enter the next command yet # chroot /mnt
Neon 18.04.1 User on desktop and on Asus Transformer 3 Pro laptop
This means that there is no /dev, /run, /sys and /proc on your /dev/nvme0n1p3.
Are you sure this really is the root partition of the system you want to repair GRUB for?!?
What does ls -l /mnt say after you mounted /dev/nvme0n1p3 to it?
Otherwise I would dare to say that the system on /dev/nvme0n1p3 is seriously broken and I would recommend deleting /dev/nvmen0n1p3 and reinstalling…
There is only so much one can do from afar unfortunately.
PS: I just checked the procedure in post # 18 with the Rescue System of an openSUSE Leap USB boot stick and my KDE neon installation.
It worked as intended until installing GRUB (I didn't want to do that, because the GRUB I use is heavily customized for my needs and KDE neon is just one of my test installations…).
Last edited by Schwarzer Kater; Jul 21, 2023, 02:50 PM.
Reason: added PS
Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others
Thanks, again.
I had been thinking thinking along the opposite track, that I could create a directory that would include those missing subdirectories--as I had seen in an article that talked like that--but I am still unsure.
Thanks for the man pages tip.
To answer your question: ls -l /mnt gets total 1
drwxr-xr-x 5 root root 512 Apr 9 2020 EFI
Back on Wed, July 19, I did ls (hd2,gpt3) and got the typical Linux file system, I believe.
Could it have lost so much since then?
I exited the openSUSE rescue disk and ended up in the CLI of grub where I did ls and got (hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
I then did ls (hd0,gpt3) and got ./ ../ lost+found/ dev/ proc/ run/ sys/ bin lib lib32 lib64 libx32 sbin boot/ etc/ home/ media/ mnt/ opt/ root/ snap/ srv/ tmp/ usr/ var/
That seems like the files are still intact.
I can't grasp the discrepancy between our prior good indications of a file system and the bleak picture from this afternoon, esp. in contrast to ls (hd0,gpt3).
I am puzzled.
Neon 18.04.1 User on desktop and on Asus Transformer 3 Pro laptop
[…]
To answer your question: ls -l /mnt gets total 1
drwxr-xr-x 5 root root 512 Apr 9 2020 EFI
This means your /dev/nvme0n1p3 is empty, if you mounted it correctly…
And your EFI was mounted to the wrong place, probably because there was no root partition in /mnt with the right directories to mount to.
I exited the openSUSE rescue disk and ended up in the CLI of grub where I did ls and got (hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
I then did ls (hd0,gpt3) and got ./ ../ lost+found/ dev/ proc/ run/ sys/ bin lib lib32 lib64 libx32 sbin boot/ etc/ home/ media/ mnt/ opt/ root/ snap/ srv/ tmp/ usr/ var/
That seems like the files are still intact.
I can't grasp the discrepancy between our prior good indications of a file system and the bleak picture from this afternoon, esp. in contrast to ls (hd0,gpt3).
I am puzzled.
I suppose that your hd0,gpt3 just isn't /dev/nvme0n1p3 then… = /dev/nvme0n1p3 doesn't seem to be your KDE neon's root partition (if you mounted it correctly as already said above).
My NVMe M2 drive is at hd3, for example - but every motherboard handles these things differently.
Did you check with e.g. lsblk and lsblk -f in the Leap Rescue System before mounting anything?
-> You really have to be sure about the partitions you mounted before something like chroot and/or installing GRUB to an EFI partition!
This also applies to the Debian rescue mode or any other more comfortable way of chroot.
Last edited by Schwarzer Kater; Jul 21, 2023, 05:35 PM.
Reason: additions and typos
Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others
So if you are sure which one it is the right root partition of your KDE neon, try the steps in post # 18 again and perhaps use [Tab] for auto-completion when entering commands to avoid wrong characters.
But lsblk -f before and after mounting e.g. nvme0n1p3 to /mnt and then check again that it worked as intended with ls -l /mnt and if not keep trying to find out why.
That's all I can say for now.
Thank you, Schwarzer Kater, and all.
I am ready to move on unless you know some other tool to try.
With CLI grub> ls (hd0,gpt1) is efi
With openSUSE rescue nvme0n1p1 does not exist as in mount /dev/nvme0n1p1 /mnt/boot/efi
I checked Rescatux and their Super Grub2 Disk.
They report that the efi partition is not useable so cannot mount at /boot/efi
Unless there is a way to rewrite the efi partition I see no chance, # mount /dev/nvme0n1p3 /mnt succeeds but at other times my Neon partition does not do well.
With my modest level of experience and understanding I am willing to believe I have done my due diligence and now reinstall.
Any further suggestions are welcome.
Neon 18.04.1 User on desktop and on Asus Transformer 3 Pro laptop
I have not tried this but MX Linux has a lot of pre-configured tools one focused on fixing boot, you could try booting the live Cd and running that tool.
Comment