From owner-freebsd-newbies@FreeBSD.ORG Sat Apr 3 06:15:03 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16E2916A4CE for ; Sat, 3 Apr 2004 06:15:03 -0800 (PST) Received: from hamlet.pilgerer.de (hamlet.pilgerer.de [213.133.123.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FF4443D45 for ; Sat, 3 Apr 2004 06:15:02 -0800 (PST) (envelope-from benny@pilgerer.de) Received: from hamlet.pilgerer.de (hamlet.pilgerer.de [213.133.123.43]) by hamlet.pilgerer.de (8.12.10/8.12.10) with ESMTP id i33EEi7m026790 for ; Sat, 3 Apr 2004 16:14:45 +0200 (CEST) Received: (from benny@localhost) by hamlet.pilgerer.de (8.12.10/8.12.7/Submit) id i33EEix8026789 for freebsd-newbies@freebsd.org; Sat, 3 Apr 2004 16:14:44 +0200 (CEST) Resent-From: benny@vonmossner.de Resent-Date: Sat, 3 Apr 2004 16:14:44 +0200 Resent-Message-ID: <20040403141444.GA25329@vonmossner.de> Resent-To: freebsd-newbies@freebsd.org Received: from fledge.watson.org (ak82hjs7hex92j@fledge.watson.org [204.156.12.50]) by hamlet.pilgerer.de (8.12.10/8.12.10) with ESMTP id i32Fpq7m098488 for ; Fri, 2 Apr 2004 17:51:52 +0200 (CEST) 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" X-Spam-Status: No, hits=1.1 required=5.0 tests=MIME_BASE64_TEXT autolearn=no version=2.63 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hamlet.pilgerer.de X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.7; VDF 6.24.0.83 X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.24.0.7; VDF 6.24.0.81 cc: freebsd-fs@freebsd.org Subject: Re: msdosfs and FAT16 X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 14:15:03 -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 cHMuYyx2IDEuMTE4IDIwMDQvMDIvMjEgMjI6NDc6MTkgYmRlIEV4cCAkICov DQorLyogJEZyZWVCU0Q6IHNyYy9zeXMvZnMvbXNkb3Nmcy9tc2Rvc2ZzX3Zm c29wcy5jLHYgMS4xMTkgMjAwNC8wMy8xNCAyMzoyODoxMiByd2F0c29uIEV4 cCAkICovDQogLyoJJE5ldEJTRDogbXNkb3Nmc192ZnNvcHMuYyx2IDEuNTEg MTk5Ny8xMS8xNyAxNTozNjo1OCB3cyBFeHAgJAkqLw0KIA0KIC8qLQ0KQEAg LTM5OCw3ICszOTgsNyBAQA0KIA0KIAkvKiBYWFggLSBXZSBzaG91bGQgcHJv YmFibHkgY2hlY2sgbW9yZSB2YWx1ZXMgaGVyZSAqLw0KIAlpZiAoIXBtcC0+ cG1fQnl0ZXNQZXJTZWMgfHwgIVNlY1BlckNsdXN0DQotCQl8fCAhcG1wLT5w bV9IZWFkcyB8fCBwbXAtPnBtX0hlYWRzID4gMjU1DQorCQl8fCAhcG1wLT5w bV9IZWFkcw0KICNpZmRlZiBQQzk4DQogICAgIAkJfHwgIXBtcC0+cG1fU2Vj UGVyVHJhY2sgfHwgcG1wLT5wbV9TZWNQZXJUcmFjayA+IDI1NSkgew0KICNl bHNlDQo= --0-1323241231-1080921092=:26412--