Author |
Message |
btm
|
Posted: Fri Mar 07, 2014 8:58 pm |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
I have installed LinHES 8.1.1 from both disk and USB stick on a new-ish Lenovo H520 that originally had Windows 8 or 8.1, UEFI, secure boot, etc. The installation completes, but when it tries to reboot from HD it displays "No operating system found" and something like "press any key to retry". I've tried various combinations of the "bios" settings for secure boot, CSM, and boot mode {legacy|UEFI}. The installation always make a GPT disk, regardless of the disk partition type before the install, or the boot mode of the install media. Some Lenovo machines are particular about the label of the boot partition: https://wiki.archlinux.org/index.php/GR ... hinkCentrebut I have trouble following these suggestions. I haven't learned enough about GRUB or UEFI to understand what EFI\Boot or /boot/efi refers to, and I don't seem to have these files or directories. And when I try to use efibootmgr, not much happens: [root@myth1 ~]# efibootmgr -v Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root. [root@myth1 ~]# modprobe efivars [root@myth1 ~]# efibootmgr -v Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root. Here's a Boot Repair 64-bit report on my system: http://paste.ubuntu.com/7053644/By booting from the LinHES media, and selecting "Boot existing OS", I'm able to boot into LinHES from the HD, and I'm able to get to the command line and access the myth and root accounts. I have tried changing the partition names with gdisk on partitions 1 or 4 to "Windows Boot Manager" and "Red Hat Enterprise Linux" as mentioned on the arch wiki link above for a particular Lenovo box (and no luck), but I suspect that the partition name set with disk, and the label set by efibootmgr are two different things. Any suggestions welcome!
|
|
Top |
|
|
tscholl
|
Posted: Fri Mar 07, 2014 10:11 pm |
|
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location:
Lexington, Ky
|
|
Top |
|
|
btm
|
Posted: Sat Mar 08, 2014 6:39 pm |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
Still not there. Thanks to your link, I did check the MBR boot flag, and it wasn't set, so I set it. But the HD still doesn't boot directly. I have to boot the LinHES disc, and from there, "boot existing OS". Here's what fdisk -l looks like after I set the bootable flag: Code: [root@myth1 ~]# fdisk -l /dev/sda
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000
Device Boot Start End Blocks Id System /dev/sda1 * 1 1953525167 976762583+ ee GPT Partition 1 does not start on physical sector boundary. [root@myth1 ~]#
|
|
Top |
|
|
RacerX
|
Posted: Sat Mar 08, 2014 9:04 pm |
|
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
|
|
Top |
|
|
btm
|
Posted: Sun Mar 09, 2014 2:41 pm |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
RacerX wrote: Wow, thanks, but a "maze of twisty little passages, all alike." I'll have to read this multiple times to see if I can find what is important. Currently, if I boot the CD in legacy mode, I end up at a menu that includes "boot existing OS," which works. If I boot the cd in UEFI mode, it is different, and it asks me for my Country and Keyboard choices, then ask me if I want to (1) Install or Upgrade, (2) Run MythFrontend, and two more, maybe exit this menu or something. I've also booted from USB stick, but I'm not sure the mode, or if I can do both modes. I was hopping that I'd have this box booting and my recordings moved to it by the time Cosmos starts tonight, but that seems like wishful thinking at this point.
|
|
Top |
|
|
btm
|
Posted: Sun Mar 09, 2014 4:00 pm |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
So, it looks like I don't have an ESP, or EFI System Partition, of type EF00. So, I'll need to fire up gparted and make room for that. Or maybe, I need to do a "do over" reinstall and make sure I boot the install media in UEFI mode.
|
|
Top |
|
|
mattbatt
|
Posted: Sun Mar 09, 2014 8:57 pm |
|
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location:
Orlando FL
|
|
Top |
|
|
btm
|
Posted: Mon Mar 10, 2014 8:02 am |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
mattbatt wrote: Not yet, but I think that is coming up soon. My quick attempt to re-install with a UEFI-booted CD did not produce any improvement. (I was fairly sure I had done that before, but wanted to be positive.) As far as I know, I do not have a ESP, so I think my next actions are to shrink a partition to make room for an ESP, then make use of it to try out gummiboot or one of the other alternatives. I can't see how it was supposed to work without an ESP. My partitions are listed in a Boot Repair 64-bit report here: http://paste.ubuntu.com/7053644/
|
|
Top |
|
|
RacerX
|
Posted: Mon Mar 10, 2014 9:00 am |
|
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
|
|
Top |
|
|
brfransen
|
Posted: Mon Mar 10, 2014 12:38 pm |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
|
Top |
|
|
btm
|
Posted: Mon Mar 10, 2014 3:13 pm |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
Am I correct that there is no ESP (EFI System Partition), and do you think that adding one is the next step for me? The guides I read about efibootmgr, gummiboot, etc. refer to the ESP.
|
|
Top |
|
|
btm
|
Posted: Thu Mar 13, 2014 7:54 pm |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
I'm still working on this.
Full install of LinHES 8.1.1 from USB key Unselect the option to use the rest of the disk for data. Instead, make a data partition that is a GB or so smaller, so that there is room to make an ESP. Boot from DVD (because USB key doesn't seem to work here), then "Boot Existing OS" Alt-X to open a shell Run gdisk to create a ESP (EF00) partition of 550MB. Formatted the partition as FAT32 Copied rEFInd files to the system, and ran its ./install.sh script to install. HD failed to boot "No operating system found". Burned rEFInd to CD, booted from it. It finds the linux install, offers to boot from it, but the boot hangs at "Init: Entering run level 3". Disturbing; it looks like once I figure out this boot problem, I'll have another. I bet a current or future problem is that my video card seems to need CSM mode on for it to work, but having CSM mode on may interfere with UEFI booting. rEFInd didn't put its files at the "default" location of /boot/efi/bootx64.efi, but at /boot/efi/EFI/BOOT/, so I made copies of those files at /boot/efi. Now, when I boot the rEFInd CD, I have menu entries to boot linux, and to boot the bootx64.efi. Still, HD failed to boot, "No operating system found."
Last edited by btm on Fri Mar 14, 2014 8:10 am, edited 1 time in total.
|
|
Top |
|
|
mattbatt
|
Posted: Thu Mar 13, 2014 10:19 pm |
|
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location:
Orlando FL
|
Are you sure you don't have some random card reader or drive set as the boot first drive instead of hd that you want?
_________________ My System
|
|
Top |
|
|
btm
|
Posted: Fri Mar 14, 2014 8:11 am |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
mattbatt wrote: Are you sure you don't have some random card reader or drive set as the boot first drive instead of hd that you want? I'll double check, but there is only the one hard drive, the dvd drive, and occasionally a USB stick.
|
|
Top |
|
|
btm
|
Posted: Sat Mar 15, 2014 9:03 pm |
|
Joined: Fri Mar 07, 2014 7:15 pm
Posts: 17
|
Well, after almost a couple weeks of trying various things, I'm punting. I think it comes down to a problem in the system's UEFI: when I have CSM on (for my video card), and LinHES always makes a GPT disk, and the combination is just broken on this box.
I installed MythBuntu last night, and have made a few recordings today. Some stability problems when I watch live TV, but the recordings seem to be working OK.
|
|
Top |
|
|