ifup: "lock /var/run/network/mountnfs exist, not mounting"

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
Site Admin
Posts: 1469
Joined: Fri Aug 29, 2003 8:39 pm

ifup: "lock /var/run/network/mountnfs exist, not mounting"

Post by ^rooker »

On Debian 6 (Squeeze) I've created a regular network interface alias "eth0:1". It usually "just works" - and it works great.
But today I got the following error when trying to "ifup" that alias interface:
if-up.d/mountnfs[eth0:1]: lock /var/run/network/mountnfs exist, not mounting ... failed!
The network alias interfaces are brought up properly though.
But the error message is weird, because I don't have any NFS shares configured - nor mounted.
But it indicates that somethings is not quite clean, I guess :oops:

Seems that the folder "/var/run/network/mountnfs" can be left over if the machine did not boot (or shutdown?) properly before. It is created whenever the script "/etc/network/if-up.d/mountnfs" is executed.
Therefore, I've deleted the empty folder and tried again.

Should be fine now :D
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply