LoginSignup
0
0

More than 1 year has passed since last update.

Windows 上で Gparted が使いたい! (VHD も OK!)

Posted at

結論

WSL2 でマウントして WSLg を用いて Gparted を使いましょう.

注意点

手順

  1. Windows 11 をインストールします. Windows 10 上では WSLg が使えないので別途 VcXsrv を導入するなどが必要です.
  2. PowerShell で wmic diskdrive list brief を実行します.
    実行すると以下のように表示されると思います.

    Caption       DeviceID            Model    Partitions  Size
    hogehogehoge  \\.\PHYSICALDRIVE0  fugapiyo x           xxxxxxxxxxx
    hogefugahoge  \\.\PHYSICALDRIVE1  piyopiyo x           xxxxxxxxxxx
    fugafugahoge  \\.\PHYSICALDRIVE2  piyohoge x           xxxxxxxxxxx
    
  3. マウントしたいディスクを決めたら sudo wsl --mount \\.\PHYSICALDRIVE(数字)でマウントします. gsudo が入っていない場合は管理者権限のあるプロンプトで実行してください.

  4. WSL のターミナルで lsblk を実行して選択したディスクが増えていることを確認してください.

  5. WSL のターミナルで sudo gparted を実行します.

  6. Windows 上で gparted が起動しました.めでたしめでたし.

付録 VHD をマウントする

VHD は ディスクの管理からマウントできます.マウント後は通常のディスクと同様に扱えます.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0