From owner-freebsd-questions Sat Jun 21 12:00:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA14032 for questions-outgoing; Sat, 21 Jun 1997 12:00:24 -0700 (PDT) Received: from eac.iafrica.com (196-31-98-175.iafrica.com [196.31.98.175]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA14027 for ; Sat, 21 Jun 1997 12:00:18 -0700 (PDT) Received: (from rnordier@localhost) by eac.iafrica.com (8.8.5/8.6.12) id UAA01816; Sat, 21 Jun 1997 20:51:23 +0200 (SAT) From: Robert Nordier Message-Id: <199706211851.UAA01816@eac.iafrica.com> Subject: Re: root directory is not a multiple of the clustersize in length In-Reply-To: <199706211439.WAA06656@vas.tomsk.su> from "Victor A. Sudakov" at "Jun 21, 97 10:39:34 pm" To: vas@vas.tomsk.su (Victor A. Sudakov) Date: Sat, 21 Jun 1997 20:51:23 +0200 (SAT) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Victor A. Sudakov wrote: > I got the sinister message: > > mountmsdosfs(): Warning: root directory is not a multiple of the clustersize > in length > > when I tried to > > mount -t msdos /dev/fd0.720 /mnt/diska > > Weird, isn't it? Should I be afraid of it? There isn't actually any requirement that a DOS FS root directory should be a multiple of cluster size. The warning is a relic from pre-FreeBSD 2.2 days, and was *once* useful because (in testing for something that didn't matter) it coincidentally broke at just the right point. A standard DOS hard disk root directory has 512 x 32 byte entries, and is therefore 16K in size. FreeBSD releases prior to 2.2 had a problem dealing with FSes with a block size exceeding 16K. (However, this problem had nothing to do with the msdosfs, directly, or the condition being tested for.) Since 16K is not, according to the logic used, a multiple of any power of 2 exceeding 16K, the warning would appear whenever a DOS FS with an effective block size exceeding 16K was mounted. Taken as advance notice that the VFS layer was about to chew any mounted FS into tiny pieces, courtesy of the mounted DOS partition, the warning was therefore useful. And, at the same time, nonsensical. The warning can be ignored unless you are running 2.1 (or a prior release) on a DOS FS with a cluster size exceeding 16K. In your case, your floppy may either be in a (prefectly acceptable) "non-standard" format, or the floppy boot sector may be corrupt. If the contents lists correctly, it is almost certainly just a non-standard format. -- Robert Nordier