From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-fx0-f49.google.com ([209.85.161.49]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Pf7uE-00055a-FA for linux-mtd@lists.infradead.org; Tue, 18 Jan 2011 09:31:20 +0000 Received: by fxm19 with SMTP id 19so6961409fxm.36 for ; Tue, 18 Jan 2011 01:31:05 -0800 (PST) Subject: Re: validate_sb: bad superblock, error 8 (Minimum UBI volume size for UBIFS image) From: Artem Bityutskiy To: Andrew Murray In-Reply-To: <1295342200.2470.97.camel@koala> References: <1295342200.2470.97.camel@koala> Content-Type: text/plain; charset="UTF-8" Date: Tue, 18 Jan 2011 11:30:55 +0200 Message-ID: <1295343055.2470.105.camel@koala> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2011-01-18 at 11:16 +0200, Artem Bityutskiy wrote: > Anyway, the only way for the user to affect the minimum FS size is the > --jrn-size option of mkfs.ubifs. How to calculate what will be the > minimum? Not sure, probably UBIFS_MIN_JNL_LEBS = 5 LEBs or something > close to this. Ah, this is wrong, you can set the log size with --log-lebs as well. So UBIFS journal = log + buds. --log-lebs set the log size --jrn-size sets the buds size. But AFAICS, you can use --jrn-size and mkfs.ubifs will automatically calculate minimum amount of log lebs required. -- Best Regards, Artem Bityutskiy (Битюцкий Артём)