The first article.
If you have only one Win machine in your house, you have to make two USBs, and if the Win machine breaks for some reason, you have to fix it. ex. I broke the boot area
Win10 and Ubuntu dual boot You can do it only on Linux, but since install.wim is 4GB or more, Takes up storage space
https://tb.rg-adguard.net/public.php You can get past Winiso from here You can also get the latest version of the iso from the Media creation tool.
You can skip this step if you downloaded it with the Mediacreation tool </ b>
Dism /Get-WimInfo /WimFile:D:\sources\install.wim
Dism /Get-WimInfo /WimFile:{ESD file path} or {WIM file path}
Then the edition number will come out, so make a note of it.
Dism /Export-Image /SourceImageFile:{ESD file path} /SourceIndex:{Index number} /DestinationImageFile:{WIM file path} /Compress:max /CheckIntegrity
Please change the extension to .wim or .esd as appropriate.
grub-install Create a fat32 partition of at least 100MB
mount /dev/100MB partition/mnt
mkdir /mnt/boot
grub-install --target=x86_64-efi --efi-directory=/mnt --boot-directory=/mnt/boot --removable --recheck
grub version 2.04 cannot chainload iso Overwrite /efi/* with 2.02 .efi I extracted from lubuntu 18.04 iso
The partition that stores the ISO must be fat32 /GRUB/boot/grub/grub.cfg
touch /USB_mountpoint/boot/grub/grub.cfg
grub.cfg
insmod all_video
insmod fat
insmod ntfs
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root XXXX-XXXX #ISO partition UUID
else
search --no-floppy --fs-uuid --set=root XXXX-XXXX #ISO partition UUID
fi
# System shutdown
menuentry "System shutdown" {
echo "System shutting down..."
halt
}
# System restart
menuentry "System restart" {
echo "System rebooting..."
reboot
}
# Firmware setup
menuentry "Firmware setup" {
fwsetup
}
# Xubuntu
menuentry '[loopback]xubuntu-20.04-desktop-amd64' {
set isofile='/iso/xubuntu-20.04-desktop-amd64.iso'
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
initrd (loop)/casper/initrd
}
# Kail Linux
menuentry "[loopback]kali-linux-2019.4-lxde-amd64" {
set isofile='/iso/kali-linux-2019.4-lxde-amd64.iso'
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live findiso=$isofile noconfig=sudo username=root hostname=kali
initrd (loop)/live/initrd.img
}
# Ubuntu Server
menuentry '[loopback]ubuntu-20.04-live-server-amd64' {
set isofile='/iso/ubuntu-20.04-live-server-amd64.iso'
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
initrd (loop)/casper/initrd
}
# WinPE
menuentry '[chain]Hiren’s BootCD PE' {
insmod chain
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root XXXXXXXXXXXXXX #WinPE partition UUID
else
search --no-floppy --fs-uuid --set=root XXXXXXXXXXXXXX #WinPE partition UUID
fi
chainloader /EFI/Boot/bootx64.efi #bootx64.efi PATH
}
# Win10
menuentry '[chain]Win10_1909_Japanese_x64' {
insmod chain
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root XXXXXXXXXXXXXX #Win Installer partition UUID
else
search --no-floppy --fs-uuid --set=root XXXXXXXXXXXXXX #Win Installer partition UUID
fi
chainloader /efi/boot/bootx64.efi #bootx64.efi PATH
}
lsblk -f /dev/sda
lsblk -f | grep MOUNT_POINT
https://qiita.com/SkyLaptor/items/7f2bf545e3d0a9170303 https://wiki.archlinux.jp/index.php/%E3%83%9E%E3%83%AB%E3%83%81%E3%83%96%E3%83%BC%E3%83%88_USB_%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96 https://qiita.com/roamer7038/items/b61cc70404a4e5ab181b
Thank you for reading such a hard-to-read article
Recommended Posts