title: Why can't I save a VI file after entering data?
body: <p>I am new to linux, when I typed "vi FILE1" I was able to open VI editor. I added some data and I want to save the file and I tried :w but it threw me an error. </p>
  
  <p>"file1" E212: Can't open file for writing
  Press ENTER or type command to continue</p>
  
  <p>why I am not able to save it? </p>
  
  <p>The directory in which I am creating file has following permissions:</p>
  
  <pre><code>drwxr-xr-x 4 pentaho pentaho 4096 Mar 12  2013 master
  </code></pre>
  
  <p>I am logging using root user and password.</p>
  
  <p>Output of <code>mount</code> command : </p>
  
  <pre><code>/dev/sda1 on / type ext4 (rw)
  
      proc on /proc type proc (rw)
      sysfs on /sys type sysfs (rw)
      devpts on /dev/pts type devpts (rw,gid=5,mode=620)
      tmpfs on /dev/shm type tmpfs (rw)
      /dev/sdb1 on /etl type ext4 (rw)
      /dev/sdc1 on /oracle type ext4 (rw)
      /dev/sdd1 on /export type ext4 (rw)
      none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
      sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  </code></pre>