

    FreeBSD     


Jay Richmond

    <jayrich@sysc.com>
  
6 August 1996
 FreeBSD       FreeBSD Foundation.
    IBM, AIX, EtherJet, Netfinity, OS/2, PowerPC, PS/2, S/390,
 ThinkPad     International Business Machines
Corporation   ,  ,     .
 Linux       Linus Torvalds 
 .
  Microsoft, IntelliMouse, MS-DOS, Outlook, Windows, Windows Media, 
Windows NT         
Microsoft Corporation    /   .
  PowerQuest  PartitionMagic     
PowerQuest Corporation    /   .
          
           
 .           
      FreeBSD     
 ,      : [TM]  .
       FreeBSD     
  ,   Linux,  MS-DOS,  OS/2  
Windows 95.         ,  
 : Annelise Anderson <andrsn@stanford.edu>, Randall Hopper
<rhh@ct.picker.com>,  Jordan K. Hubbard <jkh@FreeBSD.org>.
-------------------------------------------------------------------------------

1 

          
   ,        
 EIDE .       
     ,   _5  
 .     , 
      .
             
   .       
            
 . ' ,        
 DOS ,        FIPS (
 CD-ROM   FreeBSD,   \TOOLS,    
   ftp).   FIPS      
   ,        
 .     ,   PartitionMagic, 
            
   .
-------------------------------------------------------------------------------

2    (boot managers)

         
 .       ,  
        .


   Boot Easy
             
        FreeBSD.         
      ,   BSD, OS/2 (HPFS), Windows 95 (FAT 
      FAT32),  Linux.        
       F1, F2, ....

      OS/2
               FAT,
      FAT32, HPFS, FFS (FreeBSD)  EXT2 (Linux).     
         .     OS/2   
                 
      ,         master
      boot record (MBR).         
        ,     1024,   
         .      Linux  
       LILO,   LILO     MBR   boot record
       Linux .       
       OS/2  Linux  Linux_HOWTOs.

  OS-BS
              
      Boot Easy.      , 
              
      .  beta       
         .     OS-BS  CD
        FreeBSD,   \TOOLS     
      ftp.

  LILO,  LInux LOader
             .
           FreeBSD,      
         LILO.


        FAT32: FAT32       
        OEM SR2  Windows 95  Microsoft,
         1996.     FAT 
     ,       cluster 
      .        boot
     sector   allocation table,      
      .

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

3   

      EIDE  ,   
   FreeBSD, Linux  Windows 95.
     (:    , Jay Richmond) 
   :

* /dev/wd0 (  )
* /dev/wd1 (  )

     1416   .

  1.      MS-DOS  Windows 95   
      FDISK.EXE       50 MB (35-40 
      Windows 95,    )   .  
          ,     
        Windows.
  2.      Windows 95   C:.
  3.        Linux.      
       Linux,    Slackware   LILO
     (. _2).         fdisk
       Linux,    Linux    ( 
      300 MB     root partition   swap).
  4.    Linux,          LILO, 
        LILO  boot sector  Linux  ,    MBR
     (master boot record).
  5.           FreeBSD.
            root   
     FreeBSD       1024. (  1024 
       528 MB      720 MB.) 
         ( 270 MB)    
     /  /usr  .        (
                 Windows,
         1)      
      /usr/src     (swap space).
  6.        fdisk  Windows 95,   
       :

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

                         Display Partition Information

       Current fixed disk drive: 1

       Partition  Status  Type  Volume_Label  Mbytes  System  Usage
       C: 1          A   PRI DOS                50    FAT**     7%
          2          A   Non-DOS (Linux)       300             43%

       Total disk space is  696 Mbytes (1 Mbyte = 1048576 bytes)

       Press Esc to continue

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

                         Display Partition Information

       Current fixed disk drive: 2

       Partition  Status  Type  Volume_Label  Mbytes  System  Usage
       D: 1          A   PRI DOS                420   FAT**    60%

       Total disk space is  696 Mbytes (1 Mbyte = 1048576 bytes)

       Press Esc to continue

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

     **        FAT16  FAT32  
       OEM SR2  Windows. . _2.
  7.   FreeBSD.        
        NORMAL  BIOS.   ,   
                (
          ,      
     Windows 95     Microsoft Diagnostics (MSD.EXE),
       BIOS).          
     hd0=1416,16,63,  1416       
     , 16        track  63  
       sectors   track  .
  8.       ,     Boot
     Easy   .          
     ,      .
  9.   ,  Boot Easy      
               DOS
     (Windows 95), Linux,  BSD (FreeBSD).

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

