From owner-freebsd-geom@FreeBSD.ORG Thu Jul 19 21:01:55 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F2EB1065670 for ; Thu, 19 Jul 2012 21:01:55 +0000 (UTC) (envelope-from dave@jetcafe.org) Received: from nahkohe.jetcafe.org (nahkohe.jetcafe.org [205.147.26.32]) by mx1.freebsd.org (Postfix) with ESMTP id 700B18FC0C for ; Thu, 19 Jul 2012 21:01:55 +0000 (UTC) X-Envelope-To: Received: from [205.147.26.5] (hokkshideh4.jetcafe.org [205.147.26.5]) by nahkohe.jetcafe.org (8.14.2/8.14.2) with ESMTP id q6JL1sA9036072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 19 Jul 2012 14:01:55 -0700 (PDT) Message-ID: <500875C2.1070903@jetcafe.org> Date: Thu, 19 Jul 2012 14:01:54 -0700 From: Dave Hayes User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120612 Thunderbird/13.0 MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Geom, MBR, labels, and usb sticks X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 21:01:55 -0000 Hello. ;) I am attempting to format my own custom bootable USB stick on FreeBSD 8.3 and ran into some issues and questions. My USB stick is at da0, and here's the sequence of what I am trying to do: # gpart destroy -F da0 da0 destroyed # gpart create -s MBR da0 da0 created # gpart add -s32m -t \!14 da0 da0s1 added # gpart set -a active -i 1 da0 active set on da0s1 # gpart add -t freebsd da0 da0s2 added # gpart show da0s2 => 0 15567804 da0s2 BSD (7.4G) 0 16 2 freebsd-ufs (8.0k) 16 15567788 1 freebsd-ufs (7.4G) Now I want to label the partition da0s2a. From the documentation in the man pages, I seem to be being told that # gpart modify -l foo -i 1 da0s2a will not work, and it doesn't: gpart: Invalid argument So let's try newfs: # newfs -L foo /dev/da0s2a ... # gpart show -l da0s2 => 0 15567804 da0s2 BSD (7.4G) 0 16 2 (null) (8.0k) 16 15567788 1 (null) (7.4G) and still the labels do not show up. I really do want to be able to mount /dev/ufs/foo as the root device, but as I understand things if gpart doesn't show the label then the glabel subsystem won't set up the proper device file. What gives here? Am I missing something important? Thanks in advance. -- Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>>> *The opinions expressed above are entirely my own* <<<< To the sick, sweet water tastes bitter in the mouth.