Advertisement
piffy

Mount hypernated Windows partitions

May 1st, 2016
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement