Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Apr 1998 13:15:57 +0400
From:      Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To:        Gianmarco Giovannelli <gmarco@giovannelli.it>
Cc:        current@FreeBSD.ORG
Subject:   Re: is msdos fs broken ? 
Message-ID:  <199804050915.NAA01196@tejblum.dnttm.rssi.ru>
In-Reply-To: Your message of "Sun, 05 Apr 1998 09:25:50 -0000." <35274E1E.F6178EB0@giovannelli.it> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804050915.NAA01196>