:






   scsiscan             -    ,    SCSI
                               
                           (SCSI-id)

              Motorola
922           
          /sbin/auto-boot,
       ,      
.





         Sun  SPARC   SCSI-:
  BOOT-prom  (  Stop+A)  
 probe-scsi

  ok probe-scsi


             ,  
"reconfiguration boot":  BOOT-

  ok boot -r



     IBM   PC/Linux          
 . ,    
SCSI   (if  exists)      .      
  ,  

    dmesg

             

 echo 'scsi add-single-device 1 0 5 0' > /proc/scsi/scsi
    scsi1  SCSI  0,
       ID 5  LUN 0.



 boot-,   SEA    (search)
      ioscan -funC disk



 dsfmgr - Device Special Files manager
 hwmgr  - Hardware manager
 drdmgr - Device Request Dispatcher manager

hwmgr -scan scsi
hwmgr -view devices
hwmgr -view devices -cluster
hwmgr -view hierarchy -member membername
hwmgr -show scsi




             , , (  
)      .

                     
   .
     Seagate, ,    
http://www.seagate.com



        .




          ""  
  /etc/dskdefs/.    ""  ,
    ,  ,  1Gb Seagate-ST31 - "msea11200".
:   /etc/scsifmt.info

      ddefs       
  .          "Template"     
  ""  .    ,   
,    ,   ,  .

      ddefs -n filename

 : ,  , ...
  (   ):

 Root offset: 648              (.. VTOC  648 )
 Slice count: 16               ( 16   )
 Interleave:  1                (  "")
 Precomp cylinder: {} (   )
 Bad spots:   100             (   bad-)
 Controller attribute: 850     (  , ,  
 Attribute:   10                    )
 Word attribute: 10

      ddefs  "w"   "q"    .
    ddefs   "help"

          /etc/scsifmt.info    
    .        
,    scsiscan. , :

scsiscan
SEAGATE  ST51080N  m187_0c0d1  ...

cat >> /etc/scsifmt.info
"SEAGATE"       "ST51080N"      filename   7    "1GB SCSI"
^D



              Sun',         
     /etc/format.dat



      ""    "
