piffy

Mount hypernated Windows partitions

May 1st, 2016
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo mount /dev/sda[Partition Number] /media/[Any existing folder name]
  2.  
  3. #Mounts Windows
  4. if [ $? -eq 14 ]
  5. then
  6.   echo "Windows is sleeping, I'm mounting as read-only"
  7.   sudo mount -o ro /dev/sda[Partition Number] /media/[Any existing folder name]
  8. fi
RAW Paste Data