From owner-freebsd-current Sun Sep 22 1:22:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E3DF37B406; Sun, 22 Sep 2002 01:22:43 -0700 (PDT) Received: from rigel.grass.st (rigel.grass.st [195.197.32.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31BCE43E6E; Sun, 22 Sep 2002 01:22:42 -0700 (PDT) (envelope-from bsdcur@rigel.grass.st) Received: (from bsdcur@localhost) by rigel.grass.st (8.9.3/8.9.3) id LAA10705; Sun, 22 Sep 2002 11:22:40 +0300 (EEST) (envelope-from bsdcur) Date: Sun, 22 Sep 2002 11:22:40 +0300 From: mika ruohotie To: "Crist J. Clark" Cc: mika ruohotie , current@FreeBSD.ORG Subject: Re: disklabel doesnt let root to edit labels anymore? (some details) Message-ID: <20020922112240.B32612@rigel.grass.st> References: <20020921123247.A32612@rigel.grass.st> <20020922064000.GA36099@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020922064000.GA36099@blossom.cjclark.org>; from crist.clark@attbi.com on Sat, Sep 21, 2002 at 11:40:00PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Sep 21, 2002 at 11:40:00PM -0700, Crist J. Clark wrote: > On Sat, Sep 21, 2002 at 12:32:47PM +0300, mika ruohotie wrote: > > eh? > > it seems regardless of the flags i'm giving to disklabel it prevents > > me from editing/restoring/whatever labels. only thing i can do is > What error are you getting? apoligies for not giving all the details. what i'm trying to do is something i've done in the past years tens of times when i've "cloned" one installed system to be several more or less identical ones, ofcourse systems sharing one identical component, the hard drive and its layout. anyway, i'm not able to overwrite the current disklabel on a drive using the -R flag anymore, system tells me "Operation not permitted". if i add -n flag, i dont get errors. nowadays it seems my only way is to use boot floppies (for some reason my system's /stand/sysinstall cant see any disks) and it's really quite annoying... one other thing i noticed which have changed was that i'm no longer able to even edit a label, i ended up having a label: [the upper part of the label snipped to make this email a bit shorter] 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 2621440 1048576 swap # (Cyl. 65*- 228*) c: 120101877 0 unused 0 0 # (Cyl. 0 - 7475*) e: 1048576 0 4.2BSD 2048 16384 89 # (Cyl. 0 - 65*) f: 12582912 3670016 4.2BSD 2048 16384 89 # (Cyl. 228*- 1011*) g: 1048576 16252928 4.2BSD 2048 16384 89 # (Cyl. 1011*- 1076*) h: 102800373 17301504 4.2BSD 2048 16384 89 # (Cyl. 1076*- 7475*) which i tried to edit to look like: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1048576 0 4.2BSD 2048 16384 89 # (Cyl. 0 - 65*) b: 2621440 1048576 swap # (Cyl. 65*- 228*) c: 120101877 0 unused 0 0 # (Cyl. 0 - 7475*) e: 12582912 3670016 4.2BSD 2048 16384 89 # (Cyl. 228*- 1011*) f: 1048576 16252928 4.2BSD 2048 16384 89 # (Cyl. 1011*- 1076*) g: 102800373 17301504 4.2BSD 2048 16384 89 # (Cyl. 1076*- 7475*) (something which i too have done _tens_ of times in the past, i even went and tried this on a separate machine, older current. worked like it always has.) and the system just told me: disklabel: Operation not permitted re-edit the label? [y]: also, no matter what i try to edit on the label, including not changing _anything_ on the label, i get that same error. so something has changed, and i really wish it hadnt. and yes, the situation remains the same if i boot single user. > Crist J. Clark | cjclark@alum.mit.edu mickey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message