Add a small demonstration of how to see partition table information.

Suggested by Bernard T. Higonnet <bthcom@higonnet.net> in freebsd-doc.
This commit is contained in:
Warren Block 2016-04-12 17:30:23 +00:00
parent f9cfc3f238
commit 04bc911443
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=48568

View file

@ -146,7 +146,16 @@
See &man.gpart.8; for options to create partitions smaller than
a whole disk.</para>
<para>A file system is created on the new blank disk:</para>
<para>The disk partition information can be viewed with
<command>gpart show</command>:</para>
<screen>&prompt.user; <userinput>gpart show ada1</userinput>
=> 34 1465146988 ada1 GPT (699G)
34 2014 - free - (1.0M)
2048 1465143296 1 freebsd-ufs (699G)
1465145344 1678 - free - (839K)</screen>
<para>A file system is created in the new partition on the new disk:</para>
<screen>&prompt.root; <userinput>newfs -U /dev/ada1p1</userinput></screen>
@ -532,8 +541,7 @@ da0: &lt;STECH Simple Drive 1.04&gt; s/n WD-WXE508CAN263 detached
match "system" "GEOM";
match "subsystem" "DEV";
action "/usr/sbin/automount -c";
};
</screen>
};</screen>
<para>Reload the configuration if &man.autofs.5;
and &man.devd.8; are already running:</para>