From owner-freebsd-questions Mon Nov 5 17:14:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 2700237B405 for ; Mon, 5 Nov 2001 17:14:26 -0800 (PST) Received: from dialup-209.245.130.246.dial1.sanjose1.level3.net ([209.245.130.246] helo=blossom.cjclark.org) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 160uor-0007cW-00; Mon, 05 Nov 2001 17:14:25 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fA61E0k01451; Mon, 5 Nov 2001 17:14:00 -0800 (PST) (envelope-from cjc) Date: Mon, 5 Nov 2001 17:14:00 -0800 From: "Crist J. Clark" To: Andreas Ntaflos Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ls on mounted disks shows Jan 1 1980 as modification time? Message-ID: <20011105171400.E745@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20011105223607.B31920@Deadcell.ANT> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011105223607.B31920@Deadcell.ANT>; from ntaflos.andreas@gmx.net on Mon, Nov 05, 2001 at 10:36:07PM +0100 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Nov 05, 2001 at 10:36:07PM +0100, Andreas Ntaflos wrote: > Hello, > Seems to me like I have a lot of potentially silly questions lately.. > Anyway: > This is something I just noticed. Maybe it's nothing, but I wonder anyway: > > I mount my win2k harddisks (2 partitions) as msdos/fat32 filesystems in > /mnt/win2k and /mnt/win2kdata (both rw). > > here's the output of 'ls /mnt': > total 23 > drwxr-xr-x 5 root wheel - 512 Nov 1 23:19 ./ > drwxr-xr-x 19 root wheel - 512 Oct 24 02:03 ../ > drwxr-xr-x 2 root wheel - 512 Feb 5 2001 floppy/ > drwxr-xr-x 1 root wheel arch 4096 Jan 1 1980 win2k/ > drwxr-xr-x 1 root wheel arch 16384 Jan 1 1980 win2kdata/ > ^^^^^^^^^^^^ Jan 1 1980 is the start of the DOS epoch. Your system is getting '0' as the modification time on the root directory of the mounts. > When I unmount win2k and win2kdata ls shows the following: > total 5 > drwxr-xr-x 5 root wheel - 512 Nov 1 23:19 ./ > drwxr-xr-x 19 root wheel - 512 Oct 24 02:03 ../ > drwxr-xr-x 2 root wheel - 512 Feb 5 2001 floppy/ > drwxr-xr-x 2 root wheel - 512 Nov 1 23:19 win2k/ > drwxr-xr-x 2 root wheel - 512 Nov 1 23:19 win2kdata/ > ^^^^^^^^^^^^ Now you are getting the modification time of the directory that was underneath the mounts, that is, the actual directory node in /mnt, and not the root of the filesystem mounted at /mnt/win2k*. > So what's the deal with that? I'm sure I am missing something, would > someone be so kind as to explain it to me? I can't set any permissions > on the mounted filesystems either... MSDOS FAT filesystems do not have owners or permissions to set. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message