From 13a8def0a0ab687cd5cb36a8e077a1d84d60f92f Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Wed, 4 Dec 2002 22:08:29 +0000 Subject: [PATCH] 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. --- .../books/handbook/disks/chapter.sgml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/disks/chapter.sgml b/en_US.ISO8859-1/books/handbook/disks/chapter.sgml index 4fe991edf0..f97a23b930 100644 --- a/en_US.ISO8859-1/books/handbook/disks/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/disks/chapter.sgml @@ -276,13 +276,13 @@ dedicated mode if you have a good reason to do so! - &prompt.root; dd if=/dev/zero of=/dev/rda1 bs=1k count=1 + &prompt.root; dd if=/dev/zero of=/dev/da1 bs=1k count=1 &prompt.root; fdisk -BI da1 #Initialize your new disk &prompt.root; disklabel -B -w -r da1s1 auto #Label it. &prompt.root; disklabel -e da1s1 # Edit the disklabel just created and add any partitions. &prompt.root; mkdir -p /1 &prompt.root; newfs /dev/da1s1e # Repeat this for every partition you created. -&prompt.root; mount -t ufs /dev/da1s1e /1 # Mount the partition(s) +&prompt.root; mount /dev/da1s1e /1 # Mount the partition(s) &prompt.root; vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. If you have an IDE disk, substitute ad @@ -301,19 +301,19 @@ appropriate any partition it finds which it does not understand. - &prompt.root; dd if=/dev/zero of=/dev/rda1 bs=1k count=1 + &prompt.root; dd if=/dev/zero of=/dev/da1 bs=1k count=1 &prompt.root; disklabel -Brw da1 auto &prompt.root; disklabel -e da1 # create the `e' partition -&prompt.root; newfs -d0 /dev/rda1e +&prompt.root; newfs -d0 /dev/da1e &prompt.root; mkdir -p /1 &prompt.root; vi /etc/fstab # add an entry for /dev/da1e &prompt.root; mount /1 An alternate method is: - &prompt.root; dd if=/dev/zero of=/dev/rda1 count=2 -&prompt.root; disklabel /dev/rda1 | disklabel -BrR da1 /dev/stdin -&prompt.root; newfs /dev/rda1e + &prompt.root; dd if=/dev/zero of=/dev/da1 count=2 +&prompt.root; disklabel /dev/da1 | disklabel -BrR da1 /dev/stdin +&prompt.root; newfs /dev/da1e &prompt.root; mkdir -p /1 &prompt.root; vi /etc/fstab # add an entry for /dev/da1e &prompt.root; mount /1 @@ -1573,7 +1573,7 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready Exabyte tape drive connected to a Sun called komodo, use: - &prompt.root; /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nrsa8 /dev/rda0a 2>&1 + &prompt.root; /sbin/rdump 0dsbfu 54000 13000 126 komodo:/dev/nrsa8 /dev/da0a 2>&1 Beware: there are security implications to allowing .rhosts authentication. Evaluate your