Grub 2.04 command line : can't boot.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Grub 2.04 command line : can't boot.
Hello, I've been using linux mint for nearly a year now and it's awesome but my pc is very old and after last kernel update I got an error (reading/writing hd0) so I used the earlier version of the kernel to boot. But after I updated grub it doesn't boot and I tried to do it manually but the tab completion doesn't work and I don't know the kernel version ( all I know is : 5.4.??-122-generic).
Could s.o please help me ?I am really bad when it comes to this.
Could s.o please help me ?I am really bad when it comes to this.
Last edited by LockBot on Sun Feb 05, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Grub 2.04 command line : can't boot.
From grub -- advanced options,you can boot to all installed kernels.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Re: Grub 2.04 command line : can't boot.
Adding to deepakdeshp 's point.... you'll need to kind of time it right on barely as your ( P.O.S.T ) ing is done to press around a good 5 to 7 times the Esc key on your keyboard and you should be able to access the advance grub menu ...Select the Advanced option and it should next show you multiple kernel booting options.
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
-
- Level 20
- Posts: 12341
- Joined: Sun Aug 09, 2015 10:00 am
Re: Grub 2.04 command line : can't boot.
If grub menu isn't visible,
Grub Menu will appear if you press and hold Shift during loading Grub, if you boot using BIOS. When your system boots using UEFI, press Esc.
For permanent change you'll need to edit your /etc/default/grub file -- place a "#" symbol at the start of line GRUB_HIDDEN_TIMEOUT=0.
Save changes and run sudo update-grub to apply changes.
Documentation: https://help.ubuntu.com/community/Grub2
Grub Menu will appear if you press and hold Shift during loading Grub, if you boot using BIOS. When your system boots using UEFI, press Esc.
For permanent change you'll need to edit your /etc/default/grub file -- place a "#" symbol at the start of line GRUB_HIDDEN_TIMEOUT=0.
Save changes and run sudo update-grub to apply changes.
Documentation: https://help.ubuntu.com/community/Grub2
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Regards,
Deepak
Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Re: Grub 2.04 command line : can't boot.
If this is a BIOS computer, it's Right-Shift to bring up the Grub menu, not Esc.
Re: Grub 2.04 command line : can't boot.
Thank you very much for your help. Actually I was able to boot (I was setting root to the wrong disk partition). And I deleted the last version of the kernel I was having problems with so currently I am using the older one. However the Grub command line appears after I restart the computer and I have to do the same thing again.
PS: I ran this command after booting to try and solve the problem but it didn't work:
Thank you.
PS: I ran this command after booting to try and solve the problem but it didn't work:
Code: Select all
sudo update-grub
Re: Grub 2.04 command line : can't boot.
To revert to using the old kernel automatically, open Update Manager > Linux Kernels and uninstall the kernel(s) you don't want to use.
Grub automatically uses the most recent kernel, so the only way to get what want is to make the desired default kernel the most recent one installed.
Grub automatically uses the most recent kernel, so the only way to get what want is to make the desired default kernel the most recent one installed.
Re: Grub 2.04 command line : can't boot.
Thank you I removed the kernel.
Is there anyway I can boot without having to go through the grub command line every time?
Is there anyway I can boot without having to go through the grub command line every time?
Re: Grub 2.04 command line : can't boot.
Have you tried booting since you removed the kernel? It should work automatically now.
Re: Grub 2.04 command line : can't boot.
Hi, I tried booting and it did not work automatically. The strange thing is that the kernel is somehow installed again and I did not install it and I am sure that I removed it.
Re: Grub 2.04 command line : can't boot.
Please report the output of
ls -l /boot
(run in Terminal).Re: Grub 2.04 command line : can't boot.
This is the output:
Code: Select all
total 315552
-rw-r--r-- 1 root root 237975 Jun 15 14:13 config-5.4.0-121-generic
-rw-r--r-- 1 root root 237947 Jun 22 14:00 config-5.4.0-122-generic
-rw-r--r-- 1 root root 237851 May 8 2021 config-5.4.0-74-generic
drwx------ 3 root root 4096 Jan 1 1970 efi
drwxr-xr-x 4 root root 4096 Aug 7 15:37 grub
lrwxrwxrwx 1 root root 28 Aug 7 15:34 initrd.img -> initrd.img-5.4.0-122-generic
-rw-r--r-- 1 root root 89683620 Aug 3 13:47 initrd.img-5.4.0-121-generic
-rw-r--r-- 1 root root 89672863 Aug 7 15:36 initrd.img-5.4.0-122-generic
-rw-r--r-- 1 root root 89644133 Aug 3 13:49 initrd.img-5.4.0-74-generic
lrwxrwxrwx 1 root root 28 Aug 7 15:34 initrd.img.old -> initrd.img-5.4.0-121-generic
-rw------- 1 root root 4761203 Jun 15 14:13 System.map-5.4.0-121-generic
-rw------- 1 root root 4758694 Jun 22 14:00 System.map-5.4.0-122-generic
-rw------- 1 root root 4751152 May 8 2021 System.map-5.4.0-74-generic
lrwxrwxrwx 1 root root 25 Aug 7 15:34 vmlinuz -> vmlinuz-5.4.0-122-generic
-rw------- 1 root root 13672704 Jun 15 14:18 vmlinuz-5.4.0-121-generic
-rw------- 1 root root 13660416 Jun 22 14:26 vmlinuz-5.4.0-122-generic
-rw-r--r-- 1 root root 11763968 Aug 12 2021 vmlinuz-5.4.0-74-generic
lrwxrwxrwx 1 root root 25 Aug 7 15:34 vmlinuz.old -> vmlinuz-5.4.0-121-generic
Re: Grub 2.04 command line : can't boot.
That says the -122 kernel is still installed. Please post a screenshot of what you see in Update Manager, the page that looks like this:fasord wrote: ⤴Sun Aug 07, 2022 12:00 pm This is the output [edited]:Code: Select all
total 315552 -rw-r--r-- 1 root root 237947 Jun 22 14:00 config-5.4.0-122-generic lrwxrwxrwx 1 root root 28 Aug 7 15:34 initrd.img -> initrd.img-5.4.0-122-generic -rw-r--r-- 1 root root 89672863 Aug 7 15:36 initrd.img-5.4.0-122-generic -rw------- 1 root root 4758694 Jun 22 14:00 System.map-5.4.0-122-generic lrwxrwxrwx 1 root root 25 Aug 7 15:34 vmlinuz -> vmlinuz-5.4.0-122-generic -rw------- 1 root root 13660416 Jun 22 14:26 vmlinuz-5.4.0-122-generic
.
Re: Grub 2.04 command line : can't boot.
Yes that's the problem I removed it but when I booted again it's there and I did not reinstall it. Here is 2 screenshots one before I removed it (again) and one after.pbear wrote: ⤴Sun Aug 07, 2022 10:40 pmThat says the -122 kernel is still installed. Please post a screenshot of what you see in Update Manager, the page that looks like this:fasord wrote: ⤴Sun Aug 07, 2022 12:00 pm This is the output [edited]:Code: Select all
total 315552 -rw-r--r-- 1 root root 237947 Jun 22 14:00 config-5.4.0-122-generic lrwxrwxrwx 1 root root 28 Aug 7 15:34 initrd.img -> initrd.img-5.4.0-122-generic -rw-r--r-- 1 root root 89672863 Aug 7 15:36 initrd.img-5.4.0-122-generic -rw------- 1 root root 4758694 Jun 22 14:00 System.map-5.4.0-122-generic lrwxrwxrwx 1 root root 25 Aug 7 15:34 vmlinuz -> vmlinuz-5.4.0-122-generic -rw------- 1 root root 13660416 Jun 22 14:26 vmlinuz-5.4.0-122-generic
.
Kernels - Installed.png
Re: Grub 2.04 command line : can't boot.
Update Manager will offer to update the kernel, and I wasn't having you disable that (yet) for a reason, but it shouldn't update the kernel without your knowing. Indeed, as you may recall, kernel updates require a separate confirmation. Are you using automatic updates?
Re: Grub 2.04 command line : can't boot.
Actually, yes I checked it now and I have "Packages updates" and "Automatic maintenance" set on automatic. Although I don't recall doing that.pbear wrote: ⤴Mon Aug 08, 2022 11:42 am Update Manager will offer to update the kernel, and I wasn't having you disable that (yet) for a reason, but it shouldn't update the kernel without your knowing. Indeed, as you may recall, kernel updates require a separate confirmation. Are you using automatic updates?