I've two NFS shares mounted on the OS & I also have one CIFS share. none of the above mounts in fstab file have soft or hard explicitly mentioned in their respective mount options.

So how can I find out if they are soft mounts or hard?

  • mountstats or nfsstats may help you with nfs mounts. Not sure about cifs right now. – Jacek Apr 4 '18 at 13:36

Check the respective manpages. man mount.nfs points to man 5 nfs for details, which says:

soft / hard   Determines the recovery behavior of the NFS client after
              an  NFS  request  times  out.   If  neither  option   is
              specified  (or  if  the  hard  option is specified), NFS
              requests are retried indefinitely.  If the  soft  option
              is  specified,  then the NFS client fails an NFS request
              after retrans retransmissions have  been  sent,  causing
              the  NFS  client  to  return  an  error  to  the calling

So the default unless specified otherwise for NFS is hard.

And man mount.cifs says:

   (default) The program accessing a file on the cifs mounted file
   system will not hang when the server crashes and will return errors
   to the user application.

And the default for CIFS is soft.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.