Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:multiboot [2018/11/17 14:20] – [Multiboot] scipio | tips:multiboot [2022/09/02 18:48] (current) – sscipioni | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Multiboot ====== | ====== Multiboot ====== | ||
- | https://mbusb.aguslr.com/ | + | * https://www.ventoy.net/ |
- | + | ||
- | copy iso into < | + | |
test | test | ||
< | < | ||
- | sudo qemu-system-x86_64 -enable-kvm | + | sudo qemu-system-x86_64 -enable-kvm -m 2G -vga std -drive file=/ |
</ | </ | ||
- | ===== old ===== | ||
- | |||
- | Creare una partizione FAT32 (anche altri filesystem sono supportati) con label MULTIBOOT | ||
- | |||
- | Creare una cartella boot all' | ||
- | |||
- | <code bash> | ||
- | grub-install --target=i386-pc --recheck --boot-directory=/ | ||
- | </ | ||
- | |||
- | EFI | ||
- | <code bash> | ||
- | sudo grub-install --target x86_64-efi --efi-directory / | ||
- | </ | ||
- | |||
- | |||
- | / | ||
- | <code bash> | ||
- | set imgdevpath="/ | ||
- | |||
- | set imgdevpath="/ | ||
- | |||
- | menuentry " | ||
- | set isofile="/ | ||
- | loopback loop $isofile | ||
- | linux (loop)/ | ||
- | initrd (loop)/ | ||
- | } | ||
- | |||
- | # from https:// | ||
- | menuentry " | ||
- | set isofile="/ | ||
- | bootoptions="" | ||
- | loopback loop $isofile | ||
- | linux (loop)/ | ||
- | initrd (loop)/ | ||
- | } | ||
- | |||
- | menuentry " | ||
- | set isofile='/ | ||
- | loopback loop $isofile | ||
- | linux (loop)/ | ||
- | initrd (loop)/ | ||
- | } | ||
- | |||
- | menuentry " | ||
- | set isofile='/ | ||
- | loopback loop $isofile | ||
- | |||
- | root=(loop) | ||
- | configfile / | ||
- | loopback --delete loop | ||
- | } | ||
- | </ | ||
- | |||
- | test boot with qemu | ||
- | < | ||
- | qemu-system-x86_64 -hda /dev/sdx | ||
- | </ | ||
- | |||
- | [[https:// | ||
- | |||
- | |||
- | ===== grub command line ===== | ||
- | |||
- | boot windows | ||
- | < | ||
- | insmod chain | ||
- | ls | ||
- | set root=(hd0, | ||
- | chainloader +1 | ||
- | boot | ||
- | </ | ||