Does that file exist?
What is your $SUBJECTS_DIR?
Can you send the full terminal output?

On 10/4/2020 2:05 AM, KN Qiao wrote:

        External Email - Use Caution        

Hello FreeSurfer Developers,
mri_vol2surf --mov $mask_dir/rest_brainmask.nii.gz --reg $reg_dir/rest2t1.dat --trgsubject fsaverage --interp trilin --projfrac 0.5 --hemi ${hemi} --o ${mask_dir}/mask.fsaverage.${hemi}.nii.gz --noreshape --cortex --surfreg sphere.reg
Error: 
Loading label /Applications/freesurfer/subjects/fsaverage/label/lh.cortex.label
Reading surface /Applications/freesurfer/subjects/freesurfer/surf/lh.white
MRISread(/Applications/freesurfer/subjects/freesurfer/surf/lh.white): could not open file
No such file or directory
This problem happens again when I try to use this command on a server in my lab.
I didn’t get why it attempted to get surface from /Applications/freesurfer/subjects/freesurfer
Should it try /Applications/freesurfer/subjects/fsaverage as well? It can load label properly.
Freesurfer version:
freesurfer-Darwin-OSX-stable-pub-v6.0.0-2beb96c and freesurfer-Linux-centos6_x86_64-stable-pub-v6.0.0-2beb96c
Platform: Darwin-OSX and CentOS6_x86_64

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer