Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 1998 23:32:23 +0200 (EET)
From:      Vladimir Kushnir <kushn@dracula.info.kiev.ua>
To:        "Vitaly A. Repin" <vitaly@radio.hop.stu.neva.ru>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re:Re: troubles with DOS partition (was: 2 questions from the    beginner)
Message-ID:  <Pine.BSF.3.96.980321231743.2249B-100000@kushnir.kiev.ua>
In-Reply-To: <ADTZ0su4yE@radio.hop.stu.neva.ru>

next in thread | previous in thread | raw e-mail | index | archive | help


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.
> 
<Snip... Snip...>
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980321231743.2249B-100000>