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.
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.
相关文章推荐
- windows 10中的ubuntu子系统安装桌面环境的方法(How to install Ubuntu-desktop in windows 10 Subsystem for Linux)
- How to create and extract zip, tar, tar.gz and tar.bz2 files in Linux
- How to reset usb device in linux
- How to Reset USB Device in Linux
- How to create aligned partitions in Linux for use with NetApp LUNs, VMDKs, VHDs and other virtual di
- How to embed Windows Media Player in HTML document
- how to use usb device in linux version 3.00.14(1)-release (i386-redhat-linux-gnu)
- How to access system messages in Linux? Does Linux have something like Windows Event Log?
- How to Use Linux Commands in Windows with Cygwin
- How to use USB 3G dongle/stick Huawei E169/E620/E800 ( Chip used Qualcomm e1750) in Linux (China and world)
- How To Reset Win+PrtScr Screenshot Counter in Windows 10 | 8.1
- How to disable the Media Sensing feature for TCP/IP in Windows
- How to enable AHCI in Windows 7 RC after installation
- How to create Oracle ASM devices using device-mapper multipath devices in Red Hat Enterprise Linux 6
- How to burn Linux Kernel into nor flash and rootfs in USB stick at Mindspeed c1k
- How to Create a Virtual Drive in Windows XP
- How to Create a Automated Task that Runs at a Set Time in Windows 7
- How to Create an R Package in Windows
- linux_How Do I Access or Mount Windows/USB NTFS Partition in RHEL/CentOS/Fedora
- How to create .gitignore file in Windows Explorer