Cannot Boot Fedora and Grub Menu Disappeared
2 Attachment(s)
Solution Below
Hello again, I have been working for the past couple weeks now trying to get my laptop up and running after accidentally scrambling my partitions. I have had a lot of help, but cannot seem to permanently solve the problem. Running these commands Code:
sudo mount /dev/mapper/fedora-root /mnt Code:
sudo mkdir /mnt/test Thank you for reading, I appreciate any help you can give. Solution 1. Remove Fedora partitions with fdisk (WARNING fdisk is a dangerous tool, it is very easy to delete the wrong partitions if you aren't careful, there are probably better solutions out there, fdisk is how I got in this mess in the first place) https://wiki.mageia.org/en/How_to_de...ion_with_fdisk And/Or disk utility. Code:
sudo fdisk /dev/sdx Code:
Command (m for help): p Code:
Command (m for help): d Code:
Command (m for help): p Code:
Command (m for help): w 2. Reinstall OS from live USB. Be sure to choose "Custom" under Storage Configuration. Change "LVM" to "Standard Partition." Thank you Ztcoracat for providing a comprehensive solution. Quote:
Thank you yancek for identifying LVM as the culprit and colorpurple21859 for highlighting the fact that LVM can be changed via custom installation. Quote:
Quote:
1. Bootinfoscript Quote:
Code:
sudo bash bootinfoscript Thank you to everyone for all your help. |
I read through your bootinfo script and Grub is installed to the MBR of /dev/sda but if Grub won't even boot for you and trying to install grub isn't working I recommend deleting all of the partitions that are not Windows and starting over.
You should be able to use the partition manager that Anaconda uses to delete those fedora partitions. Made sure you know which partitions are your Windows 7 partitions so you don't delete them. Once you have deleted those partitions create new ones from the free space. Create at least a 250 MB /boot partition. -create at least a 100 MB efi partition -create a 5 GB root partition -create a 1 GB swap partition and than allocate the rest of the space to the /home partition. When my partitions were a mess that's what I did. https://docs.fedoraproject.org/en-US...mmend-x86.html |
You may want to hang on to this for future use if you have trouble with Grub again.
https://fedoraproject.org/wiki/GRUB_2 |
You have a mixed Legacy/MBR install and also an EFI install. You have windows boot code in the MBR. Does windows boot? Which windows do you have, 7, 8 , 10? I would not expect windows to boot from the MBR as it is a GPT drive which with windows requires EUFI.
You have a vfat EFI partition (sda1) with the proper EFI boot files for windows and Fedora. Disable Legacy/CSM boot in the BIOS and try booting and make notes of the results. sda7 is a BIOS-boot partition which is only needed on a GPT drive with a Legacy boot on a Linux system. You have a mix of Legacy/CSM and UEFI files which is always going to be problematic. There is a menuentry for windows on your Fedora partition but it is incorrect as it is pointing to the windows system partition (sda2) and it needs to be pointing to the EFI partition (sda1) and to the specific file. Change the set root line and the chainloader lines to what shows below after disabling Legacy/CSM in the BIOS. Make a note of the results on reboot. Quote:
|
Quote:
Legacy csm boot does not exist on this computer [edit, there is no option in the bios). |
Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT If GRUB is installed, is the problem in sda1? |
Did you delete sda7 which is the partition which showed as BIOS_boot?
What happened when you changed the windows menuentry to the one I suggested above, pointing to the EFI file for windows? Are you posting this info from the Live Fedora? Or are you now able to boot the installed Fedora? Quote:
Quote:
Could you be specific about the current status? You said you can't boot windows 10, if you change the boot entry in grub.cfg as suggested is there any change. If you do make this change in grub.cfg as a test, do NOT run grub2-mkconfig. What happens when you try to boot Fedora. Haven't read your other threads so?? |
That was the advice, to delete all non windows partitions and try again, so that's what I did (including sda7). I do not know how to make a /boot partition, or an efi partition, or a root partition, or a swap partition, or a /home partition manually. Google does not help, I just spend hours sifting through information that only confuses me further. I try to follow something I read, it gets worse, and then I'm off fixing something else. There is definitely room for user error here, and I don't mean to imply that it is someone else's fault that I am in this position.
About three weeks ago I began my experiment with linux to see if it would correct a strange hardware problem that I was encountering in Windows. The error was making this laptop unusable. Linux did correct that error, but the version I was running (Fedora 22) was very out of date. I tried to upgrade it, following some advice I found on this forum that led me to believe reinstalling via live usb would overwrite any previous versions of Fedora. Rather than over it, Fedora 29 installed next to 22. The 22 partition was using up some 200G of disk space so I went about trying to delete it. Following advice I found on google, I ended up "scrambling my windows partitions." We tried to fix them but it didn't work. Next came running chkdsk from a Windows 10 installation usb. That didn't fix the boot loader and made Grub disappear. Following the commands above temporarily brought GRUB back, but none of the listed partitions were bootable, because of some sulogin error or something that said the system was locked down. Fedora disappeared from the bios boot list, leaving me with only removable media as boot options. I checked the bios and there is a Legacy or CSM option that is currently disabled. all that is enabled is UEFI without which the live image cannot boot. Today I deleted all non windows partitions, and reinstalled Fedora 29 hoping that with all other's gone, the MBR might just successfully boot into it. It did not. One last detail on grub. Two types of menus load upon reboot, sometimes one, somethimes another, and sometimes one before the other. One of them is a blurry light blue letters with white highlight displaying the selected option, the other is a crisp, regular font sized grey lettering with white highlight for selection. Both only display the live os as options along with a troubleshoot option. Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT |
|
Quote:
I don't know how you got windows code in the MBR, possibly trying to repair the boot from windows? Windows 10 on a GPT drive needs to be installed in UEFI mode so the windows code in the MBR is useless. The output below from your last post of the lsblk command would seem to indicate you did a Legacy install of Fedora. Can't think of any other reason you would have a 1MB partition? Run the bootinfoscript again and post the link or the output. Quote:
|
fedora does default to lvm partitioning, but during the disk partition stage the lvm can be changed to partition.
|
1 Attachment(s)
If the windows boot files are useless maybe they are getting in the way of GRUB from working properly, should I try to get rid of them, is that possible?
Quote:
Quote:
Quote:
|
see if this helps
Code:
sudo mount /dev/sda6 /mnt |
1 Attachment(s)
Thanks you guys, I'm booted into Fedora now, sans live disk. Thank you for all your help and your patience. I can't tell you what a relief it is to have that problem off my shoulders after all this time. I'll compile the steps I took and put them back into the first comment in case anyone else needs to use them.
It looks like the problem was LVM after all. Once I installed Fedora as a standard partition, organized as the video and link advised, it started up no problem. In case anyone is curious, I added a new bootinfoscript file for comparison. |
Quote:
|
All times are GMT -5. The time now is 10:02 AM. |