
私は自分のラップトップに Linux Mint をインストールしようとしていました。それが私のラップトップに必要な機能を果たすだろうと考えていたのです。しかし、そもそも Linux に関してはあまり詳しくないので、うまくいきませんでした。
私はそのラップトップで Windows 10 用の起動可能な USB を再度作成しようとしましたが、何か間違えたため、ラップトップにも Linux がインストールされてしまい、OS がなくなってしまいました。
残っているのは Raspberry Pi 4 だけです。
さて、私の質問は、Raspberry Pi には Kali Linux が搭載されているということです。この Raspberry Pi で Windows 用の起動可能な USB フラッシュ ドライブを作成できますか、それとも、もうダメでしょうか?
答え1
使用残念なUSB
A Linux program to create a Windows USB stick installer from a real Windows DVD or image.
This package contains two programs:
woeusb: A command-line utility that enables you to create your own bootable Windows installation USB storage device from an existing Windows Installation disc or disk image
woeusbgui: Graphic version of woeusb
Supported images:
Windows Vista, Windows 7, Window 8.x, Windows 10. All languages and any version (home, pro...) and Windows PE are supported.
Supported bootmodes:
Legacy/MBR-style/IBM PC compatible bootmode
Native UEFI booting is supported for Windows 7 and later images (limited to the FAT filesystem as the target)
WoeUSB-ngの依存関係をインストールする
ウブントゥ
sudo apt install git p7zip-full python3-pip python3-wxgtk4.0
Fedora (テスト環境: Fedora Workstation 33)
sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4
WoeUSB-ngをインストールする
sudo pip3 install WoeUSB-ng
ソースコードからのインストール
WoeUSB-ngのビルド依存関係をインストールする
ウブントゥ
sudo apt install git p7zip-full python3-pip python3-wxgtk4.0
アーチ
sudo pacman -Suy p7zip python-pip python-wxpython
Fedora (テスト環境: Fedora Workstation 33)
sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4
WoeUSB-ngをインストールする
git clone https://github.com/WoeUSB/WoeUSB-ng.git
cd WoeUSB-ng
sudo pip3 install .
ローカルまたは仮想環境でのソースコードからのインストール
git clone https://github.com/WoeUSB/WoeUSB-ng.git
cd WoeUSB-ng
git apply development.patch
sudo pip3 install -e .
ただし、これによってメニュー ショートカットは作成されず、ポリシーを調整する必要が生じる可能性があるため、GUI を 2 回実行する必要がある場合があります。
アンインストール
WoeUSB-ng を完全に削除するには、次のコマンドを実行します (ソース コードからのインストールを使用する場合にのみ必要)。
sudo pip3 uninstall WoeUSB-ng
sudo rm /usr/share/icons/WoeUSB-ng/icon.ico \
/usr/share/applications/WoeUSB-ng.desktop \
/usr/local/bin/woeusbgui
sudo rmdir /usr/share/icons/WoeUSB-ng/
その他の方法
PPAの使用
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install woeusb
答え2
DVD、ISOファイル、またはUSBスティックにWindowsインストールメディアを作成する一般的な方法は、Microsoftから入手できるメディア作成ツールを使用することです。https://www.microsoft.com/en-us/software-download/windows10
これにより、利用可能な最新バージョンがインストールされ、誰の Windows インストール ニーズも 90% 満たすことができます。