From owner-freebsd-fs@FreeBSD.ORG Tue Nov 9 13:13:49 2010 Return-Path: Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 926D2106566C for ; Tue, 9 Nov 2010 13:13:49 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id ECC868FC18 for ; Tue, 9 Nov 2010 13:13:48 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oA9DDVDT077097; Tue, 9 Nov 2010 14:13:47 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oA9DDUoc077095; Tue, 9 Nov 2010 14:13:30 +0100 (CET) (envelope-from olli) Date: Tue, 9 Nov 2010 14:13:30 +0100 (CET) Message-Id: <201011091313.oA9DDUoc077095@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, monthadar@gmail.com, brde@optusnet.com.au In-Reply-To: <20101109065842.R2343@besplex.bde.org> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Tue, 09 Nov 2010 14:13:47 +0100 (CET) Cc: Subject: Re: problem mounting from flash [Invalid sectorsize] [g_vfs_done() ?error=22] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, monthadar@gmail.com, brde@optusnet.com.au List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 13:13:49 -0000 Bruce Evans wrote: > On Mon, 8 Nov 2010, Oliver Fromme wrote: > > Monthadar Al Jaberi wrote: > > > [...] > > > mount: /dev/redboot/fs Invalid sectorsize 65536 for superblock size > > > 8192: Invalid argument > > > > > > So I guessed it has todo with the flash configured in 64k sectors > > > according to the boot output. > > > ... > > > mx25l0: at cs 0 on spibus0 > > > mx25l0: mx25ll128, sector 65536 bytes, 256 sectors > > > ... > > > > Historically UFS/FFS supports only 512 bytes per sector. > > I think it was patched at some point in the past to support > > 2048 bytes per sector, too, which is used by some MOD media > > and DVD-RAM. I'm pretty sure it does _not_ support 65536 > > bytes per sector (someone please correct me if I'm wrong). > > Maybe 25 years ago, but in Net2/ 20 years ago ffs doesn't really > even use sectors. It just has a buggy superblock probe which > prevents it determining its correct i/o size when that size > exceeds SBLOCKSIZE = 8192. In the second half of the 90s it did *not* support the 2048-byte sectors of the larger MOD media that became popular at that time. I owned several of those drives (still have one of them), so I remember it quite well. FreeBSD's file system code needed some patches in order to be able to use those disks. Before that, only 512- byte sectors worked. I don't know what sector sizes are supported today, but I wouldn't be surprised if only 512 to 2048 works out of the box. I'm not aware of any widely used media that has sectors smaller than 512 or larger than 2048. (Those new 4k drives translate accesses to/from 512 byte sectors, so it looks like a 512-byte sector drive.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python is executable pseudocode. Perl is executable line noise.