From owner-freebsd-fs@FreeBSD.ORG Fri Apr 2 07:51:45 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C704C16A4CF for ; Fri, 2 Apr 2004 07:51:45 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 565B843D2F for ; Fri, 2 Apr 2004 07:51:45 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.10/8.12.10) with ESMTP id i32FpePq036926; Fri, 2 Apr 2004 10:51:40 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i32FpWgB036922; Fri, 2 Apr 2004 10:51:40 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Fri, 2 Apr 2004 10:51:32 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Benjamin von Mossner In-Reply-To: <20040401162253.GA69135@vonmossner.de> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1323241231-1080921092=:26412" cc: freebsd-fs@freebsd.org Subject: Re: msdosfs and FAT16 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 15:51:46 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1323241231-1080921092=:26412 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 1 Apr 2004, Benjamin von Mossner wrote: > i have a problem mounting my mp3player, attached via umass on FreeBSD > 5.2.1. It is recogniced correctly (from my point of view). Hey, I wonder if this is the same mp3player as the Acer multi-function player I bought recently when in Taipei. > Now when i try mounting, i recieve the following error. > # mount -t msdosfs /dev/da0s1 /mnt/mass > msdosfs: /dev/da0s1: Invalid argument > # Because that's certainly the same error. > The device is found by fdisk, i "could" do a newfs for sure and > furthermore i can mount it under Solaris 9, OSX and Billy-OS but not > FreeBSD 5.2.1.... > > Help would be greatly appreciated :) There's some excessively strong sanity checking in the msdosfs code in FreeBSD, which is commented out in Apple's version that they grabbed from us. I commented part of it out in -CURRENT to get my player working, although not yet all of it. You probably want src/sys/fs/msdosfs/msdosfs_vfsops.c:1.119. I've attached a copy of the patch. I have plans to merge this to -STABLE for 4.10, but haven't had a chance to test it on a -STABLE box. I don't anticipate any complications. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research --0-1323241231-1080921092=:26412 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="msdos.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: SW5kZXg6IG1zZG9zZnNfdmZzb3BzLmMNCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT0NClJDUyBmaWxlOiAvaG9tZS9uY3ZzL3NyYy9zeXMvZnMvbXNkb3Nmcy9t c2Rvc2ZzX3Zmc29wcy5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMTgN CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMTkNCmRpZmYgLXUgLXIxLjExOCAt cjEuMTE5DQotLS0gbXNkb3Nmc192ZnNvcHMuYwkyMSBGZWIgMjAwNCAyMjo0 NzoxOSAtMDAwMAkxLjExOA0KKysrIG1zZG9zZnNfdmZzb3BzLmMJMTQgTWFy IDIwMDQgMjM6Mjg6MTIgLTAwMDAJMS4xMTkNCkBAIC0xLDQgKzEsNCBAQA0K LS8qICRGcmVlQlNEOiBzcmMvc3lzL2ZzL21zZG9zZnMvbXNkb3Nmc192ZnNv cHMuYyx2IDEuMTE4IDIwMDQvMDIvMjEgMjI6NDc6MTkgYmRlIE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