Thursday, August 20, 2015

fstab mount nfs boot press S to skip mounting

Many time when booting machine that setting fstab to boot nfs file server and found this error look like this:
The disk drive for /nfspath is not ready yet or not present
Continue to wait; or Press S to skip mounting or M for manual recovery
and found this error in syslog like this:
mountall: mount /nfspath [617] terminated with status 32
mount.nfs: Failed to resolve server nfsserver: Temporary failure in name resolution
Ater search a bit we can avoid to wait when boot by edit fstab and put "nobootwait" option after line
Before:
nfsserver:/nfsserverpath    /nfspath    nfs    bg,vers=3,tcp,hard,intr
After:
nfsserver:/nfsserverpath    /nfspath    nfs    bg,vers=3,tcp,hard,intr,nobootwait

ref:findincity

Read More

Monday, June 8, 2015

How to fix perl: warning: Setting locale failed on Mac OS X

On Mac os x after using ssh on terminal to linux box you'll see
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
  LANGUAGE = "en_US:en",
  LC_ALL = (unset),
  LC_CTYPE = "UTF-8",
  LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Create file on your home with name ".bash_profile" and add this line
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
After added if you don't want to restart or re-login you can use this command to reload bash config
source ~/.bash_profile

Read More