use readlink to guess the fstype