Add a section on using slices.
PR: 22996 Submitted by: Szilveszter Adam <sziszi@petra.hos.u-szeged.hu>
This commit is contained in:
parent
6dcbef377d
commit
87102df05e
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=8478
2 changed files with 42 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.22 2000/07/17 07:16:57 hanai Exp $
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.23 2000/07/19 02:07:46 hanai Exp $
|
||||
-->
|
||||
|
||||
<chapter id="disks">
|
||||
|
|
@ -510,9 +510,27 @@
|
|||
<title>Using Command Line Utilities</title>
|
||||
|
||||
<sect3>
|
||||
<title>* Using Slices</title>
|
||||
<title>Using Slices</title>
|
||||
|
||||
<para></para>
|
||||
<para>This setup will allow your disk to work correctly with
|
||||
other operating systems that might be installed on your
|
||||
computer and will not confuse other operating systems' fdisk
|
||||
utilities. It is recommended to use this method for new disk
|
||||
installs. Only use <literal>dedicated</literal> mode if you
|
||||
have a good reason to do so!</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/rda1 bs=1k count=1</userinput>
|
||||
&prompt.root; <userinput>fdisk -BI da1</userinput> #Initialize your new disk
|
||||
&prompt.root; <userinput>disklabel -B -w -r da1s1 auto</userinput> #Label it.
|
||||
&prompt.root; <userinput>disklabel -e da1s1</userinput> # Now edit the disklabel you just created and add any partitions.
|
||||
&prompt.root; <userinput>mkdir -p /1</userinput>
|
||||
&prompt.root; <userinput>newfs /dev/da1s1e</userinput> # Repeat this for every partition you created.
|
||||
&prompt.root; <userinput>mount -t ufs /dev/da1s1e /1</userinput> # Mount the partition(s)
|
||||
&prompt.root; <userinput>vi /etc/fstab</userinput> # When satisfied, add the appropriate entry/entries to your <filename>/etc/fstab</filename>.</screen>
|
||||
|
||||
<para>If you have an IDE disk, subsitute <filename>ad</filename>
|
||||
for <filename>da</filename>. On pre-4.x systems use
|
||||
<filename>wd</filename>.</para>
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.22 2000/07/17 07:16:57 hanai Exp $
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.23 2000/07/19 02:07:46 hanai Exp $
|
||||
-->
|
||||
|
||||
<chapter id="disks">
|
||||
|
|
@ -510,9 +510,27 @@
|
|||
<title>Using Command Line Utilities</title>
|
||||
|
||||
<sect3>
|
||||
<title>* Using Slices</title>
|
||||
<title>Using Slices</title>
|
||||
|
||||
<para></para>
|
||||
<para>This setup will allow your disk to work correctly with
|
||||
other operating systems that might be installed on your
|
||||
computer and will not confuse other operating systems' fdisk
|
||||
utilities. It is recommended to use this method for new disk
|
||||
installs. Only use <literal>dedicated</literal> mode if you
|
||||
have a good reason to do so!</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/rda1 bs=1k count=1</userinput>
|
||||
&prompt.root; <userinput>fdisk -BI da1</userinput> #Initialize your new disk
|
||||
&prompt.root; <userinput>disklabel -B -w -r da1s1 auto</userinput> #Label it.
|
||||
&prompt.root; <userinput>disklabel -e da1s1</userinput> # Now edit the disklabel you just created and add any partitions.
|
||||
&prompt.root; <userinput>mkdir -p /1</userinput>
|
||||
&prompt.root; <userinput>newfs /dev/da1s1e</userinput> # Repeat this for every partition you created.
|
||||
&prompt.root; <userinput>mount -t ufs /dev/da1s1e /1</userinput> # Mount the partition(s)
|
||||
&prompt.root; <userinput>vi /etc/fstab</userinput> # When satisfied, add the appropriate entry/entries to your <filename>/etc/fstab</filename>.</screen>
|
||||
|
||||
<para>If you have an IDE disk, subsitute <filename>ad</filename>
|
||||
for <filename>da</filename>. On pre-4.x systems use
|
||||
<filename>wd</filename>.</para>
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue