From owner-freebsd-questions@FreeBSD.ORG Tue Oct 11 03:01:00 2011 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 BE86F106564A for ; Tue, 11 Oct 2011 03:01:00 +0000 (UTC) (envelope-from ndhertbsd@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 84CE58FC1F for ; Tue, 11 Oct 2011 03:01:00 +0000 (UTC) Received: by iaby12 with SMTP id y12so4140520iab.13 for ; Mon, 10 Oct 2011 20:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eUg1B87RjOJN3lmgzriVk40QnUaW8hppHCtnH4pslFY=; b=YmC0bZKPa3JHNHQx9ITGYXPsReGEpCft9msmkaPvM3Z0/E/jB0pB5CzeE3tJIhvFT5 TzsdQ1gBfckfzNwUFOKhkYNEkuEgI+JRQMRYBdLczaIWqeNYwo0kHeg74sJSEoQKcit7 NSRKRK6+AuNy6wBK+u385kl8wFEAlHAt29QcM= MIME-Version: 1.0 Received: by 10.231.83.199 with SMTP id g7mr9212328ibl.78.1318302059845; Mon, 10 Oct 2011 20:00:59 -0700 (PDT) Received: by 10.231.206.136 with HTTP; Mon, 10 Oct 2011 20:00:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Oct 2011 05:00:59 +0200 Message-ID: From: n dhert To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: using /sbin/gpart to add GPT volume 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: Tue, 11 Oct 2011 03:01:00 -0000 In jan 2009 when /sbin/gpt still existed, this is what I did on a multi-boot test PC, after creatng unallocated spac, booting into my freebsd partition: # sysinstall Disk name: ad0 FDISK Partition Editor DISK Geometry: 5005 cyls/255 heads/63 sectors = 80405325 sectors (39260MB) Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 29414952 29415014 ad0s1 4 NTFS/HPFS/QNX 7 29415015 3116610 32531624 ad0s4 4 ext2fs 131 32531625 62 32531686 - 12 unused 0 32531687 14313853 46845539 ad0s3 8 freebsd 165 46845540 33559785 80405324 ad0s2 4 extended DOS, LBA 15 80405325 12915 80418239 - 12 unused 0 ad0s4 was the unallocated space # gpt create -f /dev/ad0s4 # gpt show /dev/ad0s4 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 3116543 3116577 32 Sec GPT table 3116609 1 Sec GPT header # gpt add /dev/ad0s4 /dev/ad0s4p1 added # gpt show /dev/ad0s4 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 3116543 1 GPT part - FreeBSD UFS/UFS2 3116577 32 Sec GPT table 3116609 1 Sec GPT header # newfs /dev/ad0s4p1 # mkdir /ghome # mount /dev/ad0s4p1 /ghome # df -k Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad0s3a 380654 170430 179772 49% / devfs 1 1 0 100% /dev /dev/ad0s3e 317166 56 291738 0% /tmp /dev/ad0s3f 5144698 3167822 1565302 67% /usr /dev/ad0s3d 571118 28080 497350 5% /var /dev/ad0s4p1 1504908 4 1384512 0% /ghome My problem is, what are the equivalent instructions using gpart ??? 2011/10/10 illoai@gmail.com > On 10 October 2011 11:33, n dhert wrote: > > I have a FreebSD 8.2 machine with 12 1-Tb disks used for making backups. > > now I try to create > > # gpart create -s GPT ad0s4 > > gpart: provider: Device not configured > > (NB I do not have a multi-boot system with an > MBR scheme on it, so I'm not clear on the pre- > cise details) > You want some variation of > # gpart add -t freebsd-ufs ad0[s4] > > "create" is for the disk-wise scheme > "add" is for the individual slices/partitions > > Again, I haven't played with gpart on an MBR disk, > so be careful. > > Aso, if you're muddling with the boot disk, you may > have to work in single-user mode. > > -- > -- >