From owner-freebsd-questions Thu Nov 28 03:30:28 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA21281 for questions-outgoing; Thu, 28 Nov 1996 03:30:28 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA21275 for ; Thu, 28 Nov 1996 03:30:25 -0800 (PST) From: Greg Lehey Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vT4fe-000QrMC; Thu, 28 Nov 96 12:30 MET Received: (grog@localhost) by freebie.lemis.de (8.8.3/8.6.12) id MAA00366; Thu, 28 Nov 1996 12:00:22 +0100 (MET) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Message-Id: <199611281100.MAA00366@freebie.lemis.de> Subject: Re: mountmsdosfs() warning? In-Reply-To: <199611271609.AAA06741@ms1.hinet.net> from Donny Lee at "Nov 28, 96 00:02:48 am" To: donny@ms1.hinet.net (Donny Lee) Date: Thu, 28 Nov 1996 12:00:21 +0100 (MET) Cc: questions@FreeBSD.org (FreeBSD Questions) X-Mailer: ELM [version 2.4ME+ PL28 (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 Donny Lee writes: > -=*> Gianmarco Giovannelli wrote: >>> mountmsdosfs(): Warning: root directory is not a multiple >>> of the clustersize in length. >>> when I tried to mount a DOS partition, the DOS partition was >>> still mounted in and worked ok though. >> Probably the partition you are trying to mount is bigger than 1gb or >> it has cluster of 32kb. > > But my DOS partition, /dev/sd0s5, is only 280mb. :) > > >> If you want to use msdos fs with FreeBSD you must use partition that use >> clusters of 16kb or less. I have no problems at all with those, while I >> have trashed a lot of times my Hd using dos partition with clusters of 32kb >> :-) > > I should describe this problem in detail... > > The DOS partition was only 250mb in the same node /dev/sd0s5, > there was no problem at all to mounting it in /dos. I increased > it to 280mb couple days ago, my BSD began to panic about this. This doesn't surprise me too much. msdosfs is currently severely broken; there's a discussion in freebsd-hackers about whether we shouldn't remove it altogether until it's fixed. The trouble is, the person who's volunteered to fix it is overloaded with other work, and the current version is so flaky that it can endanger not just your MS-DOS partition, but your FreeBSD partitions as well. I suspect that when you expanded your partition, some partition information wasn't changed correctly (or the way msdosfs expects). This doesn't seem to worry MS-DOS, but it causes problems for msdosfs. If you still want to use msdosfs, probably your best bet is to back up the whole MS-DOS partition, delete it, recreate the partition from scratch, and restore the data. Sorry. Greg