Update Question 9.6:
- Mark up ccd(4) - Make ccd devices <replaceable> - Make disklabel file <replaceable> Approved by: gabor (mentor)
This commit is contained in:
parent
659e4900f8
commit
f00c64e2ee
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32167
1 changed files with 7 additions and 7 deletions
|
@ -5085,27 +5085,27 @@ ccdconfig: ioctl (CCDIOCSET): /dev/<replaceable>ccd0c</replaceable>: Inappropria
|
|||
|
||||
<qandaentry>
|
||||
<question id="ccd-disklabel">
|
||||
<para>Why can I not edit the disklabel on my ccd?</para>
|
||||
<para>Why can I not edit the disklabel on my &man.ccd.4;?</para>
|
||||
</question>
|
||||
|
||||
<answer>
|
||||
<para>The symptom of this is:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>disklabel ccd0</userinput>
|
||||
<screen>&prompt.root; <userinput>disklabel <replaceable>ccd0</replaceable></userinput>
|
||||
(it prints something sensible here, so let us try to edit it)
|
||||
&prompt.root; <userinput>disklabel -e ccd0</userinput>
|
||||
&prompt.root; <userinput>disklabel -e <replaceable>ccd0</replaceable></userinput>
|
||||
(edit, save, quit)
|
||||
disklabel: ioctl DIOCWDINFO: No disk label on disk;
|
||||
use "disklabel -r" to install initial label</screen>
|
||||
|
||||
<para>This is because the disklabel returned by ccd is actually
|
||||
<para>This is because the disklabel returned by &man.ccd.4; is actually
|
||||
a <quote>fake</quote> one that is not really on the disk.
|
||||
You can solve this problem by writing it back explicitly,
|
||||
as in:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>disklabel ccd0 > /tmp/disklabel.tmp</userinput>
|
||||
&prompt.root; <userinput>disklabel -Rr ccd0 /tmp/disklabel.tmp</userinput>
|
||||
&prompt.root; <userinput>disklabel -e ccd0</userinput>
|
||||
<screen>&prompt.root; <userinput>disklabel <replaceable>ccd0</replaceable> > <replaceable>/tmp/disklabel.tmp</replaceable></userinput>
|
||||
&prompt.root; <userinput>disklabel -Rr <replaceable>ccd0</replaceable> <replaceable>/tmp/disklabel.tmp</replaceable></userinput>
|
||||
&prompt.root; <userinput>disklabel -e <replaceable>ccd0</replaceable></userinput>
|
||||
(this will work now)</screen>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
|
Loading…
Reference in a new issue