From owner-freebsd-questions Thu Jun 6 12: 8:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by hub.freebsd.org (Postfix) with ESMTP id 68C4437B40D for ; Thu, 6 Jun 2002 12:08:35 -0700 (PDT) Received: from pc-02 (pc02.ekahuna.com [198.144.200.197]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com; Thu, 6 Jun 2002 12:08:33 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Thu, 6 Jun 2002 12:08:33 -0700 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: slice/partition/disklabel/disk copy question Reply-To: pjklist@ekahuna.com Cc: Axel Scheepers In-reply-to: <20020606155541.L67863@mars.thuis> References: <20020606011859428.AAA484@empty1.ekahuna.com@pc02.ekahuna.com>; from pjklist@ekahuna.com on Wed, Jun 05, 2002 at 06:18:59PM -0700 X-mailer: Pegasus Mail for Win32 (v3.12c) Message-ID: <20020606190833849.AAA495@empty1.ekahuna.com@pc02.ekahuna.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 6 Jun 2002, at 15:55, Axel Scheepers boldly uttered: > On Wed, Jun 05, 2002 at 06:18:59PM -0700, Philip J. Koenig wrote: > > Anyway I booted up with the fixit CD, was going to install booteasy > > on the MBR of logical disk 1, but I noticed the following repeated > > several times in dmesg and wondered if its likely I can just change > > the disklabel and fix this? (ie change the slice offset?) Newlines > > added for readability: > > Yes. Change the values to the new ones. That should make things normal > again. OK, so I'm sitting here with the emergency shell booting from the fixit CD. I decided to try editing the disklabel, which looked easier than creating one from scratch. Something about the fixit environment is unfriendly though - this is what I got: Fixit# disklabel -er /dev/amrd1s2 disklabel: /mnt2/stand/vi: No such file or directory vi works if I invoke it manually, I was able to create, edit and save a tempfile on / without a problem. Also I'm not sure if I should be passing the "entire disk" parameter to disklabel (ie /dev/amrd1) or just the FreeBSD slice. (ie /dev/amrd1s2) If I run disklabel without the -r option, I can't pass it the specific slice identifier, I get this, maybe because the kernel rejected the label?: Fixit# disklabel /dev/amrd1s2 disklabel: ioctl DIOCGDINFO: Invalid argument However if I run disklabel WITH the -r option, I can't pass it the "entire disk" parameter, or I get this: Fixit# disklabel -r /dev/amrd1 disklabel: bad pack magic number (label is damaged, or pack is unlabeled) Thx, Phil -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message