code: def get_mounts_by_path():
      '''
      Gets all mounted devices and paths
      :return: dict of mounted devices and related information by path
      '''
      mount_info = []
      f = open('/proc/mounts', 'r')
      for line in f:
          _tmp = line.split(" ")
          mount_info.append({'path': _tmp[1],
                             'device': _tmp[0],
                             'type': _tmp[2],
                             'options': _tmp[3]
                             }
                            )
      return mount_inff get_mounts_by_path():
      '''
      Gets all mounted devices and paths
      :return: dict of mounted devices and related information by path
      '''
      mount_info = []
      f = open('/proc/mounts', 'r')
      for line in f:
          _tmp = line.split(" ")
          mount_info.append({'path': _tmp[1],
                             'device': _tmp[0],
                             'type': _tmp[2],
                             'options': _tmp[3]
                             }
                            )
      return mount_info
docs: Gets all mounted devices and paths
      :return: dict of mounted devices and related information by path