From owner-freebsd-questions@FreeBSD.ORG Wed Aug 4 10:01:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8997E106567C for ; Wed, 4 Aug 2010 10:01:56 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1A0C78FC1B for ; Wed, 4 Aug 2010 10:01:55 +0000 (UTC) Received: by bwz12 with SMTP id 12so3055148bwz.13 for ; Wed, 04 Aug 2010 03:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=II/5GJVSLu7g2LhAWjnjWRk5JyPTRIT2+TxpperJKuA=; b=pjK6vHK+fI/8Or2QlIO1IFRTW1gw0YHm9e9ueoMMCBzsKj3Zj298zxrB2CpiWevENx +Yq2tc5r11WpmD9NqVN872+NMSxBWl2ZWkQFCGF3LLM8lQsyDayj9sV+jP9pntXR8/ID l3kWqNN4HzcBKphbAObM7NJ1x7QBmVCDak6oo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=gHCsrXKJIf7vEHKk2wUHs3C1+RT0BgndxS7lRHaVQnEbjm5pTpuWtiF9X8bmVXQ7cX po3udmMlso1vHgKTjx+cCxSoLE85yJR/AYU7vvPpb1e1/gNzWJ8aawX8pnJyJJSYmMYt Nkla83BC4yFJnoDLK67I3vXuq+JvS1uL7ItKo= Received: by 10.204.59.136 with SMTP id l8mr6160103bkh.84.1280916114798; Wed, 04 Aug 2010 03:01:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.119.17 with HTTP; Wed, 4 Aug 2010 03:01:24 -0700 (PDT) From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Wed, 4 Aug 2010 12:01:24 +0200 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: mdconfig, bsdlabel, disktab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2010 10:01:56 -0000 Hello, I'm having troubles, porting our release generation scripts from 7.2 to 8.1= . We start creating the image file: dd bs=3D18k count=3D4096 cdroot.img 2>/dev/null We add our image to mdevices: mdconfig -a -t vnode -f ./cdroot.img Then, bsdlabel: bsdlabel -w -B -b cdroot/boot/boot /dev/mdX minimum4 ( with minimum4 is a "custom" entry in disktab, as: minimum4:ty=3Dmfs:se#512:nt#1:rm#300:\ :ns#11520:nc#1:\ :pa#11520:oa#0:ba#4096:fa#512:\ :pc#11520:oc#0:bc#4096:fc#512: ) And I get this warning: bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities While generating on 5.4, 6.2 or 7.2, after bsdlabel, I have devices /dev/mdXa and /dev/mdXc, as expected. But while trying on 8.1, I just have /dev/mdXa... I'm not used to bsdlabel and disktab stuffs, so it may sound stupid, but: - Is there a way to create a correct disktab layout, to use with a disk image like our script does? - Or, is there a way to adapt our dd to get an image file matching the size required by our disktab layout? - If so, how to compute that size (somethign like $pa * $se + $pc * $se? adding $fa + $fc?) - tldr; / otherwise, is there a way to actually get back our /dev/mdXc afte= r bsdlabel? Thanks! Samuel Mart=EDn Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 All=E9e de la Venelle 92150 Suresnes FRANCE "Nobody wants to say how this works. Maybe nobody knows ..." Xorg.conf(5)