On Oct 12, 2014, at 9:09 AM, Pierre Labastie <[email protected]> wrote:
> Le 12/10/2014 14:56, Dan McGhee a écrit : >> The project of writing a hint for Grub and UEFI has morphed into, at least >> for >> me and my laptop, a non-trivial exercise. The problem is that HP hard codes >> the path to the Windows boot loader and over writes any changes I make to the >> boot order of the OS Boot Manager. As a result, I cannot, as things stand >> now, >> test the hint procedures on my own machine. >> >> I bought an iMac a couple of days ago, so my iTunes issue is resolved. >> Ultimately, I want my laptop to be completely linux, but I obviously don't >> want to nuke, except for windows, what I already have. >> >> I have an Ubuntu install image on a flash drive, but I want to put Grub on >> one >> and use EFI. I know how to install a grub image there and I'm going to >> compile modules into the image so Grub doesn't have to look for them. When I >> get this done and can boot with that new flash drive I want to remove windows >> and the HP stuff. >> >> My plan is this: delete *all* the non-linux files and directories from my EFI >> partition, reset the boot order and then cross my fingers and restart. If >> this works, then it's "trash windows" time. When that happens, I will be >> moving partitions around. >> >> First of all, does anyone have any comments or guidance on deleting the files >> and directories from the EFI partition and then booting? I think it's pretty >> straight forward and, from everything I've read, *conceptually* I should get >> the results that I want. I just want to be as prepared as I can be. >> >> Secondly: I have let grub-mkconfig write the current configuration files for >> grub until I can find the minimum number of modules I need to manually >> generate a grub.cfg. The current grub.cfg uses UUID's for the partitions. I >> can't find any info on the question I'm about to ask. >> >> When a partition is created on a gpt disk, does it retain it's UUID even if >> the partition moves or gets resized? If it keeps the UUID, then rebooting >> after I rearrange the furniture on my hard drive becomes merely a matter of >> setting root in the grub command line and pointing "configfile" to the >> appropriate place. Otherwise, I'll have to issue all the commands to grub to >> boot the LFS I want. >> >> Comments? Guidance? Gotchas? >> >> Thanks, >> Dan >> > Hi Dan, > > For the problem you have, I think I saw on internet that even if the filename > is hardcoded in the bios, you can rename grubx64.efi to that name (after > saving the windows file). Then, if you still need windows, have grub boot the > remaned file. I have not tried that myself, since I do not have Windows. > > Googling around, I think I've found something which might help > (http://askubuntu.com/questions/244261/how-do-i-get-my-hp-laptop-to-boot-into-grub-from-my-new-efi-file/244343#244343). > That's not what I had seen before, but the second item in Rod Smith's answer > describes the same thing. > Thanks again, Pierre. What is in that link is actually what’s in place on my laptop now. AFAIK this “quirk” exists only on HP’s. In writing and testing my hint, I want to make it easily usable by those who have non-HP’s. I can do everything I’ve written in the hint so far up to but not including a successful boot. HP and Windows over-write the boot order each time. I have four different ways to successfully boot my laptop. I want a fifth—default OS boot manager. Windows and HP have successfullly eliminated that. (Sorry, I’m ranting.) Dan -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
