Trying to manually boot from grub
As title say, i want to manually boot from grub. This is because at school i will need to manually boot Fedora from an USB. From home this works just fine. I don't need to manually boot, i just choose the fedora version i want from grub menu and go using the same USB.
I tried to do the following to manually boot.
- set the root in my case this is set root=(hd2,msdos4) these values come from the /boot/grub2/grub.cfg
- set the linux img by typing linux /boot/vmlinuz-5.....
- set the initrd by typing initrd /boot/initramfs-5....
- type boot
This does however not work. The process fails to start "switch root" and that's it i can't get passed this stage.
First of all, to perform normal USB boot, you just select your USB as boot device on computer startup. It's much easier than what you want to achieve using grub. Just in case you heven't thought about is yourself.
If you can't do it for some reason, and need to manually boot from grub, then here's some tips.
help
in grub cli. It's quite useful toset pager=1
(or maybe justpager=1
) so that you could read long text screen-by-screen.You need to set root= on your step 1 to the device you'll be booting from, i.e. to the device where /boot/vmlinuz-... and initramfs is located. Autocompletion works in grub, and you can probe for these files with some of the commands,
ls
for example.Some of the parameters on the linux ... line in grub.cfg can be necessary to boot successfully.
root=
is one of them.Do you use Fedora's live USB or Fedora installed on USB. Live USB could be easier to boot with
chainloader
grub command (haven't tried it myself for usb booting).Instead of live USB as such it can be easier to boot from grub Fedora's ISO written to USB. There are quite a few how-tos how to do it, they are quite easy to find.
Speaking of how-tos, you can find some about booting manually, here's one. There author tells you need to specify root on
linux ...
line, maybe that's what you haven't done? Also check his remark about LVM, by default Fedora uses LVM, look at your grub.cfg.Hope it helps in some way or another. )