From owner-freebsd-questions@freebsd.org Tue Sep 6 07:43:35 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94353B96E15 for ; Tue, 6 Sep 2016 07:43:35 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D905CBD for ; Tue, 6 Sep 2016 07:43:35 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id u867hVqM046351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 6 Sep 2016 00:43:33 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.14.2/Submit) with UUCP id u867hVRR046350 for freebsd-questions@freebsd.org; Tue, 6 Sep 2016 00:43:31 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: from fbsd81 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA15177; Tue, 6 Sep 16 00:20:55 PDT Date: Tue, 06 Sep 2016 00:21:08 -0700 From: perryh@pluto.rain.com (Perry Hutchison) To: freebsd-questions@freebsd.org Subject: "gpart add" falsely claiming "No space left on device" Message-Id: <57ce6e64.EITkODjuwy6pZ4L+%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 07:43:35 -0000 I copied the 10.3-RELEASE memstick.img to a 4GB flash drive, then used "gpart recover" to resize the partition table to the media. After that "gpart show" reports: # gpart show da2 => 3 7811067 da2 GPT (3.7G) 3 32 1 freebsd-boot (16K) 35 1348832 2 freebsd-ufs (659M) 1348867 2048 3 freebsd-swap (1.0M) 1350915 6460155 - free - (3.1G) but "gpart add" refuses to add a second freebsd-ufs partition in that supposedly-free space: # gpart add -t freebsd-ufs -l pkgs -f x da2 gpart: index '4': No space left on device # gpart add -t freebsd-ufs -l pkgs -f x -b 1350915 -s 6460155 da2 gpart: index '4': No space left on device All of these partitions are unmounted. What am I doing wrong?