Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:multiboot [2015/12/30 18:55] – [Multiboot] scipio | tips:multiboot [2022/09/02 18:48] (current) – sscipioni | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Multiboot ====== | ====== Multiboot ====== | ||
+ | * https:// | ||
- | Creare una partizione FAT32 (anche altri filesystem sono supportati) con label MULTIBOOT | + | test |
- | + | ||
- | 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="/ | + | |
- | + | ||
- | menuentry " | + | |
- | set isofile="/ | + | |
- | 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 | + | sudo qemu-system-x86_64 -enable-kvm -m 2G -vga std -drive file=/dev/< |
</ | </ | ||
- | [[https:// | ||
- | |||
- | |||
- | ===== grub command line ===== | ||
- | |||
- | boot windows | ||
- | < | ||
- | insmod chain | ||
- | ls | ||
- | set root=(hd0, | ||
- | chainloader +1 | ||
- | boot | ||
- | </ | ||