How to use the linux shred tool on a windows machine to secure erase an external disk. This guide assumes the WSL has already been setup.
Mount drive in WSL
1. Open powershell as administrator
2. Determine the physical disk address in windows to mount in WSL
GET-CimInstance -query "SELECT * from Win32_DiskDrive"
3. Expose the disk to wsl, from powershell
wsl --mount \\.\PHYSICALDRIVEX --bare
Start WSL and shred
1. Run wsl
2. Check the drive has been exposed
lsblk
3. Run shred
sudo shred -vfz /dev/sdX
No comments:
Post a Comment
Note: only a member of this blog may post a comment.