Advertisement
tolikpunkoff

open-winpe

Feb 2nd, 2019
317
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None
  1. #!/bin/bash
  2.  
  3. IMAGE="winpe-test.img"
  4.  
  5. echo "Open WinPE"
  6. losetup /dev/loop0 $IMAGE
  7. MSG=`kpartx -av /dev/loop0`
  8. DEV=`echo $MSG | awk '{print $3}'`
  9. echo $DEV
  10. sleep 5
  11. mount -t vfat /dev/mapper/$DEV /mnt/dos
  12. echo "Complete"
  13. sleep 2
Advertisement
RAW Paste Data Copied
Advertisement