How-to create a Windows 10 usb installation media in Linux
来源:互联网 发布:linux我的世界启动器 编辑:程序博客网 时间:2024/06/05 03:52
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.
1 0
- How-to create a Windows 10 usb installation media in Linux
- How to create a link in Linux
- How to create a bootable USB stick on Windows
- How to create (and deploy) a windows service in C# ?
- How to create a user in PostgreSQL
- How to: Create a Binding in Code
- How to create a function in SQL
- How to create linux's RMP installation package?
- How to create a bootable USB stick on Ubuntu
- How to create a bootable USB stick on OS X
- How to create a bootable USB stick on Ubuntu
- How to reset usb device in linux
- How to Reset USB Device in Linux
- How to Write a Linux usb module
- How to embed Windows Media Player in HTML document
- How to Create a Windows NT/ Windows 2000 Service
- How to Create a Windows NT/ Windows 2000 Service
- How to Create a Range From 1 to 10 in SQL
- Android 四大组件(总结)
- 一个服务器搭多个tomcat导致session丢失,或者同一个IP不同端口,多个应用的session会冲突解决方法
- 指针的危险
- Django数据库之一对一
- 人活着是为了什么--(反思 - 2016年10月27日)
- How-to create a Windows 10 usb installation media in Linux
- MapReduce学习(一)、(二)
- echarts-去掉X轴、Y轴和网格线
- Angular 2.0 实现的搜索框
- 前后台交互方法
- ansible第一次使用它的配置
- Linux下的常用命令(3.find)
- 2016秋季练习
- redis和memcached的区别