home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / jazdrive.txt < prev    next >
Text File  |  1997-07-07  |  15KB  |  400 lines

  1.  
  2.   JAZ-drive mini-HOWTO
  3.   Bob Willmot, bwillmot@cnct.com
  4.   v1.6, 04 June 1997
  5.  
  6.     
  7.   This HOWTO covers the configuration and use of the Iomega Jaz drive
  8.   under Linux and software tools available for the drive.
  9.  
  10.   1.  Introduction
  11.  
  12.   The Iomega Jaz drive is a removable media disk drive whose disks
  13.   have a capacity of 1021 megabytes. It is currently available in internal
  14.   and external SCSI configurations.  Iomega plans to release an internal 
  15.   IDE version.
  16.  
  17.   This document describes how to use the Jaz drive with Linux.  Since
  18.   this is a SCSI device, it is important for you to read the Drew Eckhardt's
  19.   SCSI HOWTO as well.  
  20.   http://sunsite.unc.edu/pub/Linux/docs/HOWTO/SCSI-HOWTO
  21.  
  22.   I'd like to thank the following people for their contributions and info
  23.   they've provived.
  24.  
  25.     * Grant Gunther, grant@torque.net
  26.     * Tom Poindexter, tpoindex@nyx.net
  27.     * Todd Woods, woods@cs.uiowa.edu
  28.     * Richard B. Melrose, rbm@math.mit.edu
  29.     * Phil Howard, phil@charon.milepost.com
  30.         * Rick Niess, rniess@ocean.st.usm.edu
  31.  
  32.   If you have any comments/suggestions/corrections please send them to:
  33.   Bob Willmot, bwillmot@cnct.com
  34.  
  35.  
  36.   2.  The Jaz disks
  37.  
  38.   The Jaz disks (cartridges) resemble a stack of three 3.5" floppy disks
  39.   that hold 1GB of data.  
  40.  
  41.   The drive has a motorized mechanism that can eject the disk via
  42.   a pushbutton on the from of the drive or through software (see 
  43.   below on info about the jaztools Linux software)
  44.  
  45.  
  46.   2.1.  The Jaz Jet host adapter
  47.  
  48.   Iomega markets a SCSI host adapter under the name Jaz Jet.  
  49.  
  50.   Aparently there are currently two versions of this controller available,
  51.   based on two difference SCSI chipsets.
  52.  
  53.   One is based on the Adaptec 7800 family of adapters, and is compatible
  54.   with the 2930/2940 host adapters. Linux 2.0 supports this adapter with 
  55.   the aic7xxx driver. (this driver was introduced in the 1.3.? version of 
  56.   the kernel).
  57.  
  58.   The other adapter is based on the Advanced Systems chipset.  At boot time
  59.   the board gives a message like
  60.     Jaz Jet PCI SCSI adapter Copyright Advanced Systems 1996    
  61.   Compile the kernel with the CONFIG_SCSI_ADVANSYS variable set. 
  62.  
  63.  
  64.   3.  Configuring a kernel for the Jaz drive
  65.  
  66.   To use the Jaz drive with Linux, you must have a kernel configured
  67.   for you SCSI adapter.
  68.  
  69.   Info on building the kernel can be found in the /usr/src/linux/README
  70.   file, or in /usr/src/linux/Documentation/ directory for the 2.x kernels.
  71.  
  72.   Also check out Brian Ward's Kernel-HOWTO
  73.   http://sunsite.unc.edu/pub/Linux/docs/HOWTO/Kernel-HOWTO
  74.   
  75.  
  76.   4.  Identifying the drive at boot time
  77.  
  78.   When your system boots it should display information about your adapter,
  79.   and any disks that arre attaced to the drive.
  80.  
  81.   Boot messages will vary depending on your SCSI adapter and are logged
  82.   to the /var/log/messages (or /var/adm/messages) file.  You can also
  83.   'replay' these messages from the command prompt with the dmesg command.
  84.  
  85.   Here's the kernel booting output from a 2.0.10 kernel with an 
  86.   Adaptec 2940 controller:
  87.  
  88.     aic7xxx: BurstLen = 8 DWDs, Latency Timer = 64 PCLKS
  89.     aic7xxx: AHA-2940 Ultra Rev B.
  90.     aic7xxx: devconfig = 0x580.
  91.     aic7xxx: Reading SEEPROM...done.
  92.     aic7xxx: Extended translation enabled.
  93.     aic7xxx: Using 16 SCB's after checking for SCB memory.
  94.     AHA-2940 Ultra (PCI-bus):
  95.         irq 11
  96.         bus release time 40 bclks
  97.         data fifo threshold 100%
  98.         SCSI CHANNEL A:
  99.             scsi id 7
  100.             scsi selection timeout 256 ms
  101.             scsi bus reset at power-on enabled
  102.             scsi bus parity enabled
  103.             scsi bus termination (low byte) enabled
  104.     aic7xxx: Downloading sequencer code...done.
  105.     aic7xxx: Resetting the SCSI bus...done.
  106.     scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 3.2/3.1/3.0
  107.     scsi : 1 host.
  108.     aic7xxx: Scanning channel A for devices.
  109.     aic7xxx: Target 4, channel A, now synchronous at 10.0MHz, offset(0xf).
  110.       Vendor: iomega    Model: jaz 1GB           Rev: G.60
  111.       Type:   Direct-Access                      ANSI SCSI revision: 02
  112.     Detected scsi removable disk sda at scsi0, channel 0, id 4, lun 0
  113.     scsi : detected 1 SCSI disk total.
  114.     SCSI device sda: hdwr sector= 512 bytes. Sectors= 2091050 [1021 MB] [1.0 GB]
  115.     sda: Write Protect is off
  116.  
  117.  
  118.   In the above log note the raw scsi device name (sda,sdb, etc).  
  119.   You'll need to use this to access the disk later.
  120.  
  121.   If these lines do not appear, then something is misconfigured in your
  122.   hardware or in the kernel.
  123.  
  124.   If the scsi0: line does not appear, then you have not configured your
  125.   host adapter and its driver correctly.  Some drivers will give you a
  126.   hint about what is wrong.   If your drive is not detected, you
  127.   probably have a cable problem.  If a drive name is not assigned, you
  128.   probably forgot to include SCSI disk support when you built the
  129.   kernel.
  130.  
  131.   Check the README files in drivers/scsi and the SCSI HOWTO for other
  132.   debugging hints.
  133.  
  134.   4.2.  Fdisk, mke2fs, mount, etc.
  135.  
  136.   Once you know the drive name for your Jaz drive, you are set.  You can
  137.   manipulate the drive with the normal Linux disk management commands,
  138.   fdisk, mke2fs, mount etc.  
  139.  
  140.   Refer to the manual pages for these programs.
  141.  
  142.  
  143.   4.2.1.  An existing DOS formatted disk
  144.  
  145.   Disks factory formatted from Iomega are partitioned with a single 
  146.   partition (for some unknown reason they use the 4th partition).
  147.  
  148.   You can mount this disk (assuming your jaz disk is the raw SCSI device
  149.   sda) with the commands 
  150.  
  151.        mkdir /jaz
  152.        mount -t msdos /dev/sda4 /jaz
  153.  
  154.   Or if you are using the 2.0 kernels and have compiled the kernel with
  155.   support for the Win95 VFAT support you can mount it with
  156.  
  157.        mkdir /jaz
  158.        mount -t vfat /dev/sda4 /jaz
  159.  
  160.   (this will allow you to read/write long filenames)
  161.  
  162.   Files from the disk will appear in /jaz. While the disk is
  163.   mounted, you will not be able to eject it.
  164.  
  165.   To unmount the drive you can issue the command:
  166.  
  167.        umount /dev/sda4
  168.  
  169.   Once you've made the /jaz mount point - you don't need to do it again,
  170.   (also make sure your not in the /jaz dir when you try to umount the 
  171.   drive)
  172.  
  173.  
  174.   4.2.2.  Re-format as a native Linux disk
  175.  
  176.   If you want to erase a Jaz disk and make a Linux native file system on
  177.   it.  you should use fdisk on the entire disk:
  178.  
  179.        fdisk /dev/sda
  180.  
  181.   and delete any existing partitions (with the d command).  Then create
  182.   a new partition with the n command, make it primary partition number
  183.   1, use w to write the partition table to disk, and quit with q.
  184.  
  185.   Format the partition
  186.  
  187.        mke2fs /dev/sda1
  188.  
  189.   (The 1 is the number that you gave this partition in fdisk).  Now you
  190.   can mount the disk:
  191.  
  192.        mount -t ext2 /dev/sda1 /jaz
  193.  
  194.   (re-using that mount point we created before).
  195.  
  196.   4.2.3.  The Jaz Tools disk
  197.  
  198.   There is some extra work to be done if you want to use the disk that
  199.   comes with the Jaz drive.  As shipped, the software controlled write
  200.   protection is enabled.  
  201.  
  202.   There are two options here: you can unlock the disk under DOS or
  203.   Windows with the "reclaime.exe" program (or by installing the tools
  204.   from the setup program) or you can unlock the disk with my jaztools
  205.   program (see section 5) with the command 
  206.  
  207.     jaztool /dev/sda rw
  208.  
  209.   (adjust the /dev/sda to your appropriate SCSI device) and when prompted
  210.   for the password enter
  211.  
  212.     APlaceForYourStuff
  213.  
  214.   5.  jaztools
  215.  
  216.   A native Linux program to support some of Iomega's special features 
  217.   (including software controlled ejection and write protection)
  218.   is available at 
  219.     
  220.     http://www.cnct.com/~bwillmot/jaztool/
  221.  
  222.   There should be a new version of jaztool available shortly that will
  223.   contain a GUI interface and support drive scanning and automated
  224.   mounting and unmounting of disks.
  225.  
  226.  
  227.   6.  Frequently asked questions
  228.  
  229.  
  230.   6.1.  I can only mount the Jaz tools disk read-only
  231.  
  232.   The tools disk is shipped in a special password-protected read-only 
  233.   mode.  To unlock the disk run the "reclaim.exe" program under 
  234.   DOS or Windows or use the native linix jaztools program (see section 5) 
  235.   with the command 
  236.  
  237.     jaztool /dev/sda rw
  238.  
  239.   (adjust the /dev/sda to your appropriate SCSI device) and when prompted
  240.   for the password enter
  241.  
  242.     APlaceForYourStuff
  243.   
  244.  
  245.   6.2.  The Jaz loc