Subject: Re: disklabel revisted
To: David Jones <dej@inode.org>
From: Nathan Gelbard <gelbard@ENGR.ORST.EDU>
List: port-hp300
Date: 06/23/1997 17:07:25
At 05:57 PM 6/23/97 -0400, David Jones wrote:
>Nathan Gelbard wrote:
>| disklabel -R -r rd2 image (where image is a text file holding the above)
>| disklabel: ioctl DIOCSDINFO: Open partition would move or shrink.
>| 
>| Now, rd2-3 aren't mounted. They are exactly the same disk (rd7959B).
>| 
>| Whats happening here? 
>
>They may not be mounted, but they are open.  Disklabel needs to open the
>c partition to write the new label.  And if the "default" label cooked
>up by the kernel makes this partition larger than what you want it to be,
>you get this message.
>
>This is arguably broken; disklabel should let you do this anyway (perhaps
>with a warning).  If users want to shoot themselves in the foot, let them.
>
>The quick solution is to note the size of the c partition in the kernel's
>label, and adjust the size of your c partition to match.

When you say the "default" label cooked up by the kernel" you mean what
is reported durring boot (in this case, 594216 blocks)? Thats what I have!

The entry in disktab is the same. What exactly did I do wrong in my label?

I'd like to use all (and not more) of the diskspace. I just entered
what the kernel told me a boot time, along w/ some data from disktab.

Eh?