Subject: Re: How to...
To: Wolfgang Solfrank <ws@tools.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: current-users
Date: 11/23/1998 15:43:25
On Nov 23, Wolfgang Solfrank wrote
> Hi,
> 
> > then move your disk, and restore the disklabel (in kernel memory only):
> > disklabel -R xxx disklabel_txt
> 
> Note that this will _not_only_ set the in memory disklabel, but will also
> try to write a label to the disk!  Most likely you'll be lucky however,
> since the write of the disklabel will fail, as it will only overwrite a
> valid disklabel, but will fail to find one that adheres to the way i386
> stores disklabels (and probably vice versa, too).

Hum. I used this several times without problems, I guess I was lucky.
Would a 'disklabel -N xxx' help ?

> 
> This is arguable a bug in the disklabel utility.  There should probably be
> an option that allows setting the incore disklabel without affecting even
> a valid disklabel on the media.
> 
> BTW, note that the changed incore-only disklabel will be lost on the
> last close of a partition. 

This is only true for removable media, or did I miss something ?
However, I'll probably fix this for SCSI removable media 'soon'.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--