您的位置:首页 > 运维架构 > Linux

How-to create a Windows 10 usb installation media in Linux

2016-10-27 19:35 435 查看
I need to install windows 10 in a machine, but all my machines are running Ubuntu Linux, and of course Microsoft does not provide a tool in Linux.

I found out this method to create a Windows 10 usb installation media in Linux:

Get a Windows 10 installation ISO.

Prepare the usb disk, assume it’s in /dev/sdd

create a new partition table, and a primary partition, mark it as active partition.

format it in ntfs.

mount the iso image

mkdir -p /tmp/win10iso

mount PATH_2_ISO /tmp/win10iso

mount the usb

mkdir -p /tmp/usb_disk/

mount /dev/sdd1 /tmp/usb_disk

copy the files

rsync -avP /tmp/win10iso /tmp/usb_disk/

install boot loader

grub-install –target=i386-pc –boot-directory=/tmp/usb_disk/boot /dev/sdd

add a file /tmp/usb_disk/boot/grub/grub.cfg

# grub.cfg

menuentry “Install Windows 10” {

set root=(hd0,msdos1)

chainloader +1

}

umount the partitions.

Done.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux windows