From owner-freebsd-questions@FreeBSD.ORG Thu Sep 2 14:20:58 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A701510656ED for ; Thu, 2 Sep 2010 14:20:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 683468FC13 for ; Thu, 2 Sep 2010 14:20:58 +0000 (UTC) Received: from r55.edvax.de (port-92-195-157-147.dynamic.qsc.de [92.195.157.147]) by mx01.qsc.de (Postfix) with ESMTP id 8A9073CF97; Thu, 2 Sep 2010 16:20:56 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o82EKuOE001678; Thu, 2 Sep 2010 16:20:56 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 2 Sep 2010 16:20:56 +0200 From: Polytropon To: Bernard Scharp Message-Id: <20100902162056.7d890888.freebsd@edvax.de> In-Reply-To: <4C7FAC19.9090309@itsacon.net> References: <4C7F5F25.2010604@itsacon.net> <20100902075053.4bdb443b@scorpio> <4C7F925B.9010807@itsacon.net> <20100902152905.905caea1.freebsd@edvax.de> <4C7FAC19.9090309@itsacon.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Multiple mount_smbfs commands fail in bash script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 14:20:58 -0000 On Thu, 02 Sep 2010 15:52:25 +0200, Bernard Scharp wrote: > Neither am I. Hadn't even thought of grepping in /usr/src for the error > message :-) It's often a good starting point to see where problems might be caused from. > Can I just `rm /dev/nsmbX` them? (messing in /dev/ is a level of FreeBSD > I'm not familiar with) Yes, I would guess so. The content of /dev/ is dynamically generated since FreeBSD 5, if I remember correctly. As the nsmb nodes don't seem to be in use any longer, it would be no problem to remove them. The mount_smbfs program will generate them if needed. Just as an addition: After your script successfully performed the operations needing the mounted SMB shares, it could remove the corresponding device files. Still, this looks like a bug to me, a "can't image anybody needs more than 1024 of them" kind of bug. I would have imagined that IF a program needs files in a temporary way, it removes them after use. Just to be sure, unmount all SMB related things, as I can't predict what would happen if a nsmb device disappears when in use. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...