Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Slackware current with a 5.18.7 kernel. The motherboard it was running on has been switched, and because I was presented with a grub-rescue prompt (only after the motherboard switch, worked perfect prior to this) I chose to reinstall. Now what is happening is the grub-rescue prompt it displayed on the screen for a second or 2 and then the normal grub menu shows up and boots properly. I can't figure out how to fix this for the main drive was formatted and partitioned during install. It has 2 partitions on it a 4GB swap and the remainder of the 2TB drive for /. The second drive is also a 2TB drive both same make and model and has 1 partition on it /home which was not formatted during install, so all the files and so forth remain intact after the user is re-added. I should mention I am using grub version 2.06. Any help on this would be greatly appreciated.
Is this an EFI install? If so, you should also have a 2-500MB FAT32 partition. If it is EFI, can you select Slackware from the Boot Option in the BIOS firmware? If so, do you get the same problem? Never seen a problem like this before.
It did not prompt me to make an EFI partition during the reinstall, the old install did which was on the same drive, but I removed all partitions before creating the new one and all partitions (2) swap and / were formatted on the first drive. Reminance of the original install maybe?
The information in your last post shows you have a Legacy install rather than an EFI install. You have large drives but they both show as msdos partition table rather than GPT which would be expected on those size drives. Was this intentional? You indicate in your second post that you previous install had an EFI partition which you no longer have? I don't know that this is the source of your problem though.
A uefi system will initially look for a bootloader at EFI/Boot/bootx64.efi on the efi partition if there are no nvram values. I suspect you had this file on the efi partition, was a renamed grubx64.efi file with the grub prefix set to a bad location causing the grubrescue error when the new mother board was installed. It may be possible that the remnants of the fat32 file system and the bootx64.efi file may still exist on what is now the swap partition, and the firmware/bios is picking it up while switching over to legacy mode. Note this is all conjecture and guess work.
Last edited by colorpurple21859; 07-06-2022 at 06:27 AM.
The information in your last post shows you have a Legacy install rather than an EFI install. You have large drives but they both show as msdos partition table rather than GPT which would be expected on those size drives. Was this intentional?
I have always have done the slackware default install
Quote:
Originally Posted by yancek
You indicate in your second post that you previous install had an EFI partition which you no longer have? I don't know that this is the source of your problem though.
Yes my previous install had an EFI partition for the slackware install installed elilo. On the second install I did not install lilo i did the grub for I always install lilo then grub then remove lilo, this time i didnt install lilo and just installed grub.
Is there a way to fix this even if i have to do an install from from scratch from the Slackware 15 DVD and do something different when I prep the drives, even if I have to backup everything I have configured as well as second drive to a usb stick and partition and format both drives. For instance change partition table from msdos to GPT or partition with a EFI partition. Would just rather not waste time doing this and have same result would rather do it and have positive results.
Depending on how the uefi firmware is implemented this may work, and can be done from the running system:
create a 250M efi partition formatted as fat32 by reducing swap partition space. Create a /boot/efi and mount the efi partition to /boot/efi
Code:
grub-install --target=x86_64-efi --removable
Should be able to converted sda to gpt with gdisk without any problems.
To convert sdb to gpt may have to shrink the partition a small amount to allow for a gpt partition table at end of disk.
Last edited by colorpurple21859; 07-10-2022 at 03:56 PM.
I will try that in the morning, for it is not something i would like to do while connected remotely. Playing around with partitions is out of comfort zone on a running system, but will try it in the morning, I have between now and then to back everything up to a usb stick, then if something happens I loose nothing. Will post back my progress.
Tried running gdisk on /dev/sda remotely and got the following. Makes me think it be safer to back up both drives and do everything from scratch.
Code:
GPT fdisk (gdisk) version 1.0.9
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Warning! Unable to generate a proper UUID! Creating an improper one as a last
resort! Windows 7 may crash if you save this partition table!
Warning! Unable to generate a proper UUID! Creating an improper one as a last
resort! Windows 7 may crash if you save this partition table!
Warning! Unable to generate a proper UUID! Creating an improper one as a last
resort! Windows 7 may crash if you save this partition table!
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help):
Three different methods I can think of to make the UEFI BIOS forget what the original UEFI installation planted in NVRAM:
Boot installation media in UEFI mode; use efibootmgr to delete the existing UEFI entry
UEFI BIOS reset
Enter UEFI BIOS, find the entry(s) for UEFI on the first HD's former system partition, delete it
Disk size is a non-issue. 2TB (2000*10^9) disks are fully supported by legacy/MBR partitioning, as it is 2TiB (512*2^32) that is the maximum supported by legacy/MBR partitioning. 2TB disks are approximately 1.819TiB.
I did a reinstall and something flashes before the lilo menu, don't think it the grub2 rescue, but can't be sure. I will mark this solved and when i upgrade to current and install grub2 if it reappears I will come back and try mrmazda's BIOS suggestions. Thank you in for all your comments and suggestions it is greatly appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.