Using Command Line Utilities
Using Slices
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
dedicated
mode if you have a good reason to do so!
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# fdisk -BI da1 #Initialize your new disk
# bsdlabel -B -w da1s1 auto #Label it.
# bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions.
# mkdir -p /1
# newfs /dev/da1s1e # Repeat this for every partition you created.
# mount /dev/da1s1e /1 # Mount the partition(s)
# vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab.
If you have an IDE disk, substitute
ad
for
da.
If you will not be
sharing the new drive with another operating system, you may use the
dedicated mode. Remember this mode can confuse
Microsoft operating systems; however, no damage will be done by them.
IBM's
OS/2® however, will “appropriate”
any partition it finds which it does not understand.
# dd if=/dev/zero of=/dev/da1 bs=1k count=1
# bsdlabel -Bw da1 auto
# bsdlabel -e da1 # create the `e' partition
# newfs /dev/da1e
# mkdir -p /1
# vi /etc/fstab # add an entry for /dev/da1e
# mount /1
An alternate method is:
# dd if=/dev/zero of=/dev/da1 count=2
# bsdlabel /dev/da1 | bsdlabel -BR da1 /dev/stdin
# newfs /dev/da1e
# mkdir -p /1
# vi /etc/fstab # add an entry for /dev/da1e
# mount /1
Untuk Proxy
#chown -R proxy:proxy /cache160gb
# vi /etc/fstab
/dev/ad6s1a
/cache160gb ufs rw,noasync,noatime 2 2