From owner-freebsd-current Sun Apr 5 01:14:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA19495 for freebsd-current-outgoing; Sun, 5 Apr 1998 01:14:11 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from helios.dnttm.ru (root@dnttm-gw.rssi.ru [193.232.0.205]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA19463 for ; Sun, 5 Apr 1998 01:13:57 -0800 (PST) (envelope-from dima@tejblum.dnttm.rssi.ru) Received: (from uucp@localhost) by helios.dnttm.ru (8.8.5/8.8.5/IP-3) with UUCP id NAA28970; Sun, 5 Apr 1998 13:09:03 +0400 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.8.8/8.8.7) with ESMTP id NAA01196; Sun, 5 Apr 1998 13:15:57 +0400 (MSD) (envelope-from dima@tejblum.dnttm.rssi.ru) Message-Id: <199804050915.NAA01196@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: Gianmarco Giovannelli cc: current@FreeBSD.ORG Subject: Re: is msdos fs broken ? In-reply-to: Your message of "Sun, 05 Apr 1998 09:25:50 -0000." <35274E1E.F6178EB0@giovannelli.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 05 Apr 1998 13:15:57 +0400 From: Dmitrij Tejblum Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gianmarco Giovannelli wrote: > I am trying to mount a fat32 slice with : > > gmarco:/usr/tmp#mount -t msdos /dev/sd0s1 /mnt/dos > msdos: /dev/sd0s1: Invalid argument > gmarco:/usr/tmp#fdisk sd0 .... > The data for partition 1 is: > sysid 11,(DOS or Windows 95 with 32 bit FAT) > start 63, size 9590742 (4682 Meg), flag 0 I'm afraid your disk is slightly too big for msdosfs. Anyway, to know for sure, apply the following patch and watch the console messages. (I think such patch should be committed. Hint...) Dima --- msdosfs_vfsops.c Sun Apr 5 12:42:03 1998 +++ msdosfs_vfsops.c Sun Apr 5 12:52:58 1998 @@ -459,6 +459,7 @@ || bsp->bs50.bsBootSectSig1 != BOOTSIG1) { #endif error = EINVAL; + printf("mountmsdosfs(): bad signature\n"); goto error_exit; } #ifndef __FreeBSD__ @@ -497,6 +498,7 @@ || !pmp->pm_SecPerTrack || pmp->pm_SecPerTrack > 63) { #endif error = EINVAL; + printf("mountmsdosfs(): bad bpb\n"); goto error_exit; } #ifndef __FreeBSD__ @@ -517,6 +519,7 @@ * msdosfs_readdir) */ error = EINVAL; + printf("mountmsdosfs(): disk too big, sorry\n"); goto error_exit; } @@ -527,6 +530,7 @@ || pmp->pm_FATsecs || getushort(b710->bpbFSVers)) { error = EINVAL; + printf("mountmsdosfs(): bad FAT32 filesystem\n"); goto error_exit; } pmp->pm_fatmask = FAT32_MASK; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message