".           
.  , , :    
   /dev   .

         SVR4     :

  /dev/rdsk/*  -     
  /dev/dsk/*   -     
  /dev/rmt/*   -     
  /dev/term/*  -     (dial-in)
  /dev/cua/*   -     (dial-out)
  /dev/pts/*   -  


    controller_cXdYsuffix           :
             controller -  
                X       -  
                Y       -   
                suffix  -     , :
                              

          (  SCSI )
             Motorola 922

/dev/dsk/m197_c0d0s1    SCSI  m197  0,
                        SCSI  0
                          (slice) 1
/dev/dsk/m328_c0d0s0    SCSI  m328  0,
        . . .           SCSI  0
                          (slice) 0

          ()

/dev/rdsk/m328_c0d0s7          
/dev/rdsk/m197_c0d1s7   , 

         ()  

/dev/rdsk/m197_c0d0s1
/dev/rdsk/m197_c0d1s2

         .

/dev/rmt/ctape1              
/dev/rmt/m197_c0d4

        CD-ROM.

/dev/rdsk/m197_c0d6s7    - "" ()
/dev/dsk/m197_c0d6s0     -   CD-ROM   
                            ""  ufs
/dev/dsk/m197_c0d6s7     -  CD-ROM    
                             iso9660



          ()   SPARCstation:
     8    0  8.

           SCSI :

/dev/dsk/c0t2d0s3       Controller  0  ( 0)
                        Taget       2  (SCSI ID)
                        Disk        0  (LUN Logical Unit Number
                                        -  0)
                        Slice       3  ( )

          ()

/dev/rdsk/c0t3d0s2          -
                        2
                           SPARC-
                       station  3- SCSI .

        CD-ROM ()

/dev/dsk/c0t6d0s2      CD    6- SCSI .
                           -  .

         .

/dev/rmt/0            1-  ( 150)
/dev/rmt/1            2-  ( DAT 4)

             Sun'.
  "reconfiguration boot".  boot prom'a:

   ok boot -r



          4 primary   1  4. 
    extended -        
  4   5  8

          ()

/dev/hda         IDE  
/dev/hdb         IDE  
/dev/hdc        IDE hd ( CD) - master   
/dev/hdc        IDE hd ( CD) - slave    
/dev/sda         SCSI   ...

/dev/sda1, /dev/sda2, ... ,8    SCSI 
/dev/hdb1, /dev/hdb2, ... ,8    IDE 

        CD-ROM

/dev/sbpcd,/dev/sonycd, ...
/dev/hdc  - IDE CD
            /dev/cdrom

         .

/dev/rmt1

        .

/dev/fd0             -  A:
/dev/fd1             -  B:



          ()

/dev/rdsk/c0t6d0        (raw)
/dev/dsk/c0t6d0        

    HP-UX ,   LVM -   
 

/dev/vg00/lvol12     char logical volume
/dev/vg00/rlvol12    block logical volume

         
/dev/rmt/0m            
/dev/rmt/0mn           




       SCSI             Unix
 .     bad block'
               -       
 .



        - -      scsifmt.
            (
/dev/rdsk, slice  7). :

   scsifmt /dev/rdsk/m197_c0d1s7
   scsifmt /dev/rdsk/m328_c1d0s7

     :       ?   20 
 . ?   Ctrl-C.    
ENTER   Ctrl-C ?    30  .  
          "  Unix".  
  scsifmt          
  ,     .

       scsifmt    dinit  
,        .          
 dinit .

  ( , 
-,  )   dinit.

dinit [-f] [-q] [-b]   filename   /dev/rdsk/m187_c0d1s7
      -X 9  debug-level
      -f    
      -q    "" 
      -b      
      -v {0-4} write 

man dinit       



         SunOS  . ,
       .    
  .

     prtvtoc /dev/rdsk/c0t0d0s2



      

format /dev/rdsk/c0t6d0





       partiotion table  Linux   fdisk.
    -      ,    
.

     fdisk /dev/hda   #  /dev/sdb ...

     mke2fs /dev/hda1
     #     ext2   

       :

     fdisk -p /dev/hda   #  /dev/sdb ...




              Sun',         
    /etc/format.dat

     -       format,  
      
     .

     format

Boot-       
 boot-.    installboot  dd

     installboot /dev/rdsk/c0t3d0s0
     dd if=/usr/lib/fs/ufs/bootblk bs=1k skip=1 of=/dev/dsk/c0t3d0s0



     newfs /dev/dsk/c0t0d0s7

        SUN:   .

     ufs        Unix File System
                      
     hsfs       High Sierra, ISO 9660, Rock Rige Extension
                   CD-ROM'
     pcfs       MS-DOS FAT   3"

     nfs        Network File System
                    
     rfs        Remote File System
                  System V -    FS

     tmpfs           
                  swap-
     lofs       Loop Back FS
                 mount -F nfs localhost:/ /mnt

     procfs     Process FS - "    "
     fifofs     FIFO FS
     fdfs       File Descriptors FS
     namefs



       Disk Slice Editorom dse.    
 15 slice' ().     0  6, 
8    f.    7  ,    
.

  dse   __       #       :
  dse /dev/rdsk/m197_c0d0s7

DSE   ,    VI
        :

   :q!           
   :wq        
 h,j,k,l       (     -
            )
   C           
   dw       
   dd       
   cw        

:          
648 ( ),         
    VTOC (Volume Table Of Contents).

                  
.  SVR4/88  3   - ufs,  s5,  bfs.
 "UFS".

        Motorola:   .

     ufs        Unix File System
                      
     s5         System V.    , -
                    SV 3.1.  ,
                      
     bfs        Boot File System   /stand
		 " "  .  
                    boot  unix
     cdfs       CD File System
                  CD ROM'  ISO 9660

             dse    
 mkfs     -    
          ,    ,
   mkfs,    .

         dse    VTOC,  
    fmthard.     ,  
     .

 fmthard -S file_with_vtoc_description /dev/rmt/m187_c0d1s7

                  
 dse.

       :

prtvtoc /dev/rdsk/m187_c0d0s7





  fstyp __

           (..  ,
 /stand,  /boot      )    
  Unix'  "ufs" - Unix File System.  
  BSD-      ,
      (  256  ),  
,  ""     inod'   (   
 ,     )



#     s5  4-  ,  -
#  200  !!!    512- 

  mkfs -F s5   /dev/rdsk/m328_c2d0s4  400000


#     ufs   5-  

  mkfs -F ufs  -o bsize=4096,nsect=36,ntrack=9,free=1 \
  /dev/rdsk/m328_c2d0s5



 mke2fs /dev/hda9



 newfs -F hfs /dev/rvol12



HP-UX     :
 HFS  (High  Perfomance)  - AKA   ufs,
   JFS (Journal) AKA Verytas vxfs

     0.  vxfs -    ,      
 .                
  ,  fs   __   
.    " ",      
.

:
     1.   vxfs              
   .   
   fs.          
 .          "close
file"  -         sync inod'  , 
  ufs.
     2.  vxfs        
 -         
.
     3. inod  vxfs-   256  (  128),   (<=96)
      inod'
     4.    vxfs   - ,  
   .
     5.      vxfs     
inod',   -   vxfs    .

   .

:

     1.   vxfs     
     2.       vxfs, 
 /stand   HFS'

  Live JFS (AKA OnLine VxFS) Only:
         vxfs,  ,  
  ,               vxfs   
 :
     6.   fs  .
     7.   fs (- speed disk)  .
     8.   Snapshot   ()   fs.        
-  - ""    . :
            
.    ""  ,       -
      ,   ,  
      .

 ,   vxfs   ( 2-4 ) 
  cd /hfs  ;  time tar xf /tmp/big.tar
  cd /vxfs ;  time tar xf /tmp/big.tar

  time cat bigfile bigfile bigfile bigfile bigfile > /vxfs/big
  time cat bigfile bigfile bigfile bigfile bigfile > /hfs/big

     :      vxfs ,   -
 ,      ,    
   .
     HFS          "readonly"  ,
 /usr -   ,  hfs .



 mkisofs -R -o image directory
     cd-r   cdrecord




    ""  ,    ,
Unix     mount.  Mount  ""  
     .    
" " - ,   ""  
 . :

    mount -F ufs   /dev/dsk/m197_c0d0s8    /home1

 ,      ,
 

    df

    ,  swap  -
        ,  
         /etc/vfstab . 
      .



  CDROM'      "ufs" - ..
  "",   cdrom,      
  ,     ,  "read only"

  mount -F ufs -r  /dev/dsk/m197_c0d6s0    /cdrom

    "game'"   MSDOS',  , CDROM
  iso9660,     :

  mount -F cdfs -o ro  /dev/dsk/m197_c0d6s7    /cdrom

(   -r   -o ro  - )



  umount /home1



Sun:          tunefs
Linux:        tune2fs
HP-UX:        fsadm



         :    
    (-  retrying'a),        
   "Bad media", "Read failure"... " 
  -".
       bad- -   "".



       SCSI      bad-. 
 -,    (      )  ,
    ,  ,    ,
    .



             -  "Bad
blocks"   "Disks and Tapes Managment"

  .  man    ddefs, mvme328, scsi1x7, dinit, ...

            ddefs  
      "Bad spots"  . 
-      dinit

dinit -n dskdeffilename /dev/rdsk/m187_c0d107
      -n              bad-   

dinit -t bad-list dskdeffilename /dev/rdsk/m187_c0d107
      -t bad-list       bad-

         -?  dinit  
      -v 1   - verify with pattern



     Linux'  fsck      "-c"      
  bad- (    "bad"  inode)

      # -y yes   ,  -f force checking, -c bad-blocks
      e2fsck -c -y -f /dev/hda3





             
Motorola 922        gold.    
 ,       sysadm.



     Sundiag   -         
  Sun



           .      MSDOS   
  ,  .





    linux-ntfs.sourceforge.org  ntfsprogs

ntfsresize -i /dev/hda9 #    

#      15000 
ntfsresize -n -s 15000M /dev/hda9

umount /dev/hda9

ntfsresize -s 15000M /dev/hda9 #   

 fdisk /dev/hda
,     /dev/hda9  15000M
partition id 7 (NTFS)

     NTFS.



 smartctl -a /dev/hda


Last-modified: Mon, 20 Mar 2006 05:20:23 GMT
: