u盘 移动硬盘 grub2 install ubuntu and windows

https://askubuntu.com/questions/289559/how-can-i-create-a-windows-bootable-usb-stick-using-ubuntu/487970#487970?newreg=696b58c562d04a3697d54e5149d1ed5e

http://onetransistor.blogspot.com/2014/09/make-bootable-windows-usb-from-ubuntu.html


sudo grub-install --boot-directory="/media/user/MyUSBDrive/boot" /dev/sdX



/media/ligf/34B706CB1C86FB6B/boot/grub/grub.cfg

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry 'Install Windows 8 [/bootmgr]' {
 ntldr /bootmgr
}

menuentry '/iso/xubuntu-16.04-beta2-desktop-amd64.iso ' {
set isofile="/iso/xubuntu-16.04-beta2-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}

menuentry "boot grldr " {
    insmod ntldr
    ntldr /boot/grub/grldr
}


你可能感兴趣的:(u盘 移动硬盘 grub2 install ubuntu and windows)