

       FreeBSD


  


Doug White

            <dwhite@resnet.uoregon.edu>
          
 1997
 FreeBSD       FreeBSD Foundation.
  Iomega, Zip,  Jaz      
   Iomega Corporation    /  
.
  Motif, OSF/1,  UNIX      
   IT DialTone  The Open Group     The
Open Group       .
          
           
 .           
      FreeBSD     
 ,      : [TM]  .
         (slices), 
(partition)   (format/)    
       FreeBSD.    
FreeBSD 2.2       .   
    4  FreeBSD.
-------------------------------------------------------------------------------

1   


1.1 

          
    .  ,  
          . 
         .  
          
. ,    (  sysinstall),
    FreeBSD,    .
    (modes) :

*   (compatibility mode):      
     (slice table)      
     .
*   (dedicated mode),    
    :     
  partitions.         
   -FreeBSD          . 
             
      '   .

        
        ,  
       FreeBSD.   
     (interoperability) 
 ,   .
          
.         /stand/
sysinstall.   2.1.7-RELEASE    sysinstall    
       label ()   
(partitions)  .       
        .  
            
 root.         
2-3     sysinstall    .
-------------------------------------------------------------------------------

1.2 

    UNIX       . 
          
  FreeBSD  ().

*   (compatibility mode):       
     (slice table)      
     .    .
* ()  :      
         (slice table).   
           -FreeBSD 
  .    .
* :   ,  CDROM,  -   
    Zip/Jaz       
     .      
            
  ,            
           .    
        ( ,
  , .)        
      .
*  (slice):    .      PC
      4    .   
     (sectors).     (slice
  table)          
  BIOS          .   
      (partition table)   DOS 
      fdisk.
*  (partition):    .  
        (slices)    FreeBSD.
     (filesystem)    (swap area) 
      .      
  disklabel.
*  (sector):     .   
  512 bytes.

-------------------------------------------------------------------------------

1.3       

    ,         
        .
  .        
   .         
         .
          .  
  !
-------------------------------------------------------------------------------

1.4 Zip, Jazz,    

        . 
            
             
  .      dmesg      
  .      :

  Can't get the size

     .       
       .
-------------------------------------------------------------------------------

2     


2.1 

           FreeBSD.
          
 ,    boot.
-------------------------------------------------------------------------------

2.2         Sysinstall

To /stand/sysinstall,     ,  
          
     .   fdisk  disklabel
   sysinstall    (GUI - Graphical User
Interface)        .   
        2.1.7    FreeBSD.

  1.   sysinstall  root 

       # /stand/sysinstall

       .
  2.  Index.
  3.  Partition.
  4.          
       SPACE.
  5.         FreeBSD,  A.
  6.           (Do you still want to
     do this)  Yes.
  7.  Write.
  8.           
       Yes.
  9.         boot loader, 
     None       Master Boot Record. 
       boot loader     
      FreeBSD          
     .
 10.  ENTER      Wrote FDISK partition
     information out successfully.
 11.  Quit      FDISK Editor   ESCAPE  
       Index menu.
 12.  Label   Index menu.
 13.       (   partitions).  
       partition   C     partition. 
            size, partition type
     Filesystem,  mountpoint (   ).
 14.  W         .
      filesystem       newfs   
      . (   partition     !).
         :

       Error mounting /mnt/dev/ad2s1e on /mnt/blah : No such file or directory

      .
 15.    ESCAPE   .

-------------------------------------------------------------------------------

2.3          


      ad2     
  ( dmesg     ).

  # dd if=/dev/zero of=/dev/ad2 count=2
  # disklabel /dev/ad2 | disklabel -B -R -r ad2 /dev/stdin
     partition,      
  'c':
  # newfs /dev/ad2c

     disklabel    
partitions (    swap)  :

  # dd if=/dev/zero of=/dev/ad2 count=2
  # disklabel /dev/ad2 > /tmp/label
    disklabel    partitions:
  # vi /tmp/label
  # disklabel -B -R -r ad2 /tmp/label
     newfs  partitions  

      .
-------------------------------------------------------------------------------

3     


3.1 

           
         
 .  fdisk       
        ,  
    .     sysinstall  
      .
