Date: Thu, 6 Jun 2002 12:08:33 -0700 From: "Philip J. Koenig" <pjklist@ekahuna.com> To: questions@FreeBSD.ORG Cc: Axel Scheepers <axel@axel.truedestiny.net> Subject: Re: slice/partition/disklabel/disk copy question Message-ID: <20020606190833849.AAA495@empty1.ekahuna.com@pc02.ekahuna.com> 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
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020606190833849.AAA495>