Windows users script feedback
Posted: 12 Oct 2012, 02:26
If you have a partition with windows installed please run the attached script after booting into Porteus and let me know the console output. It simply searches for all partitions with windows installed. I am looking for the fastest way to find windows partitions.
Thanks in advance to those that help.
Thanks in advance to those that help.
Code: Select all
#!/bin/bash
get_windows_drives(){
for drive in `blkid|egrep "ntfs|vfat"|cut -d: -f1`; do
if [[ `grep $drive /proc/mounts` ]]; then
find `sed 's@dev@mnt@g' <<<$drive` -maxdepth 3 -type d -name "*ystem32" 2>/dev/null
else
echo "$drive is not mounted!"
fi
done
}
time get_windows_drives