|
Lines 510-518
Link Here
|
| 510 |
<title>Using Command Line Utilities</title> |
510 |
<title>Using Command Line Utilities</title> |
| 511 |
|
511 |
|
| 512 |
<sect3> |
512 |
<sect3> |
| 513 |
<title>* Using Slices</title> |
513 |
<title>Using Slices</title> |
| 514 |
|
514 |
|
| 515 |
<para></para> |
515 |
<para>This setup will allow your disk to work correctly with |
|
|
516 |
other operating systems that might be installed on your |
| 517 |
computer and will not confuse other operating systems' fdisk |
| 518 |
utilities. It is recommended to use this method for new disk |
| 519 |
installs. Use <literal>dedicated</literal> mode only, if you |
| 520 |
have a good reason to do so!</para> |
| 521 |
|
| 522 |
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/rda1 bs=1k count=1</userinput> |
| 523 |
&prompt.root; <userinput>fdisk -BI da1</userinput> #Initialize your new disk |
| 524 |
&prompt.root; <userinput>disklabel -B -w -r da1s1 auto</userinput> #Label it. |
| 525 |
&prompt.root; <userinput>disklabel -e da1s1</userinput> # Now edit the disklabel you just created and add any partitions. |
| 526 |
&prompt.root; <userinput>mkdir -p /1</userinput> |
| 527 |
&prompt.root; <userinput>newfs /dev/da1s1e</userinput> # Repeat this for every partition you created. |
| 528 |
&prompt.root; <userinput>mount -t ufs /dev/da1s1e /1</userinput> # Mount the partition(s) |
| 529 |
&prompt.root; <userinput>vi /etc/fstab</userinput> # When satisfied, add the appropriate entry/entries to your <filename>/etc/fstab</filename>.</screen> |
| 530 |
|
| 531 |
<para>That was it! It is not difficult.</para> |
| 532 |
|
| 533 |
<para>If you have an IDE disk, subsitute <filename>ad</filename> |
| 534 |
for <filename>da</filename>. On pre-4.x systems use |
| 535 |
<filename>wd</filename>.</para> |
| 536 |
|
| 516 |
</sect3> |
537 |
</sect3> |
| 517 |
|
538 |
|
| 518 |
<sect3> |
539 |
<sect3> |