From owner-freebsd-fs@FreeBSD.ORG Wed Feb 24 14:33:57 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 87B30106566C for ; Wed, 24 Feb 2010 14:33:57 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by mx1.freebsd.org (Postfix) with ESMTP id 1E0548FC15 for ; Wed, 24 Feb 2010 14:33:56 +0000 (UTC) Received: by ewy28 with SMTP id 28so388070ewy.13 for ; Wed, 24 Feb 2010 06:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=ZUYKfw9HoAunSohIogqfg8sdvY6i5mYOnfwgDnNpyEQ=; b=PN6MLnab0fhKNBCj0CYVCC+JDmRunn87uU1GGviUKrX17K1Hqv6Y+062g1csnH1aCM +B8JqkHbBI+GEu13enMW2YqVqsB2FQcg8laO6Yq50oChritfEX3QTnHRiInKXJhQXYtW pPoi4WfU83Iyhvkt/LMDt+qGXSg2OgvW/a5dQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OYVyeY++6hEtDUkah2DBlr0ocQDuKjF4I7lUE54cEn8wg+s/PM2EKJZIq+DjwQzMSp uizeKB3nPqhnu0NX4tZRZXxYmNcRPSTsGPH02fOpVQ8GlT/lGo0U1zDY5sNwgESeNF8F 63t4fJv0IIgpdC38MHmxqy3M9WiAKQcCszTug= MIME-Version: 1.0 Received: by 10.213.70.65 with SMTP id c1mr2987337ebj.13.1267022032297; Wed, 24 Feb 2010 06:33:52 -0800 (PST) In-Reply-To: <4B852A8B.9070505@quip.cz> References: <4B84EB1C.1080700@argonsoft.de> <4B84F92E.8040305@quip.cz> <4B851EAF.40200@argonsoft.de> <4B852A8B.9070505@quip.cz> Date: Wed, 24 Feb 2010 14:33:52 +0000 Message-ID: <2e027be01002240633p4ba7c9adm8dd115ed10dc0f58@mail.gmail.com> From: Tom Evans To: Miroslav Lachman <000.fbsd@quip.cz> Content-Type: text/plain; charset=UTF-8 Cc: freebsd-fs@freebsd.org Subject: Re: Problem with writing an UFS2 to iStore Storage System / can't find block in cyl 0 / bad magic number 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, 24 Feb 2010 14:33:57 -0000 On Wed, Feb 24, 2010 at 1:32 PM, Miroslav Lachman <000.fbsd@quip.cz> wrote: > ... > I am not sure if -s must be given in 512 bytes sectors, I saw some HowTos > with "-s 100G", but it didn't work in my setup with FreeBSD 7.2 (it may work > on 8.0?) You can try both versions and you can try little smaller partition > if it gives you an error. > (I am not too experienced with gpart) > > Miroslav Lachman I believe the size modifiers were added in 8.0 (they certainly work in 8.0). gpart in 8.0 can also calculate the start sector correctly, without needing to specify it, and if you omit a size, uses the maximum available. Makes things a lot easier! Eg, these are equivalent: gpart add -b 34 -s 20971519 -t freebsd-ufs -l MyLabel da0 gpart add -t freebsd-ufs -l MyLabel da0 (obviously, only if da0 has 20971519 sectors available and starts at sector 34). Cheers Tom