From owner-freebsd-fs@FreeBSD.ORG Wed Nov 10 07:44:38 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 8978E106564A for ; Wed, 10 Nov 2010 07:44:38 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 408888FC1B for ; Wed, 10 Nov 2010 07:44:37 +0000 (UTC) Received: by qwg8 with SMTP id 8so394654qwg.13 for ; Tue, 09 Nov 2010 23:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FVKfQrOebaQb6qQ0NBhIEsDJCsuXt2IsH5SVO21Nu6E=; b=YH2hYWphPwiagS1fUUS3xD1kqMoFiu8UP4WD+sto9mGvZGJhwjrfJQyePeuidbspP2 WdmizMSI9qUIT7PTmC42zgxrjsf1F/YXSoKeoHUgEkMggIZqnwsD+LLSKdpqdG1onR04 ZGfpXputK8bkEW6WLdPKHZWIw92YZGZ22zf4c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bjeXSjO5aiUPRo/MtC6G3xCv/ku2UGtaYTvCq5mJBS7k0ukDqQEPn8tZVHVs7EaMaX Vh47jZ16u7X7Vyq1ptiEY4wOwGbThsR1dC+p3Ryr8MbZXJhePdfZfRtkrblWgOtfUJ/f sqFe2zG9lS65qla55liED70qh7qbDfqX567xk= MIME-Version: 1.0 Received: by 10.224.193.201 with SMTP id dv9mr6212274qab.125.1289375077306; Tue, 09 Nov 2010 23:44:37 -0800 (PST) Received: by 10.229.182.77 with HTTP; Tue, 9 Nov 2010 23:44:37 -0800 (PST) In-Reply-To: <201011091726.oA9HQngL088174@lurza.secnetix.de> References: <201011091726.oA9HQngL088174@lurza.secnetix.de> Date: Wed, 10 Nov 2010 08:44:37 +0100 Message-ID: From: Monthadar Al Jaberi To: freebsd-fs@freebsd.org, olli@lurza.secnetix.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2010 07:44:38 -0000 > =A0> Would it help me if I changed the flash driver to work with 4K? > > Yes, definitely. Ok, I will look into. > > =A0> Or do I still need to either, mdconfig, gnop or play UFS/UFS2 code > =A0> (hard for me)? > > If everything else fails, I would simply create a memory > disk with mdconfig (if you have enough RAM), copy the file > system from flash to the memory disk (use "dd bs=3D64k ...") > and mount it from there. =A0That's not hard. Yepp, works like a charm, Thank you =3D) My board have 128MB ram and 16MB flash. > > =A0> Basically I have a cross compiled kernel+mdroot with tinyBSD wireles= s > =A0> configuration, zipped and stored on the flash. So I am trying to hav= e > =A0> a filesystem on the flash that will shadow changes. > =A0> > =A0> When I zipp it takes ~10M instead of 47M! > > Wait a second ... =A0I don't understand ... =A0Are you saying > that you've put a compressed FS image on the flash? =A0Is > that the file system that you're trying to mount? =A0Or are > we talking about two distinct pieces of flash? No its another filesystem that I want to mount. The root filesystem is inside the kernel image (MD_ROOT option) , the kernel will mount from it (/dev/md0) When the kernel image was generated I zipped it and stored it on the flash, so a bootloader like Redboot will unzipp to ram and run the kernel. So I guess its messy to touch the filesystem that is inside a zipped kernel image. Filesystem itself is not zipped. So idea is to create another directory in the flash FIS (Flash Image System) where I store new versions of somefiles. And your tar advice works nicely, that makes it easier than having a filesystem on flash and it will be zipped too!!!!! Thank you :) Maybe no need to fidle with the flash driver and UFS code, who knows... :P I guess ideal scenario is having a direct read/write separate filesystem for some paths like /etc on the flash, while /var and /tmp are mounted as /dev/mdX and the rest is read-only. Thank you! > > -- > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. > Handelsregister: Registergericht Muenchen, HRA 74606, =A0Gesch=E4ftsfuehr= ung: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M=FC= n- > chen, HRB 125758, =A0Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf G= ebhart > > FreeBSD-Dienstleistungen, -Produkte und mehr: =A0http://www.secnetix.de/b= sd > > "The last good thing written in C was > Franz Schubert's Symphony number 9." > =A0 =A0 =A0 =A0-- Erwin Dieterich > --=20 //Monthadar Al Jaberi