Answer the question
In order to leave comments, you need to log in
Can't run $ sudo ../grub-install -d. --efi-directory /boot/efi/ --target=i386?
I restore the hornbeam - I do it according to the article - I'm stuck at point 6) - it gives out Installation for the i386-efi platform is in progress.
../grub-install: error: could not open './moddep.lst': No such file or directory.
....
Repairing GRUB so that we don't have to write those commands in GRUB every time at startup.
Each command is confirmed by pressing
Enter
.
, press enter and wait. It will ask for a password - we write. In general, I advise you to copy-paste commands. Go to w3bsit3-dns.com via firefox and copy-paste commands from here. In the terminal, ctrl + v does not work, so RMB on the touchpad and "Paste" or "Paste" if you have not set Russian in the settings yet.
2. After waiting write this:
Code
git clone git://git.savannah.gnu.org/grub.git
3. After finishing this:
Code
cd grub
4. Copy-paste this:
Code
./autogen.sh
Yes, with a period before slash. We are waiting for a long time.
5. Then copy-paste it:
Code
./configure --with-platform=efi --target=i386 --program-prefix=""
make
And wait here. Expectations are more than any action.
6. Move to grub-core:
Code
cd grub-core
7. Write command:
Code
sudo ../grub-install -d . --efi-directory /boot/efi/ --target=i386
And again we are waiting.
8. Now we move to EFI:
Code
cd /boot/efi/EFI
10. Here we write the command:
Code
sudo cp grub/grubia32.efi ubuntu/grubx64.efi
after which nothing visually appears. We wait 10 seconds for everyone and continue.
11. Write the
Code
sudo nano /etc/default/grub
12. In the editor, in the line GRUB_CMDLINE_LINUX_DEFAULT, replace the text in quotes with
Code
video=VGA-1:1368x768e reboot=pci,force
13. Press ctrl + o, then Enter, then ctrl + x - exited the editor.
14. Update the GRUB config:
Code
sudo update-grub
15. Reboot. The flash drive is no longer required.
Answer the question
In order to leave comments, you need to log in
Why are you compiling grub from source if it's available by default in Ubuntu?
1-6 can be skipped entirely. Instead, you do:
sudo apt-get update
sudo apt-get install grub-efi-ia32
-d
:grub-efi-ia32
so that it is normally updated.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question