Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2002 11:44:58 -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:  <20020606184458205.AAA510@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:
> > (perhaps because I split the DOS partition onto a smaller separate 
> > logical drive and now the slice offset is different)
> 
> heh, indeed there it went wrong.
> 
> > 
> > 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.


So do you have any hints on this?  IE, is there a way I can just 
reset the beginning partition offset (ie for amrd1c or amrd1s2c) and 
everything else just "moves to the left", or do I have to re-
calculate all the numbers and re-create the whole disklabel from 
scratch?

If the latter I have a feeling something will go wrong.  (As it is, I 
rarely use disklabel, I usually use the more user-friendly version in 
sysinstall instead.)

Here's part of the output of "disklabel -r /dev/amrd1s2":


[...]
8 partitions:
#		size	offset	fstype	[fsize bsize bps/cpg]
  a:	409600	417690	4.2BSD	2048 16384	97	# (Cyl.	26 - 51*)
  b:	1024000	827290	swap					# (Cyl. 51*-115*)
  c:   17510850 417690	unused	   0	 0		# (Cyl.	26 - 1115)
  e:	2048000	1851290	4.2BSD	2048 16384	90	# (Cyl. 115*- 242*)
  f:	2048000	3899290	4.2BSD	2048 16384	90	# (Cyl. 242*- 370*)
  g:   11981250 5947290 4.2BSD	2048 16384	89	# (Cyl. 370*- 1115*)
partition c: partition extends past end of unit
Warning, partition c dosn't start at 0!
Warning, An incorrect partition c may cause problems for standard system utilities
partition g: partition extends past end of unit




--
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?20020606184458205.AAA510>