4  

            
     .  Windows 95   DOS  
     (primary partition)    .
 OS/2  .      , 
   .    ,    
       1024.
   Windows 95    BSD ,   
MBR        boot manager .  Boot Easy
      BOOTINST.EXE  
  \TOOLS  CD-ROM    ftp.   
         partition editor.
 ,     FreeBSD  bootable,  Boot
Manager,    W    ((W)rite)    MBR.
       Boot Easy    
   Windows 95  DOS.
    OS/2    FAT  HPFS ,  
  FFS (FreeBSD)  EXT2 (Linux). ,  Windows 95
    FAT  FAT32   (. _2). 
FreeBSD       ,   
     HPFS .  Linux   
  HPFS,       .  
  Linux  (2.x)       
Windows 95   VFAT ( VFAT     FAT,  
     ).  Linux    
     .   ;  .
-------------------------------------------------------------------------------

5 

(    ,      
 <jayrich@sysc.com>).
FreeBSD + Win95:    FreeBSD    Windows 95,  
    DOS     Boot Easy.   
  Windows 95.    Windows 95    FreeBSD,
  _4.         102
,           
 .         
    1024   ,    
invalid system disk    DOS (Windows 95)   FreeBSD  ,
    BIOS       > 1024 cylinder
support  NORMAL/LBA mode.  DOS      
 LBA (Logical Block Addressing)    .    
  LBA mode        DOS   
,     FreeBSD   DOS   
FBSDBOOT.EXE   CD (         
FreeBSD  ).
FreeBSD + OS/2 + Win95:   .  boot manager  OS/2 
       ,    
.
FreeBSD + Linux:     Boot Easy   
    .
FreeBSD + Linux + Win95: (. _3)
-------------------------------------------------------------------------------

6   

   HOWTO    Linux_HOW-TOs   
       .
  Linux+DOS+Win95+OS2_mini-HOWTO     
 OS/2 boot manager,    Linux+FreeBSD_mini-HOWTO   
 .         Linux-HOWTO.
  The_NTLDR_Hacking_Guide      
 Windows NT, '95   DOS     .
    How It Works  Hale Landis   
          
