Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2001 17:14:00 -0800
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Andreas Ntaflos <ntaflos.andreas@gmx.net>
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>
In-Reply-To: <20011105223607.B31920@Deadcell.ANT>; from ntaflos.andreas@gmx.net on Mon, Nov 05, 2001 at 10:36:07PM %2B0100
References:  <20011105223607.B31920@Deadcell.ANT>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011105171400.E745>