I'm trying to write a bash script to run from Linux on a CD or flashdrive that can mount Windows and change stuff, but I don't know how to go about detecting which partition/drive is Windows.My best guess would be somehow using awk to detect the largest thing in /dev, but I have no idea how to go about writing the expression.
Automated partition selection in bash script
bash;awk;windows;devices