Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usb fedora stuck during boot #33

Open
ghost opened this issue Jul 24, 2024 · 10 comments
Open

Usb fedora stuck during boot #33

ghost opened this issue Jul 24, 2024 · 10 comments

Comments

@ghost
Copy link

ghost commented Jul 24, 2024

Hi, this was working last week, but it seems that now it does not. When booting the usb key, the process stops and the system get stuck on the last line of the screenshot attached.
Then after 20secondes the system make an hard-reset.
Not sure what is happening ....
Untitled

@a-plastic-bag
Copy link

a-plastic-bag commented Aug 2, 2024

Reproduced here on my 2021 M1 Pro MacBook Pro. Live environments seem to be my only way to restore my btrfs backups, so without this I can’t fix my Asahi install :(

Edit: after plugging the USB into different ports and rebooting 3 times it boots fine now. Not sure why.

Edit 2: Consecutive boots are failing the same way. I have no idea why it worked only once.

@ImanolBarba
Copy link

Same issue :(

@ImanolBarba
Copy link

I was able to boot by telling grub to load the kernel and initramfs from the working asahi install on the disk (not the one on USB), so either the kernel cmdline or something related to kernel/initramfs installed in the USB is wrong.

@danacr
Copy link

danacr commented Aug 15, 2024

Same here @ImanolBarba can you share the commands that got it working?

@ImanolBarba
Copy link

ImanolBarba commented Aug 16, 2024

  1. Boot with the USB drive
  2. Once in GRUB2, input
set root=(hdX,Y) 
linux /vmlinuz-ABC ro root=/dev/sdZ verbose
initrd /initramfs-ABC
boot

(I'm AFK and I wrote this from memory, I think it should work but I might be forgetting something)

Where X is the disk where asahi /boot is, Y is the partition. ls command will list disks

Z Is the expected drive name for the usb, if you have no other storage media should be sda

ABC is the kernel version and release. GRUB2 supports listing files and tab completion.

This is a shitty workaround, not a proper solution, but can get you out in a pinch (for me it was the need to resize the asahi partition on disk). Essentially what we're doing here is borrowing the main install kernel and initramfs to boot the Linux system in the usb, this works properly enough because it's the same distro, otherwise you might run into breakage if the kernel config was radically different.

I don't recommend you attempt this unless you're comfortable with GRUB, there shouldn't be any danger of losing data, but definitely danger of losing sanity

Cheers and good luck

@ImanolBarba
Copy link

Also if I didn't convince you this is a bad workaround, did I mention you have to do this everytime you wanna boot the USB? The only chance of automating this is to write a loader.conf entry that would have to be manually updated everytime you update the kernel on the asahi install on disk.

@danacr
Copy link

danacr commented Aug 17, 2024

thanks @ImanolBarba ! I needed to boot from USB to encrypt the lvm, but even with your suggestion it hangs on boot :(

@ImanolBarba
Copy link

Sorry to hear that, hopefully the devs will find the issue soon

@danacr
Copy link

danacr commented Aug 22, 2024

@stapelberg did you encounter this issue?

@stapelberg
Copy link

No, but the last time I booted a live Asahi was about a year ago, almost to the day :)

(Nowadays, I just boot the installed version, haven’t had a need to boot a live version.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants