Use of raw disk devices no longer preferred.
No need to specify "-t ufs" when mounting a UFS file system with a BSD disk label, mount will do the right thing.
This commit is contained in:
parent
dde71ac662
commit
13a8def0a0
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=15167
1 changed files with 8 additions and 8 deletions
|
@ -276,13 +276,13 @@
|
|||
<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>
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/da1 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> # Edit the disklabel 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>mount /dev/da1s1e /1</userinput> # Mount the partition(s)
|
||||
&prompt.root; <userinput>vi /etc/fstab</userinput> # Add the appropriate entry/entries to your <filename>/etc/fstab</filename>.</screen>
|
||||
|
||||
<para>If you have an IDE disk, substitute <filename>ad</filename>
|
||||
|
@ -301,19 +301,19 @@
|
|||
<quote>appropriate</quote> any partition it finds which it does not
|
||||
understand.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/rda1 bs=1k count=1</userinput>
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/da1 bs=1k count=1</userinput>
|
||||
&prompt.root; <userinput>disklabel -Brw da1 auto</userinput>
|
||||
&prompt.root; <userinput>disklabel -e da1</userinput> # create the `e' partition
|
||||
&prompt.root; <userinput>newfs -d0 /dev/rda1e</userinput>
|
||||
&prompt.root; <userinput>newfs -d0 /dev/da1e</userinput>
|
||||
&prompt.root; <userinput>mkdir -p /1</userinput>
|
||||
&prompt.root; <userinput>vi /etc/fstab</userinput> # add an entry for /dev/da1e
|
||||
&prompt.root; <userinput>mount /1</userinput></screen>
|
||||
|
||||
<para>An alternate method is:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/rda1 count=2</userinput>
|
||||
&prompt.root; <userinput>disklabel /dev/rda1 | disklabel -BrR da1 /dev/stdin</userinput>
|
||||
&prompt.root; <userinput>newfs /dev/rda1e</userinput>
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=/dev/da1 count=2</userinput>
|
||||
&prompt.root; <userinput>disklabel /dev/da1 | disklabel -BrR da1 /dev/stdin</userinput>
|
||||
&prompt.root; <userinput>newfs /dev/da1e</userinput>
|
||||
&prompt.root; <userinput>mkdir -p /1</userinput>
|
||||
&prompt.root; <userinput>vi /etc/fstab</userinput> # add an entry for /dev/da1e
|
||||
&prompt.root; <userinput>mount /1</userinput></screen>
|
||||
|
@ -1573,7 +1573,7 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready</screen>
|
|||
Exabyte tape drive connected to a Sun called
|
||||
<hostid>komodo</hostid>, use:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>/sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nrsa8 /dev/rda0a 2>&1</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>/sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nrsa8 /dev/da0a 2>&1</userinput></screen>
|
||||
|
||||
<para>Beware: there are security implications to
|
||||
allowing <filename>.rhosts</filename> authentication. Evaluate your
|
||||
|
|
Loading…
Reference in a new issue