From owner-freebsd-questions Sat Mar 21 13:37:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05976 for freebsd-questions-outgoing; Sat, 21 Mar 1998 13:37:17 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay1.kar.net (relay1.kar.net [195.5.17.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05967 for ; Sat, 21 Mar 1998 13:37:00 -0800 (PST) (envelope-from kushn@dracula.info.kiev.ua) Received: from olinet.isf.kiev.ua by relay1.kar.net with ESMTP id XAA13143; (8.8.last/vAk3/1.9) Sat, 21 Mar 1998 23:29:09 +0200 (EET) Received: from kushnir.kiev.ua by olinet.isf.kiev.ua with SMTP id XAA15567; (8.8.last/vAk3/1.9) Sat, 21 Mar 1998 23:27:15 +0200 (EET) Date: Sat, 21 Mar 1998 23:32:23 +0200 (EET) From: Vladimir Kushnir X-Sender: volodya@kushnir.kiev.ua Reply-To: Vladimir Kushnir To: "Vitaly A. Repin" cc: freebsd-questions@FreeBSD.ORG Subject: Re:Re: troubles with DOS partition (was: 2 questions from the beginner) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 21 Mar 1998, Vitaly A. Repin wrote: > To: Studded@dal.net > > >> 1) There are two partitions (in MS notation) on my HDD. The first is > >> for Win95 (its type is FAT16) and the second is for FreeBSD. > >> I want to read and write files from the first partition using FreeBSD. > >> Ok, I've read man pages and add the following line in /etc/fstab: > >> > >> /dev/wd0s1 /dos_hdd msdos rw 0 2 > >> > >> When system starts it dispays the warning from mountmsdosfs(): "root > >> directory isn't a multiple of the clustersize in length". > >> Manual displays that writing on MS-DOS filesystem can produce the corruption > >> of the data and that it is "shortcoming in the code which needs to be > >> addressed". > >> > >> The question is: what should I do to imrove this situation? > > > First thing you should do is take out that fstab entry and umount that > > parition. > > > In any case, the > > solution is to back up all your data, use dos fdisk to wipe out both > > partitions and repartition your drive, then reinstall everything. Yes, I > > know this is bad news, but if you want to access your dos partition > > regularly from freebsd this is the safest way. Sorry, Doug, I'm not sure it still holds. Vitaly, what release of FreeBSD you're running? If I'm correct (which is not necessarilly so) this message tells you that you've got large DOS partition (with clusters >16k). I used to see it under 2.1 and 2.2.2, but here's from man mount_msdos under -current: "FreeBSD 2.1 and earlier versions could not handle cluster sizes larger than 16K. Just mounting an MS-DOS file system could cause corruption to any mounted file system. Cluster sizes larger than 16K are unavoidable for file system sizes larger than 1G, and also occur when filesystems larger than 1G are shrunk to smaller than 1G using FIPS." And under -current mount_msdos doesn't seem to even have this message anymore (in code, I mean). So if your release is new enough, you probably have nothing to worry about. Regards, Vladimir > > Good-bye. > > WBR, Vitaly. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message