Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 19 Nov 2001 09:52:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 19 Nov 2001 09:52:04 -0500 Received: from fungus.teststation.com ([212.32.186.211]:28688 "EHLO fungus.teststation.com") by vger.kernel.org with ESMTP id ; Mon, 19 Nov 2001 09:51:43 -0500 Date: Mon, 19 Nov 2001 15:51:02 +0100 (CET) From: Urban Widmark To: cc: Sven Vermeulen , Linux-Kernel Development Mailinglist Subject: Re: /sbin/mount and /proc/mounts difference In-Reply-To: <3BF8D576.D03A0EB6@evision-ventures.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Nov 2001, Martin Dalecki wrote: > Urban Widmark wrote: > > > > mount writes everything to /etc/mtab and displays that when asked. > > Not quite... > > ~/tmp# strings /bin/mount | grep mounts > Note that one does not really mount a device, one mounts > /proc/mounts > ~/tmp# Not sure what you are trying to show with that grep ... # strace mount |& grep mounts # strace mount |& grep mtab open("/etc/mtab", O_RDONLY) = 3 mount does read /etc/mtab for displaying the mounts. It only looks at /proc/mounts if /etc/mtab can't be read. Or at least, that is what the version(s) I have does. I would say that the common setup is to have a readable mtab. /Urban - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/