On 4/7/2011 1:37 PM, Nick Holland wrote:
> On 04/07/2011 01:02 PM, Steven R. Gerber wrote:
>> On 4/7/2011 12:30 PM, Ted Unangst wrote:
>>> On Thu, Apr 7, 2011 at 12:10 PM, Steven R. Gerber
>>> <[email protected]>  wrote:
>>>> The partitions/mounts problem is far more disconcerting.  What if I
>>>> need
>>>> to save data to a striped array to do the migration?
>>>> Recreating/resetting those parameters is dangerous.  How can I create
>>>> and use a site script to preserve them through install?  Is it possible
>>>> to do an install without walloping the existing filesystem(s)?
>>>> (Deleting
>>>> files is OK.)
>>> The installer will not overwrite an existing disklabel if you have one
>>> and will only newfs filesystems that have mount points.  This is easy
>>> to screw up if you aren't careful, but it's certainly possible to do a
>>> clean install and keep some filesystems from before.
>>>
>>>
>> I am missing the point.  It seems like a Catch-22 to me.
>> The installer takes me into disklabel:
>>     Whole disk OR Auto OR Existing?
> 
> that's not disklabel.  that's fdisk.
> 
> you chose "edit MBR" to look at what you currently have and perhaps
> change it in your own way, and if I recall properly, it's "OpenBSD" to
> use the existing partition.  Use the existing partition.
> 
> Then when you get to disklabel, you will chose a "custom" layout. 
> Define mount points for the partitions you want cleared, and not for
> those you wish to retain, and then add them to /etc/fstab afterwards.
> 
> See http://www.openbsd.org/faq/faq4.html#InstDisks for more details.
> 
> 
>> I also have mount points for my arrays.  How do I preserve the softraid
>> parameters etc.?
> 
> Same way as any other disk.  The install kernel will see, recognize and
> configure any existing softraid "disks", and treat them as the other
> disks on the system.  You do the same. :)
> 
> Nick.
> 
> 
> 

Nick,
Thanks for the clue, but I still don't get it (me dummy?).
******************************************************
NOTE for re-installers: The new installer will not clear your old
disklabel if you chose "(C)ustom Layout", but you will need to
re-specify each mount point using the 'm' option in disklabel(8).

The installer now creates those partitions and creates file systems on
them using newfs(8), and mounts them for installation:
******************************************************
The FAQ indicates that I must set mounts in disklabel and that they'll
be newfs'd.
If I don't set them then how/where will the installer copy and unpack files?
Is there a point in the process (after disklabel, before file sets)
where I can fix /etc/fstab and mount?

Thanks,
Steven

Reply via email to