Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sh: 0: getcwd() failed: No such file or directory on cited drive

I am trying to compile ARM code on Ubuntu 12.04 (Precise Pangolin).

Everything is working fine when I put the code in the local directory.

But when I put the code in the cited mount directory, an error shows up:

making testXmlFiles sh: 0: getcwd() failed: No such file or directory ARM Compiling xxxxx.c sh: 0: getcwd() failed: No such file or directory 

Here is my setting in fstab:

//10.0.0.1/data /mnt/data   cifs    auto,noserverino,credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777,uid=user,gid=users,noperm 0 0 

What is going on here? What could cause this error?

like image 475
CrazyKitty Rotoshi Avatar asked Oct 06 '12 08:10

CrazyKitty Rotoshi


2 Answers

This error is usually caused by running a command from a directory that no longer exists.

Try changing your directory and rerun the command.

like image 85
Human Avatar answered Sep 23 '22 13:09

Human


That also happened to me on a recreated directory. The directory is the same, but to make it work again, just run:

cd . 
like image 29
Roberto Rodriguez Avatar answered Sep 21 '22 13:09

Roberto Rodriguez