.         ftp://
fission.dt.wdc.com/pub/otherdocs/pc_systems/how_it_works/allhiw.zip.
,        FreeBSD   
,        (  
/usr/src/sys/i386/boot/biosboot/README.386BSD.
-------------------------------------------------------------------------------

7  

(   Randall Hopper, <rhh@ct.picker.com>)
            
           
           
       .  
  ,          
  ,          
.
-------------------------------------------------------------------------------

7.1  

          
   :   (cylinders),   (heads)  
 (sectors).        
   ,         
    .
        ,   
         - (
 -       track).  
         . 
     512 bytes    63  
 .           
.        bytes   
      :
()  ()  (63 /)  (512 bytes/)
 ,  1.6 GigWestern Digital AC31600 EIDE   ,
   :
(3148 cyl)  (16 heads)  (63 sectors/track)  (512 bytes/sect)
   1.624.670.208 bytes,   1.6 Gig.
         (  
,         ) 
  ATAID        . 
.       LBA  BIOS  (. _7.3),
         
   .      (.. 
MSD.EXE   fdisk  FreeBSD)       ,
    (     
 LBA ).     .
        .    --
 ,          --
          
 (  ,  512 bytes).     
   0  ,     1  .
       ,
     ,    (boot sectors),
 BIOS, .        .   Lycos,
 Yahoo, .  boot sector   master boot record.   
       How It Works  Hale Landis.
   _6       .
Ok,    .      .
-------------------------------------------------------------------------------

7.2   

     (. 0,  0,  1)   
  (Master Boot Record  MBR).     .
  4  (partitions),       
   .  FreeBSD    slices  
       partitions,      
.        ,  
.
    MBR   Partition ID,    
  //.  Partition ID     
 (   )   /  
.  _1        .
 1.  
 ____________________________________________________________________
|_(_)|___________________________________|
|01_____________________|__DOS12_(12-bit_FAT)__________|
|04_____________________|__DOS16_(16-bit_FAT)__________|
|05_____________________|__DOS____________________|
|06_____________________|__DOS___(>_32MB)|
|0A_____________________|OS/2________________________________________|
|83_____________________|Linux_(EXT2FS)______________________________|
|A5_____________________|FreeBSD,_NetBSD,_386BSD_(UFS)_______________|

           (..
   DOS).    ,   .
            
        .
   boot manager   ,    
    MBR        
      . ,   
 ,    Master Boot Sector    
     boot manager.  boot manager  
 MBR       ,     
  ,        
        .    
         
     .
            
 .      MBR. ,   MBR  
          
   BIOS.    IDE     IDE 
(.       ).    
   SCSI .    IDE  SCSI  , 
  IDE       BIOS.   boot manager
    MBR   ,   .
-------------------------------------------------------------------------------

7.3    

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

7.3.1      1024     LBA BIOS

       '    BIOS
(      ,  BIOS    ,
   chip      ,  
    ).        
     BIOS.
      BIOS         
   (INT 13H,  2)  10 bits   
, 8 bits      6 bits    . 
       (..  boot managers 
  MBR   ,    loaders  
      ).    
   :

*    = 1024
*    = 256 heads
*   / = 64 ( 63,   0  
  )

     ,      
   .  ,  ,    
   1024 .     BIOS  
         .  
 ( boot manager   OS loader      
         )   
      1024. ,       
   16 ,  :
1024 /  16 /  63 /(-)  512 bytes/
       528 MB     
.
      BIOS LBA (Logical Block Addressing--
 )    .   LBA 
     BIOS API      
   1024     BIOS 
  .        
,      BIOS    ,  
       .   ,
           
         
     ,       
       (1024 , 256 ).
  BIOS LBA,         
(,    8 Gigabytes).   LBA BIOS,   
 FreeBSD          
      1024.
     1.6 Gig Western Digital    ,
    :
(3148 , 16 , 63 /, 512 bytes/)
,   LBA  BIOS   :
(787 , 64 , 63 /, 512 bytes/)
     ,      
       BIOS API (,   
Linux  FreeBSD      ,      
1024.        ,  
 LBA  BIOS).
-------------------------------------------------------------------------------

7.3.2 Boot Managers   

           boot
manager        boot manager.   
             
       .
     _7.2    MBR (   MBR),
  ,    ,    
         boot manager.  ,
 boot managers         
  (MBR.  0,  0,  1)    
.       
     MBR,      0 
 0,       --.
    .    (     
FreeBSD)           MBR
  0,  0,   2  .  ,   
sysinstall    FreeBSD       
      ,      
  FreeBSD (      ). , 
    boot manager ,      
   MBR,         . 
  FreeBSD,      disklabel, 
      .
        (    
       boot manager  )
          
   .   ,      
 0,  0,  2    nbsp;0,  1,  1.
,          DOS,  DOS
     (    boot manager   
 ).      DOS     
     .  '     
   DOS  1 MB,       
drive letter   DOS       
 .
,   boot managers   Master Boot Sector
    / :

* OS-BS 1.35
* Boot Easy
* LILO

  boot managers        Master
Boot Sector:

* OS-BS 2.0 Beta 8 (sectors 2-5)
* OS/2's boot manager

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

7.3.3        ;

 ,    boot managers,     MBR
            .
  ,         
   boot manager.
   bootable DOS    ,   
    DOS   :

  A:\> FDISK /MBR

    ,     DOS   .
      DOS (    DOS)    
. ,        boot
manager     .
-------------------------------------------------------------------------------
  ,   ,     ftp://ftp.FreeBSD.org/
                               pub/FreeBSD/doc/.
          FreeBSD,     
                   <questions@FreeBSD.org>.
             ,  e-mail 
                              <doc@FreeBSD.org>.
