From owner-freebsd-questions@FreeBSD.ORG Sat Jun 28 11:31:36 2008 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 752F5106568F for ; Sat, 28 Jun 2008 11:31:36 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id F03378FC20 for ; Sat, 28 Jun 2008 11:31:35 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so518309fgb.35 for ; Sat, 28 Jun 2008 04:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=dTHGssQkVjCwh5C33jk+HwQ0a6CGDw3Ja83+OoR9XNY=; b=RnqZLArt1TidDlAAyKsXbCL4YLtkFn4zsN3p5wZV2S5kysBD3ZxuVv0LS8X9MwaxBn 3qhaQEZMDoSYvdkBpfW9juQ7Vo7iTGmH7rWvTHQItc8O5R8NaU//sVsxC4B1Wj9CWWW/ sWBcV8KhowXsR/0A31+uJE4A6ZygLYlKDULJc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=EfSd53lx4cvFXPZ2Btt05npET9k3/xgMITdT7ScupPVym67hEZh1/lTePxCpxtf+Wo Ff4rvC3VlE8T95Y4Vm71LVB0GyeIIDMRZj1pSta1p0+2n1WONj6M4HoLcHvIQgF3fEJw zxsrdbXnSDoK65MvTKD0Cbv04gYv0CgnKn1k8= Received: by 10.86.25.17 with SMTP id 17mr3403527fgy.50.1214652307013; Sat, 28 Jun 2008 04:25:07 -0700 (PDT) Received: from marvelman.marvels.xx ( [77.57.75.125]) by mx.google.com with ESMTPS id e20sm5167894fga.1.2008.06.28.04.25.05 (version=SSLv3 cipher=RC4-MD5); Sat, 28 Jun 2008 04:25:06 -0700 (PDT) Message-Id: <588ED8E7-9EB7-4E15-A03B-06FAD0469294@gmail.com> From: Anselm Strauss To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Date: Sat, 28 Jun 2008 13:25:04 +0200 X-Mailer: Apple Mail (2.924) Subject: bsdlabel has no effect 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: Sat, 28 Jun 2008 11:31:36 -0000 Hi, originally I had the following labels on my ad0 disk (no partitions, directly labeled /dev/ad0): # /dev/ad0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1048576 0 4.2BSD 1024 8192 46248 c: 1048576 0 unused 0 0 # "raw" part, don't edit Since this was written from a file image the my compact flash card, and the card has now 8GB instead of 512MB, I wanted to grow the labels after having booted the system, and that worked. So now it is: # /dev/ad0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 15662304 0 4.2BSD 1024 8192 46248 c: 15662304 0 unused 0 0 # "raw" part, don't edit But unfortunately, I also grew label 'a', although I did not grow the filesystem. What I actually wanted was to stay 'a' the size it is and add new labels. So I tried to shrink 'a' again, to finally have something like: # /dev/ad0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1048576 0 4.2BSD 1024 8192 46248 c: 15662304 0 unused 0 0 # "raw" part, don't edit before adding new labels. But somehow bsdlabel has no effect when shrinking 'a'. No error or verbose message, the labels are just the same before running it, whether I use the edit mode or restore mode. Am I not supposed to shrink a label like that? Cheers, Anselm