login
Header Space

 
 

Re: 4.1 to 4.2 disklabel woes

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Otto Moerbeek <otto@...>
Cc: <misc@...>
Date: Monday, May 12, 2008 - 4:29 pm

Thanks for your help,

See additional comments below.

-Darrian

On Mon, May 12, 2008 at 12:21 PM, Otto Moerbeek <otto@drijf.net> wrote:

The partition table was not already written with a 4.2 kernel.  Just
to be very sure,
i did the following:

1. Formatted the disk using windows.
2. Booted from 4.1 install CD re-partitioned and installed 4.1.
3. After reboot, copied 4.2 kernels to /bsd and /bsd.rd
4. Reboot again, same error occurs.


Thanks, this worked.  After booting from 4.2 ramdisk kernel, i ran
disklabel -E wd0
I then modified the a partition and the default offset was a very large number,
i changed this to 63 and kept the size the same. For the remainder of the
partitions i just added the previous size and offset for the new offset.

My real upgrade however needs to be remote, so I cannot boot the ramdisk kernel
and perform these steps.  For completeness, I did the following to make a remote
upgrade work.

1. login to 4.1 system
2. copy 4.2 kernels and disklabel from 4.2 to system.
3. run 4.2 disklabel while still running 4.1 kernel and fix disklabel
as described above.
4. reboot, it works and i can still remotely login to system which is
now running a 4.2
kernel with 4.1 userland.
** unexpectedly at this point, I can now boot either the 4.1 kernel or
4.2 kernel with the
same 4.1 userland.  It seems that after modifying the disk label with
the 4.2 version of
disklabel, that the 4.1 version still reads it properly. **
5. finish upgrade as described in openbsd upgrade FAQ.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
4.1 to 4.2 disklabel woes, Darrian Hale, (Mon May 12, 2:47 pm)
Re: 4.1 to 4.2 disklabel woes, Otto Moerbeek, (Mon May 12, 3:21 pm)
Re: 4.1 to 4.2 disklabel woes, Darrian Hale, (Mon May 12, 4:29 pm)
Re: 4.1 to 4.2 disklabel woes, Otto Moerbeek, (Mon May 12, 4:36 pm)
speck-geostationary