
Linux から Win10 で起動可能な USB を書き込もうとしています。これで一晩中無駄になってしまいました。:-(
woeUSB をインストールし、チュートリアルを読みました。USB ドライブからの切り替えなど、さまざまなことを試しました。最初はフォーマットせず、その後 NTFS にしました。uefi-ntfs は 512kB より大きいようです。
これが CLI からの「呪い」と結果です:
...
sudo woeusb -d /home/xxx/Downloads/Win10_21H1_EnglishInternational_x64.iso /dev/sdc --tgt-fs NTFS --no-color
WoeUSB v3.3.1
==============================
Mounting source filesystem...
Wiping all existing partition table and filesystem signatures in /dev/sdc...
/dev/sdc: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Success
Ensure that /dev/sdc is really wiped...
Creating new partition table on /dev/sdc...
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.
--2021-10-26 00:13:33-- https://github.com/pbatard/rufus/raw/master/res/uefi/uefi-ntfs.img
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/pbatard/rufus/master/res/uefi/uefi-ntfs.img [following]
--2021-10-26 00:13:33-- https://raw.githubusercontent.com/pbatard/rufus/master/res/uefi/uefi-ntfs.img
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576 (1,0M) [application/octet-stream]
Saving to: ‘/tmp/WoeUSB.CsW6q3.tempdir/uefi-ntfs.img’
uefi-ntfs.img 100%[===================>] 1,00M --.-KB/s in 0,1s
2021-10-26 00:13:33 (8,75 MB/s) - ‘/tmp/WoeUSB.CsW6q3.tempdir/uefi-ntfs.img’ saved [1048576/1048576]
dd: writing to '/dev/sdc2': No space left on device
1025+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,589478 s, 889 kB/s
The command "dd if="${download_directory}/uefi-ntfs.img" of="${uefi_ntfs_partition}"" failed with exit status "1", program is prematurely aborted
Unmounting and removing "/media/woeusb_source_1635200001_9737"...
You may now safely detach the target device
...
ネットで解決策を探していて途方に暮れています...最新の W10 をダウンロードしましたが、それでもうまくいきませんでした...何が足りないのでしょうか?
ご協力いただければ幸いです
答え1
UEFI:NTFS開発者です(私は WoeUSB を開発しているわけではありませんが、WoeUSB で使用されるイメージを公開している者ですuefi-ntfs.img
)。
最近、イメージのサイズを 512 KB から 1 MB に増やしuefi-ntfs.img
、セキュア ブート用に署名されたバイナリを含められるようにしましたが、WoeUSB 開発者がイメージを書き込むターゲット パーティションのサイズを 512 KB にハードコードしたため、問題が発生したようです。
オープンソースプロジェクトには、ひたむきな問題追跡システムでは、この問題をWoeUSB 問題トラッカーコードを更新できるようにします。ありがとうございます。
答え2
WoeUSBのメンテナーが通りかかったので、このバグは修正されました悪いUSB5.1.3。
答え3
さて、ここでgithub版のwoeusb
github のバージョンは 5.1.3 で、Ubuntu 20.04.x LTS (および 18.04.x LTS、おそらく Ubuntu の現在のすべてのバージョンですが、テストしていません) で動作します。
woeusb
非推奨のPPAバージョン
woeusb
の PPA バージョンは非推奨であることに注意してくださいppa:nilarimogard/webupd8
(Ubuntu 18.04.x LTS では動作しますが、20.04.x LTS では動作しません)。今日 (2021-11-07) はバージョン 3.3.1 (日付 2020-02-13) です。
テスト
から悪いUSB github
woeusb-5.1.3.bash
tarball のバージョンもダウンロードしてテストしました。バージョンを指定する行のみが異なります。そのため、明示的なバージョン番号を持つ別のバージョンを使用しました。コマンドラインを使用しました
sudo ./woeusb-5.1.3.bash --target-filesystem NTFS --device Windows11.iso /dev/sdx
wimlib-imagex
見つからないのでwoeusb
終了しました。リポジトリユニバースから次のコマンドでインストールできます。sudo apt install wimtools
これは、巨大な wim ファイルを分割するために FAT32 ファイル システムにインストールするときに必要ですが、NTFS を選択した場合は、wimtools なしでインストールを続行する必要があります。そうすれば、WoeUSB bash シェルスクリプトは wimtools なしで動作します
wimtools
(ただし、取得するにはインターネット接続が必要ですuefi-ntfs.img
)。Windowsインストーラーが入ったUSBドライブ
- 18.04.6 LTS および 20.04.3 LTS で作成
- ブーツ両方
- UEFIモード(セキュアブートも)および
- BIOS モード (別名 CSM 別名 レガシー モード)。