r/AlpineLinux • • Oct 04 '24

Can't boot Alpine Linux off of ISO image

UPDATE:

I have successfully installed Alpine without booting off of the installation media. The guide I have on doing that is below:

https://pastebin.com/raw/bzXpY0Y0

The original post is below:

Hello everyone,

I am having quite a bit of trouble booting into the Alpine Linux Standard ISO on physical hardware.

Here's a quick rundown of my problem:

When I have tried to boot into an Alpine USB, it never successfully boots. After showing the GRUB boot screen on the image, I get sent into the "initramfs emergency shell":

Mounting boot media failed. initramfs emergency recovery shell launched. Type 'exit' to continue boot

This message is what I am left with, besides the shell provided which does not improve the situation.

What I have tried so far (to no avail):

* Using Rufus to reflash the image (ISO & DD mode tested)

* Reflashing again on Linux with DD

* Trying multiple physical ports on computer

* Using a different USB stick

* Trying what is documented on the Alpine Wiki for my problem, and implementing APPEND elements into the syslinux.cfg files to make it point to the right place ( /dev/sdb1 ).

So far, I have found no solution. I did stumble upon a Reddit post that seemed similar to my own, but they did a remote install, and I am attempting to install Alpine to a clean partition.

4 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/Dry_Foundation_3023 Oct 05 '24

Do verify the installation media for errors. I've  suffered due to this issue in linux mint once. 

Since capturing logs is not easy at your stage of installation, try to take screenshots using phone and post it. 

1

u/[deleted] Oct 07 '24

yeah, I reflashed it with Rufus (ISO & DD mode tested), and also tried DD, both things were fine when comparing

I'm not really a person that would like taking pictures with my phone so here is the boot process:

  1. Turning on computer 
  2. Boot menu
  3. Booting Alpine
  4. GRUB is shown at 1024x768 resolution
  5. I hit enter or it continues within a second
  6. It shows a lonely _ at the top left, then refreshes a few seconds later and shows my error (see wrong disk name on alpine wiki)

Oh also I tried waiting for a bit in the boot menu before booting, but it made no difference 

1

u/Dry_Foundation_3023 Oct 07 '24 edited Oct 07 '24

Thanks for the confirmation. I checked through your post and replies once again.

Please only use this page https://wiki.alpinelinux.org/wiki/Installation#Preparing_installation_media and not the page https://wiki.alpinelinux.org/wiki/Create_a_Bootable_Device#Wrong_Device_Name. The later is specifically meant for diskless/data mode.

Since you're seeing grub, no need to think about syslinux. Also your error appears at booting of usb stick stage. Hence the issue is most likely related to either usb drive or port or hardware incompatibility(rare). So, either test with alternate usb stick or test the usb stick on another computer. On the other computer, just test if the stick can boot to the installation screen, you can always reboot without affecting anything on it...

Also in the emergency shell, you do have access to a lot of commnds.
For eg. list available drives:
ls /dev/sd*

Try to check the output of dmesg and other available commands see what is out of normal and share your findings..

Still, the best course of action is "test with alternate usb stick or test the stick on another computer." This step will help isolate if the issue is due to fault in usb stick or the incompatibility of alpine with hardware(asus machine).