-------------------------------------------------------------------------------

3.2         Sysinstall


  1.   sysinstall  root 

       # /stand/sysinstall

       .
  2.  Index.
  3.  Partition.
  4.          
       SPACE.
  5.         FreeBSD,  A.
  6.   :

       Do you want to do this with a true partition entry so as to remain
       cooperative with any future possible operating systems on the
       drive(s)?

     (          
         ?)  Yes.
  7.  Write.
  8.       boot manager,  None  
     SPACE   ENTER  OK.
  9. Quit ()   FDISK Editor.
 10.        boot manager ,  None .
 11.  Label   Index menu.
 12.      (    partitions). A 
       partition       
     size, partition type filesystem,  mountpoint (  
     ).
 13.  filesystem       newfs   
      .    partition     ! 
        :

       Error mounting /mnt/dev/ad2s1e on /mnt/blah : No such file or directory

      .
 14.    ESCAPE   .

      .
-------------------------------------------------------------------------------

4     


4.1  swap.

   ,     swap   
 .      swap     
 ,         
   swap   .
   swap      :

  1.     (partitioning)   disklabel   
      swap   (partition) `b'       
      , ..  `a'   `e'.      
     blocks  512 bytes.
  2.   newfs  ,      `c'. ,
             swap.
  3.   /etc/fstab  :

       /dev/ad0b                       none            swap    sw 0 0

       /dev/ad0b      .
  4.       swap    swapon

       # swapon /dev/da0b
       swapon:  added /dev/da0b as swap space


-------------------------------------------------------------------------------

4.2    

 : Renaud Waldura (<renaud@softway.com>)
           , :

  # mount /dev/ad2 /mnt
  # pax -r -w -p e /usr/home /mnt
  # umount /mnt
  # rm -rf /usr/home/*
  # mount /dev/ad2 /usr/home

-------------------------------------------------------------------------------

4.3      CCD

 : Stan Brown (<stanb@awod.com>)
  Concatenated Disk Driver,   CCD,     
     .    
(striping).         
       .   manual
pages ccd(4)  ccdconfig(8)   ___CCD  
.
   CCD     .    ccdconfig,
   KLD         
CCD.
 CCD   partitions  4.2BSD.     
         partition.  , 
 disklabel -e   :

  #        size   offset    fstype   [fsize bsize bps/cpg]
    c: 60074784        0    unused        0     0     0   # (Cyl.    0 - 59597)

     partition c  CCD,   
unused.     partition    
 4.2BSD:

  #        size   offset    fstype   [fsize bsize bps/cpg]
    c: 60074784        0    unused        0     0     0   # (Cyl.    0 - 59597)
     e: 60074784        0    4.2BSD        0     0     0   # (Cyl.    0 -
  59597)

     CCD,    . 
    .      .
       .

  # cd /dev ; sh MAKEDEV ccd0

  # disklabel -r -w da0 auto
  # disklabel -r -w da1 auto
  # disklabel -r -w da2 auto

  # disklabel -e da0
    partition e  4.2BSD
  # disklabel -e da1
    partition e  4.2BSD
  # disklabel -e da2
    partition e  4.2BSD

  # ccdconfig ccd0 273 0 /dev/da0e /dev/da1e /dev/da2e

  # newfs /dev/ccd0c

  273     stripe.     sectors (512 bytes
 )   block   CCD.      128
kB,        2.
    mount     CCD   
 /dev/ccd0c.
       CCD   Vinum. 
  Vinum_Project_home_page.
-------------------------------------------------------------------------------

5 

            
   :

* Darryl Okahata (<darrylo@hpnmhjw.sr.hp.com>)    
        ,   
      FreeBSD-questions.
* Jordan K. Hubbard <jkh@FreeBSD.org>    sysinstall  
    .
* John Fieber (<jfieber@indiana.edu>)      
     DocBook DTD       .
* Greg Lehey <grog@FreeBSD.org>     ,  
  ,        .

-------------------------------------------------------------------------------
  ,   ,     ftp://ftp.FreeBSD.org/
                               pub/FreeBSD/doc/.
          FreeBSD,     
                   <questions@FreeBSD.org>.
             ,  e-mail 
                              <doc@FreeBSD.org>.
