From owner-freebsd-fs@FreeBSD.ORG Mon Nov 1 13:51:22 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 D56F516A4CE for ; Mon, 1 Nov 2004 13:51:22 +0000 (GMT) Received: from c60.cesmail.net (c60.cesmail.net [216.154.195.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D30E43D5A for ; Mon, 1 Nov 2004 13:51:22 +0000 (GMT) (envelope-from george_morgan@spamcop.net) Received: from unknown (HELO gamma.cesmail.net) (192.168.1.20) by c60.cesmail.net with SMTP; 01 Nov 2004 08:51:21 -0500 Received: (qmail 22693 invoked by uid 99); 1 Nov 2004 13:51:21 -0000 Received: from 69-160-91-151.frdrmd.adelphia.netwebmail.spamcop.net (Horde) with HTTP for ; Mon, 1 Nov 2004 08:51:21 -0500 Message-ID: <20041101085121.qsc0kcw8k4scc4cc@webmail.spamcop.net> Date: Mon, 1 Nov 2004 08:51:21 -0500 From: George Morgan To: freebsd-fs@freebsd.org References: <20041030130911.E18406@volatile.chemikals.org> <4183D5C2.3050400@comcast.net><4183DB9B.90104@comcast.net> In-Reply-To: <4183DB9B.90104@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs Subject: Re: msdosfs on D70 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: Mon, 01 Nov 2004 13:51:23 -0000 Are you trying to mount the filesystem through the camera or using a card reader? (BTW, I have a D70 also, but am not using a microdrive with it. Microdrives are big, but they are also slow.) George Morgan Quoting Gary Corcoran : > Wesley Morgan wrote: > > > On Sat, 30 Oct 2004, Gary Corcoran wrote: > > > >> Wesley Morgan wrote: > >> > >>> I can't seem to mount the FAT32 fs created by my D70. Windows and > >>> mtools both are able to read it just fine. Has anyone encountered > >>> this problem? > >>> The output from fdisk and "minfo" are below. Perhaps someone can get > >>> this working properly! :) > >> > >> > >> Somebody might be able to help you if you explained > >> what a "D70" is... > > > > > > Sorry, slipped my mind. It's a digital camera, a "Nikon D70" as > > indicated in the disk label. > > Oh, okay - so this is presumably a filesystem on a Flash card then? > > > The error is simply: > > > > mountmsdosfs(): bad FAT32 filesystem > > > >> > >>> sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) > >>> start 63, size 7998417 (3905 Meg), flag 80 (active) > >>> beg: cyl 0/ head 1/ sector 1; > >>> end: cyl 766/ head 15/ sector 63 > > If it is Flash, the above says it's (about) a 4GB (3905MB) filesystem. > Do you really have a 4GB Flash card? If not, maybe that's > why it complains, because of inconsistencies with other values? > Can you possibly format it via FreeBSD, then maybe everyone > (OSes) will be happy? Sorry, can't help you beyond this... > > Gary > > >>> bootsector information > >>> ====================== > >>> banner:"MSDOS5.0" > >>> sector size: 512 bytes > >>> cluster size: 64 sectors > >>> reserved (boot) sectors: 32 > >>> fats: 2 > >>> max available root directory slots: 0 > >>> small size: 0 sectors > >>> media descriptor byte: 0xf8 > >>> sectors per fat: 0 > >>> sectors per track: 63 > >>> heads: 16 > >>> hidden sectors: 63 > >>> big size: 7998417 sectors > >>> physical drive id: 0x80 > >>> reserved=0x0 > >>> dos4=0x29 > >>> serial number: 00000000 > >>> disk label="NIKON D70 " > >>> disk type="FAT32 " > >>> Big fatlen=977 > >>> Extended flags=0x0000 > >>> FS version=0x0000 > >>> rootCluster=2 > >>> infoSector location=1 > >>> backup boot sector=6 > >>> > >>> Infosector: > >>> signature=0x41615252 > >>> free clusters=69396 > >>> last allocated cluster=2 > >>> > >>> > >>> > >> > >> _______________________________________________ > >> freebsd-fs@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs > >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > >> > > > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > From owner-freebsd-fs@FreeBSD.ORG Mon Nov 1 17:01:22 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 558E716A501 for ; Mon, 1 Nov 2004 17:01:22 +0000 (GMT) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id C584E43D31 for ; Mon, 1 Nov 2004 17:01:21 +0000 (GMT) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (cpe-024-211-118-154.sc.rr.com [24.211.118.154])iA1H1IKj027350; Mon, 1 Nov 2004 12:01:18 -0500 (EST) Received: from volatile.chemikals.org (morganw@localhost [127.0.0.1]) iA1H1Hsa072447; Mon, 1 Nov 2004 12:01:17 -0500 (EST) (envelope-from morganw@chemikals.org) Received: from localhost (morganw@localhost)iA1H1G7Q072444; Mon, 1 Nov 2004 12:01:16 -0500 (EST) (envelope-from morganw@chemikals.org) X-Authentication-Warning: volatile.chemikals.org: morganw owned process doing -bs Date: Mon, 1 Nov 2004 12:01:16 -0500 (EST) From: Wesley Morgan To: George Morgan In-Reply-To: <20041101085121.qsc0kcw8k4scc4cc@webmail.spamcop.net> Message-ID: <20041101115944.E72422@volatile.chemikals.org> References: <20041030130911.E18406@volatile.chemikals.org> <4183D5C2.3050400@comcast.net><4183DB9B.90104@comcast.net> <20041101085121.qsc0kcw8k4scc4cc@webmail.spamcop.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-fs@freebsd.org Subject: Re: msdosfs on D70 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: Mon, 01 Nov 2004 17:01:22 -0000 On Mon, 1 Nov 2004, George Morgan wrote: > Are you trying to mount the filesystem through the camera or using a card > reader? > > (BTW, I have a D70 also, but am not using a microdrive with it. Microdrives are > big, but they are also slow.) I've tried it from the camera, a usb card reader, and a pccard adapter - all with the same result. It's probably has something to do with fat32. > Quoting Gary Corcoran : > >> Wesley Morgan wrote: >> >>> On Sat, 30 Oct 2004, Gary Corcoran wrote: >>> >>>> Wesley Morgan wrote: >>>> >>>>> I can't seem to mount the FAT32 fs created by my D70. Windows and >>>>> mtools both are able to read it just fine. Has anyone encountered >>>>> this problem? >>>>> The output from fdisk and "minfo" are below. Perhaps someone can get >>>>> this working properly! :) >>>> >>>> >>>> Somebody might be able to help you if you explained >>>> what a "D70" is... >>> >>> >>> Sorry, slipped my mind. It's a digital camera, a "Nikon D70" as >>> indicated in the disk label. >> >> Oh, okay - so this is presumably a filesystem on a Flash card then? >> >>> The error is simply: >>> >>> mountmsdosfs(): bad FAT32 filesystem >>> >>>> >>>>> sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) >>>>> start 63, size 7998417 (3905 Meg), flag 80 (active) >>>>> beg: cyl 0/ head 1/ sector 1; >>>>> end: cyl 766/ head 15/ sector 63 >> >> If it is Flash, the above says it's (about) a 4GB (3905MB) filesystem. >> Do you really have a 4GB Flash card? If not, maybe that's >> why it complains, because of inconsistencies with other values? >> Can you possibly format it via FreeBSD, then maybe everyone >> (OSes) will be happy? Sorry, can't help you beyond this... >> >> Gary >> >>>>> bootsector information >>>>> ====================== >>>>> banner:"MSDOS5.0" >>>>> sector size: 512 bytes >>>>> cluster size: 64 sectors >>>>> reserved (boot) sectors: 32 >>>>> fats: 2 >>>>> max available root directory slots: 0 >>>>> small size: 0 sectors >>>>> media descriptor byte: 0xf8 >>>>> sectors per fat: 0 >>>>> sectors per track: 63 >>>>> heads: 16 >>>>> hidden sectors: 63 >>>>> big size: 7998417 sectors >>>>> physical drive id: 0x80 >>>>> reserved=0x0 >>>>> dos4=0x29 >>>>> serial number: 00000000 >>>>> disk label="NIKON D70 " >>>>> disk type="FAT32 " >>>>> Big fatlen=977 >>>>> Extended flags=0x0000 >>>>> FS version=0x0000 >>>>> rootCluster=2 >>>>> infoSector location=1 >>>>> backup boot sector=6 >>>>> >>>>> Infosector: >>>>> signature=0x41615252 >>>>> free clusters=69396 >>>>> last allocated cluster=2 >>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> freebsd-fs@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >>>> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >>>> >>> >> >> _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! From owner-freebsd-fs@FreeBSD.ORG Fri Nov 5 23:18:06 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 269A616A4CE for ; Fri, 5 Nov 2004 23:18:06 +0000 (GMT) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C31FD43D1D for ; Fri, 5 Nov 2004 23:18:05 +0000 (GMT) (envelope-from nehalmistry@gmx.net) Received: from pd3mr7so.prod.shaw.ca (pd3mr7so-qfe3.prod.shaw.ca [10.0.141.23])2004)) with ESMTP id <0I6Q00KHPBDB1X10@l-daemon> for freebsd-fs@freebsd.org; Fri, 05 Nov 2004 16:17:35 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd3mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I6Q002YLBDBCOL0@pd3mr7so.prod.shaw.ca> for freebsd-fs@freebsd.org; Fri, 05 Nov 2004 16:17:35 -0700 (MST) Received: from nehal (S0106000ae6ceb225.vf.shawcable.net [70.68.12.33]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with SMTP id <0I6Q00542BDAG6@l-daemon> for freebsd-fs@freebsd.org; Fri, 05 Nov 2004 16:17:35 -0700 (MST) Date: Fri, 05 Nov 2004 15:17:48 -0800 From: Nehal To: freebsd-fs@freebsd.org Message-id: <20041105151748.00002d74@nehal> MIME-version: 1.0 X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.3.0; Win32) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Subject: ufs2 access from windows 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, 05 Nov 2004 23:18:06 -0000 i have just released ufs2tools-0.4 , this contains a command line utility for reading ufs2 filesystems from windows 2000/XP (as opposed to http://ffs.szm.sk/en/ which is a filesystem driver). url: http://ufs2tools.sourceforge.net/ although the code is, afaik, clean and bug-free, the implementation probably isn't the best. i've implemented it most from scratch except for using the following files from freebsd src: ffs/fs.h, ufs/dinode.h, ufs/dir.h i would appreciate it if someone could go over the code and give me tips on how i could improve or optimize the code. i've noticed that retrieving many small files can be slow, this is because it has to lookup the directory name each time, i could probably add some sort of hash/lookup table to speed it up. i'm not sure what else could be done. i have looked over the code in freebsd src, but it was quite complex and i couldn't understand much of it. -- Nehal