From owner-freebsd-questions@FreeBSD.ORG Mon Sep 10 02:50:25 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4958D106566C for ; Mon, 10 Sep 2012 02:50:25 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id CB74D8FC08 for ; Mon, 10 Sep 2012 02:50:24 +0000 (UTC) Received: by wgbfm10 with SMTP id fm10so1016092wgb.1 for ; Sun, 09 Sep 2012 19:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oZ/VDjReB3KffZjFHVrTJfulNKTw3UqFSCDFN0qUiy0=; b=tqfcpzaTbnTpr3+CW6rZZB60h2k1xNOj6xiCg51Qhs5S7ZdJB3i6mv0gqB+ggMChqy j7+XYCXPNbzbIkyQwSLGQnEloBtcV9ZprDbgQFJ5AC+Ri3LHgVXCDdQKB0pboH7/0AH4 buseaw7bwC8kGliV0NRHk1i3qYlcRXY5Oy/NQIBzujW9wa2EiFN1cJ8x39CurQd+vKcK GYk0bjWFgKdOU3OPERvYl3jTk/qbDQLzo8gEitx2syv2fGAbC1qxaHIi15z+04gBh/Ru D++Xl5f6HK45sOoxVw28gMM+FQaqPibk3dUDZBWPwtBKjQCaE59ZEebAvYEH007IRwGB eL5w== MIME-Version: 1.0 Received: by 10.180.96.3 with SMTP id do3mr13816554wib.5.1347245417853; Sun, 09 Sep 2012 19:50:17 -0700 (PDT) Received: by 10.223.63.76 with HTTP; Sun, 9 Sep 2012 19:50:17 -0700 (PDT) In-Reply-To: References: Date: Sun, 9 Sep 2012 19:50:17 -0700 Message-ID: From: Kevin Oberman To: Warren Block Content-Type: text/plain; charset=UTF-8 Cc: questions@freebsd.org Subject: Re: Removing UFS label from root 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: Mon, 10 Sep 2012 02:50:25 -0000 On Sun, Sep 9, 2012 at 6:49 PM, Warren Block wrote: > On Sun, 9 Sep 2012, Warren Block wrote: > >> On Sun, 9 Sep 2012, Kevin Oberman wrote: >> >>> I added a label to my root fs some time ago. I really prefer the gpt >>> label and I have added it, but I can't figure out how to remove the >>> ufs label. >>> >>> I boot single user and run 'tunefs -L "" /dev/ada1p2' but I get an >>> "unable to write superblock" error. This is before mounting the drive >>> RW, but it is, of course, mounted RO. >> >> >> This worked in a VM when I tested it just now. Maybe running fsck on that >> filesystem first will help. Already tried that. I know I was able to label it originally, so it does seem like something must have changed, but I don't know what. I did use gpart to expand my /usr partition and then used growfs to expand the FS, but I did nothing to root and I was able to remove the labels on all of the other partitions. > Alternative thought: is ada1p2 actually a UFS filesystem? Well, the fact that it has a ufs label, fstab show ufs and fsck runs fsck_ufs are strong hints. 2. Name: ada1p2 Mediasize: 1073741824 (1.0G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e2 rawuuid: 43f0eafd-ba3a-11e0-b70a-f0def166a11e rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b label: root length: 1073741824 offset: 86016 type: freebsd-ufs index: 2 end: 2097319 start: 168 -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com