title: Mounting disk-drive using Python
body: <p>I am trying to write a Python script which mounts and open my folder.
  But I have " Could not find "/media/New Volume". " error.
  If I mount at first and run the script , it works, opens my New Volume.
  But if I don't mount and run it, I get error. </p>
  
  <pre><code>sudo python mount.py
  </code></pre>
  
  <p>my changed script</p>
  
  <pre><code>import os
  import subprocess
  
  if os.path.ismount("/media/New Volume"):
      subprocess.Popen(["nautilus", "/media/New Volume"])
  else:
      path = "/media/New Volume"
      os.mkdir(path);
      subprocess.Popen(["mount","-t","fuseblk","/dev/sda4","/media/New Volume"])
      subprocess.Popen(["nautilus", "/media/New Volume"])
  </code></pre>