I am trying to install ubuntu on an acer aspire a515-48m laptop with amd ryzen 5 processor (it is uefi only in bios, legacy option does not exist). It has only "free dos" (uefi shell) on it with the commands as specified at uefi.org, bios version 1.0, insydeH2O setup utility rev 5.0 is written at the top of the screen in bios.
The problem is that it refuses to boot from the usb. I can only get as far as the grub menu. Question - Is there anything I can do to boot the live ubuntu usb, so I can then install linux?
I know there are a lot of questions about this but many are 3+ years old and did not help. What I tried:
usb stick with 1 fat32 partition, live ubuntu 20.04.6 and 23.10.1 (each tried separately), installed with unetbootin
usb stick with 2 fat32 partitions, live ubuntu 20.04.6 and 23.10.1 (each tried separately), installed with unetbootin; the first partition is EFI; the EFI partition was populated with this command:
sudo grub-install --target=x86_64-efi --boot-directory=/media/user/EFI/EFI/BOOT/ --efi-directory=/media/user/EFI/ /dev/sda1 --verbose
(if this command does not work, may need to sudo apt install grub-efi
first; /dev/sda1 is the usb EFI partition)
- options 1 and 2 above, with msdos partition table on the usb stick (the laptop saw it), and with gpt partition table (the laptop did not see the stick in the bios at all); I tried with gpt partition table as well just in case, as I saw the ssd has gpt partitions, using ls in grub;
I have to mention that one or both of options 1 and 2 with msdos partition table work great on all other laptops I tried previously
in the case of options 1 and 2, the grub menu appears, and after selecting ubuntu, it says
EFI stub: loaded initrd
, then the screen goes blank and then it goes back to the acer splash screen;at the grub menu, I tried to press
c
, and then tried to load linux from grub:ls set root=(hd0,msdos1) linux /ubnkern initrd /ubninit boot
I also tried linux /ubnkern root=/dev/sda1
though it did not make any difference, and I have no way of knowing if the usb on that laptop would be /dev/sda1 or something else
when booting, the screen goes blank, and back to acer splash screen; the ubuntu logo does not even show up
I tried to disable the SSD in the bios (press F2 during boot to get into BIOS), but even so the usb does not boot; even if it had, I would not have been able to install with the SSD disabled; I also tried to press ctrl s in the Main tab in BIOS, and two more menu options appeared that did not help
the above was with secure boot disabled; I tried to enable secure boot and specifically select the efi file BOOTx64.EFI from the usb, no difference
in the EFI directory, I copied the boot efi as all 3 of these names (3 identical files) BOOTx64.EFI shimx64.efi bootmgfw.efi in case it looks for one of the other names
in the grub menu I also tried to press
e
and add this optionnvme_core.default_ps_max_latency_us=5500
and then press ctrl x to boot, which also didn't help; I also triednvme_core.default_ps_max_latency_us=9000
for good measureI also tried tried kali 2023.3, parrot 5.3 and gnoppix 23.12 and the grub menu locks up and beeps continuously until I shut it off holding down the power button for all of these
I tried opensuse, gentoo, mint, blackarch and altlinux rescue, they all fail the same, after efi stub starts loading initrd, the screen goes blank and back to acer splash. The exact message printed by ubuntu 23.10 is:
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path EFI stub: Measured initrd data into PCR 9
then blank and back to square one.
I tried to copy ubnkern and ubninit to the fs1:\EFI\BOOT directory (the live ubuntu usb) using the UEFI shell (so-called free dos) and renaming ubnkern to ubnkern.efi, which makes it an executable in UEFI shell, and then type its name to run it, and same thing, screen goes blank and back to acer splash;
Tried debian testing latest build iso and it locks up and beeps until it is shut off using the power button, so it doesn't look like this is fixed. The same happens if booting in uefi shell, and then going to fs1:\EFI\boot and running bootx64.efi
is there any way to get ubuntu/debian to print some debug when loading the kernel or initial ramdisk (initrd) or whatever it is doing after that in the blank screen, before returning to the acer splash, to at least give a hint of why it is not working?
what I did not try:
physically remove the ssd and put it in another laptop and try to install it that way, though I have no way to know whether that would work or not until I try
is that how linux is to be installed on acer laptops? or acer finally figured out how to make laptops unusuable for linux, and they should be avoided?
could it be hardwired to not run linux?
this answer is not for you if the live linux usb boots, and you can run ubuntu in memory, but you cannot install because it does not see the ssd or something like that - then you just press F2 during boot to go into the bios, go to the main tab, press
control-s
to reveal the hidden secret options, and set the sata mode to ahci.this answer is for anyone who could not install linux on their a515-48m or similar model, because the live linux usb gets as far as the grub menu, and then returns to the acer splash screen and refuses to boot any linux distro at all.
I figured it out, in the year 2023 AD, acer made it simple, easy and straightforward to install linux on the aspire a515-48m with ryzen5 cpu in 1 step which I describe here in the hope it may be useful to anyone else encountering this issue -
the a515-48m laptop has uefi shell installed, referred to as "free dos" - the link is to the official pdf explaining the dos-like commands available to you in this shell
the bios is version 1.00 which does NOT allow booting from a live linux usb, unless it is a windows iso - this is what I suspected in the question, and that is why the question was voted down, but it turned out to be the exact cause; I tried over 10 different linux distro iso images (including debian, ubuntu, altlinux, blackarch, opensuse, kali, parrot, gnoppix and others), and made a live usb using unetbootin, on 4 different usb sticks, and they cannot go past grub, as described in the question; removing quiet splash in the grub menu command to make it print debug does not help, as it fails before starting to print any debug;
according to this acer post the bios does support booting live linux iso images starting with bios version 1.21, but the a515-48m has bios version 1.00 installed for convenience
going to this acer link and typing a515-48m (or your model if it is different) you get a list of items you can download to upgrade it, such as drivers - scroll down to see the bios upgrade and download it; the bios upgrade is a zip file, containing an .exe file, with bios version 1.52 (at this time) which of course does NOT run in the uefi shell present on the laptop; it does run in windows
next you go to download the windows 10 iso which is only 5.7 gigs or so; the reason you need this, is to upgrade the bios, so that you can boot a live linux usb, so that you can then use that to install linux;
get unetbootin which enables you to make a live usb from an iso on linux, or rufus to do the same on windows, and put the downloaded windows iso on a usb; also make sure to unzip the bios upgrade downloaded above and put the .exe file it contains on the usb as well;
boot the acer a515-48m (or your model) with the live windows iso - you may have to press F2 during boot/post to go to the bios and select the usb as the first boot option by pressing F6 to move it up; going to the main tab and pressing control-s to reveal secret options does not help on the a515-48m, as it is already in ahci mode, the ssd works fine, and the options that appear are about a "bar"(whatever that is) and the touchpad, not related;
surprise - the windows live iso boots fine on the acer a515-48m!(why would anyone ever need to boot anything other than windows?) no issues as with any of the linux iso images; on the first screen, use
tab
to select next, and pressenter
;on the second screen use
tab
to select repair your computer and press enter - do NOT select install windows!select troubleshoot and press enter
select command prompt and press enter
the live usb should be
d:\
, you can verify by typingdir d:\
and you should see the bios upgrade exe you copied there; if it is not d:, try dir a:\ dir b:\ dir c:\ dir e:\ dir f:\ to find ittype
d:\bios_152.exe
(or whatever it is called on your usb) to run it - fortunately you can run the bios upgrade from the windows live command prompt without installing windows - the computer must be plugged in to an AC power source, because if the battery runs out during the bios upgrade, the computer will be bricked, as with a broken bios it can not start anything; so this step is critical - double check that you are running the bios upgrade for your specific model if it is not the a515-48mafter the bios upgrade is complete, you can now turn off the computer by holding the power button down for about 10 seconds
use unetbootin, rufus or your favorite tool to put your favorite linux iso on a usb to make it live, and now when booting the a515-48m surprise! it boots linux, and thus you can now install linux on it!
if you should find that the mouse appears frozen when the linux desktop appears, note that there is a
Fn
key in the lower left of the keyboard, and one of the functions keys at the top, such asF7
orF10
has the function to freeze/unfreeze the mouse pointer; so if the mouse pointer is frozen, hold down the Fn key and press F10 or F7 once whichever it is or it may be a different function key, and then try to move the mouse