1、使用apt-get安裝WoeUSB依賴的軟件包
sudo apt-get install devscripts equivs gdebi-core
其中管行,
devscripts包含了一堆方便維護(hù)與管理Debian軟件包的腳本。
equivs用于創(chuàng)建最小Debian軟件包,即只包含軟件包依賴關(guān)系信息而沒有實際的軟件起胰。
gdebi-core用于對本地deb軟件包解決依賴性問題并自動安裝相關(guān)的包。
2巫延、使用git下載WoeUSB
git clone https://github.com/slacka/WoeUSB.git
進(jìn)入下載的WoeUSB文件夾并執(zhí)行setup-development-environment.bash
cd WoeUSB
./setup-development-environment.bash
3效五、使用mk-build-deps命令創(chuàng)建描述依賴關(guān)系的deb包
mk-build-deps
執(zhí)行后,會在當(dāng)前目錄下生成woeusb-build-deps_3.2.12_all.deb炉峰。
使用dpkg命令安裝woeusb-build-deps_3.2.12_all.deb
sudo dpkg -i woeusb-build-deps_3.2.12_all.deb
安裝的過程中會自動下載依賴的軟件包libwxbase3.0-dev畏妖、libwxgtk3.0-dev、wx-common疼阔、wx3.0-headers戒劫。
4半夷、開始制作windows 10 u盤啟動盤。
進(jìn)入iso下載目錄
cd /home/george/下載
sudo /home/george/deb/WoeUSB/src/woeusb --device Windows\ 10\ x64.iso /dev/sdb --target-filesystem NTFS
制作過程如下:
WoeUSB v3.3.1-3-gf3be27c
==============================
Mounting source filesystem...
Wiping all existing partition table and filesystem signatures in /dev/sdb...
/dev/sdb:2 個字節(jié)已擦除,位置偏移為 0x000001fe (dos): 55 aa
/dev/sdb:將調(diào)用 ioctl 來重新讀分區(qū)表:成功
Ensure that /dev/sdb is really wiped...
Creating new partition table on /dev/sdb...
Creating target partition...
Making system realize that partition table has changed...
Wait 3 seconds for block device nodes to populate...
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
--2020-10-11 20:18:10-- https://github.com/pbatard/rufus/raw/master/res/uefi/uefi-ntfs.img
正在解析主機(jī) github.com (github.com)... 192.30.255.113
正在連接 github.com (github.com)|192.30.255.113|:443... 已連接。
已發(fā)出 HTTP 請求藤树,正在等待回應(yīng)... 302 Found
位置:https://raw.githubusercontent.com/pbatard/rufus/master/res/uefi/uefi-ntfs.img [跟隨至新的 URL]
--2020-10-11 20:18:12-- https://raw.githubusercontent.com/pbatard/rufus/master/res/uefi/uefi-ntfs.img
正在解析主機(jī) raw.githubusercontent.com (raw.githubusercontent.com)... 0.0.0.0, ::
正在連接 raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443... 失斚等摺:拒絕連接。
正在連接 raw.githubusercontent.com (raw.githubusercontent.com)|::|:443... 失敗:拒絕連接。
install_uefi_ntfs_support_partition: Warning: Unable to download UEFI:NTFS partition image from GitHub, installation skipped. Target device might not be bootable if the UEFI firmware doesn't support NTFS filesystem.
Mounting target filesystem...
Applying workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.
Copying files from source media...
grep: /media/woeusb_source_1602418671_1583085/sources/cversion.ini: 沒有那個文件或目錄
Installing GRUB bootloader for legacy PC booting support...
正在為 i386-pc 平臺進(jìn)行安裝。
安裝完成枚尼。沒有報告錯誤。
Installing custom GRUB config for legacy PC booting...
Resetting workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.
/home/george/deb/WoeUSB/src/woeusb: 第 1683 行: echo: 寫錯誤: 無效的參數(shù)
Warning!: command "echo 0 > /proc/sys/vm/dirty_background_bytes" - returned code $?
/home/george/deb/WoeUSB/src/woeusb: 第 1684 行: echo: 寫錯誤: 無效的參數(shù)
Warning: command "echo 0 > /proc/sys/vm/dirty_bytes" - returned code $?
Unmounting and removing "/media/woeusb_source_1602418671_1583085"...
Unmounting and removing "/media/woeusb_target_1602418671_1583085"...
You may now safely detach the target device
Done :)
The target device should be bootable now
5砂吞、遇到的問題
新買的u盤插入后署恍,需要先格式化為NTFS,umount /dev/sdb1蜻直。
(完成)