home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / DOC / HOWTO / MINI / JAZ_DRIV < prev    next >
Encoding:
Text File  |  1996-08-18  |  9.2 KB  |  277 lines

  1.  
  2.   JAZ-drive mini-HOWTO
  3.   Bob Willmot, bwillmot@cnct.com
  4.   v1.3, 05 August 1996
  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.  
  29.   If you have any comments/suggestions/corrections please send them to:
  30.   Bob Willmot, bwillmot@cnct.com
  31.  
  32.  
  33.   2.  The Jaz disks
  34.  
  35.   The Jaz disks (cartridges) resemble a stack of three 3.5" floppy disks
  36.   that hold 1GB of data.
  37.  
  38.   The drive has a motorized mechanism that can eject the disk via
  39.   a pushbutton on the from of the drive or through software (see
  40.   below on info about the jaztools Linux software)
  41.  
  42.  
  43.   2.1.  The Jaz Jet host adapter
  44.  
  45.   Iomega markets a SCSI host adapter under the name Jaz Jet.
  46.  
  47.   Aparently there are currently two versions of this controller available,
  48.   based on two difference SCSI chipsets.
  49.  
  50.   One is based on the Adaptec 7800 family of adapters, and is compatible
  51.   with the 2930/2940 host adapters. Linux 2.0 supports this adapter with
  52.   the aic7xxx driver. (this driver was introduced in the 1.3.? version of
  53.   the kernel).
  54.  
  55.   The other adapter is based on the Advanced Systems chipset.  At boot time
  56.   the board gives a message like
  57.         Jaz Jet PCI SCSI adapter Copyright Advanced Systems 1996
  58.   Compile the kernel with the CONFIG_SCSI_ADVANSYS variable set.
  59.  
  60.  
  61.   3.  Configuring a kernel for the Jaz drive
  62.  
  63.   To use the Jaz drive with Linux, you must have a kernel configured
  64.   for you SCSI adapter.
  65.  
  66.   Info on building the kernel can be found in the /usr/src/linux/README
  67.   file, or in /usr/src/linux/Documentation/ directory for the 2.x kernels.
  68.  
  69.   Also check out Brian Ward's Kernel-HOWTO
  70.   http://sunsite.unc.edu/pub/Linux/docs/HOWTO/Kernel-HOWTO
  71.  
  72.  
  73.   4.  Identifying the drive at boot time
  74.  
  75.   When your system boots it should display information about your adapter,
  76.   and any disks that arre attaced to the drive.
  77.  
  78.   Boot messages will vary depending on your SCSI adapter and are logged
  79.   to the /var/log/messages (or /var/adm/messages) file.  You can also
  80.   'replay' these messages from the command prompt with the dmesg command.
  81.  
  82.   Here's the kernel booting output from a 2.0.10 kernel with an
  83.   Adaptec 2940 controller:
  84.  
  85.     aic7xxx: BurstLen = 8 DWDs, Latency Timer = 64 PCLKS
  86.     aic7xxx: AHA-2940 Ultra Rev B.
  87.     aic7xxx: devconfig = 0x580.
  88.     aic7xxx: Reading SEEPROM...done.
  89.     aic7xxx: Extended translation enabled.
  90.     aic7xxx: Using 16 SCB's after checking for SCB memory.
  91.     AHA-2940 Ultra (PCI-bus):
  92.         irq 11
  93.         bus release time 40 bclks
  94.         data fifo threshold 100%
  95.         SCSI CHANNEL A:
  96.             scsi id 7
  97.             scsi selection timeout 256 ms
  98.             scsi bus reset at power-on enabled
  99.             scsi bus parity enabled
  100.             scsi bus termination (low byte) enabled
  101.     aic7xxx: Downloading sequencer code...done.
  102.     aic7xxx: Resetting the SCSI bus...done.
  103.     scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 3.2/3.1/3.0
  104.     scsi : 1 host.
  105.     aic7xxx: Scanning channel A for devices.
  106.     aic7xxx: Target 4, channel A, now synchronous at 10.0MHz, offset(0xf).
  107.       Vendor: iomega    Model: jaz 1GB           Rev: G.60
  108.       Type:   Direct-Access                      ANSI SCSI revision: 02
  109.     Detected scsi removable disk sda at scsi0, channel 0, id 4, lun 0
  110.     scsi : detected 1 SCSI disk total.
  111.     SCSI device sda: hdwr sector= 512 bytes. Sectors= 2091050 [1021 MB] [1.0 GB
  112. ]
  113.     sda: Write Protect is off
  114.  
  115.  
  116.   In the above log note the raw scsi device name (sda,sdb, etc).
  117.   You'll need to use this to access the disk later.
  118.  
  119.   If these lines do not appear, then something is misconfigured in your
  120.   hardware or in the kernel.
  121.  
  122.   If the scsi0: line does not appear, then you have not configured your
  123.   host adapter and its driver correctly.  Some drivers will give you a
  124.   hint about what is wrong.   If your drive is not detected, you
  125.   probably have a cable problem.  If a drive name is not assigned, you
  126.   probably forgot to include SCSI disk support when you built the
  127.   kernel.
  128.  
  129.   Check the README files in drivers/scsi and the SCSI HOWTO for other
  130.   debugging hints.
  131.  
  132.   4.2.  Fdisk, mke2fs, mount, etc.
  133.  
  134.   Once you know the drive name for your Jaz drive, you are set.  You can
  135.   manipulate the drive with the normal Linux disk management commands,
  136.   fdisk, mke2fs, mount etc.
  137.  
  138.   Refer to the manual pages for these programs.
  139.  
  140.  
  141.   4.2.1.  An existing DOS formatted disk
  142.  
  143.   Disks factory formatted from Iomega are partitioned with a single
  144.   partition (for some unknown reason they use the 4th partition).
  145.  
  146.   You can mount this disk (assuming your jaz disk is the raw SCSI device
  147.   sda) with the commands
  148.  
  149.        mkdir /jaz
  150.        mount -t msdos /dev/sda4 /jaz
  151.  
  152.   Or if you are using the 2.0 kernels and have compiled the kernel with
  153.   support for the Win95 VFAT support you can mount it with
  154.  
  155.        mkdir /jaz
  156.        mount -t vfat /dev/sda4 /jaz
  157.  
  158.   (this will allow you to read/write long filenames)
  159.  
  160.   Files from the disk will appear in /jaz. While the disk is
  161.   mounted, you will not be able to eject it.
  162.  
  163.   To unmount the drive you can issue the command:
  164.  
  165.        umount /dev/sda4
  166.  
  167.   Once you've made the /jaz mount point - you don't need to do it again,
  168.   (also make sure your not in the /jaz dir when you try to umount the
  169.   drive)
  170.  
  171.  
  172.   4.2.2.  Re-format as a native Linux disk
  173.  
  174.   If you want to erase a Jaz disk and make a Linux native file system on
  175.   it.  you should use fdisk on the entire disk:
  176.  
  177.        fdisk /dev/sda
  178.  
  179.   and delete any existing partitions (with the d command).  Then create
  180.   a new partition with the n command, make it primary partition number
  181.   1, use w to write the partition table to disk, and quit with q.
  182.  
  183.   Format the partition
  184.  
  185.        mke2fs /dev/sda1
  186.  
  187.   (The 1 is the number that you gave this partition in fdisk).  Now you
  188.   can mount the disk:
  189.  
  190.        mount -t ext2 /dev/sda1 /jaz
  191.  
  192.   (re-using that mount point we created before).
  193.  
  194.   4.2.3.  The Jaz Tools disk
  195.  
  196.   There is some extra work to be done if you want to use the disk that
  197.   comes with the Jaz drive.  As shipped, the software controlled write
  198.   protection is enabled.  Most people have unlocked the disk under DOS
  199.   before ever trying to use it with Linux.  Linux cannot access a locked
  200.   disk, and it must be unlocked with Iomega's tools.
  201.  
  202.   5.  jaztools
  203.  
  204.   A native Linux program to support some of Iomega's special features
  205.   (including software controlled ejection and write protection)
  206.   is available at
  207.         
  208.         http://www.cnct.com/~bwillmot/jaztool/
  209.  
  210.   There should be a new version of jaztool available shortly that will
  211.   contain a GUI interface and support drive scanning and automated
  212.   mounting and unmounting of disks.
  213.  
  214.  
  215.   6.  Frequently asked questions
  216.  
  217.  
  218.   6.1.  The Jaz locks my system after it spins down ?
  219.  
  220.   People have reported problems with 1.2 (and early 1.3) kernels that
  221.   when the Jaz disk spun down it would lock their system, or just
  222.   produce a mess of SCSI error messages.
  223.  
  224.   I have not had any problems with the 2.0.x kernels and spindown of the
  225.   Jaz.  If you are having problems try the latest 2.0.x kernel available
  226.   from http://sunsite.unc.edu/pub/Linux/kernel/v2.0/
  227.         
  228.  
  229.   6.2.  Can I boot from the Jaz drive ?
  230.  
  231.   This depends on what you are using for a host adapter.  If your host
  232.   adapter has a BIOS ROM with code that can boot from target 5 or 6,
  233.   then yes, you can boot from the Jaz drive.
  234.  
  235.   6.3.  Why does Iomega use partition number 4 ?
  236.  
  237.   I have no idea?  Any clues?
  238.  
  239.  
  240.   6.4.  How can I have the disk mounted at boot time ?
  241.  
  242.   All you need to do is to add a line to your /etc/fstab file.  For
  243.   instance, if you will always have a DOS disk in the drive when you
  244.   boot, you could put
  245.  
  246.        /dev/sda4   /jaz  msdos  defaults  0 0
  247.  
  248.   in the fstab.  Depending on your distribution, the initialization
  249.   scripts might try to run fsck on partitions listed in your fstab.  Be
  250.   aware that this could cause problems if you forget to put the disk in
  251.   the drive when you boot, or have the wrong disk there.
  252.  
  253.   6.5.  What happens if there is no disk inserted when I boot ?
  254.  
  255.   The kernel will try to read the partition table, but the operation
  256.   will (eventually) time out.
  257.  
  258.   When you change disks, it is a good idea always to use fsck to
  259.   check the partition structure on the new disk.
  260.  
  261.   The BIOS on some SCSI host adapters will attempt to read the partition
  262.   table on your disk during the system boot.  If you cannot disable this
  263.   check, you may be forced always to boot with a disk in the drive.
  264.  
  265.  
  266.   7.  Getting more current information
  267.  
  268.   The most up-to-date version of this mini-HOWTO can be found at:
  269.  
  270.        http://www.cnct.com/~bwillmot/jaztool/
  271.  
  272.   Iomega's web pages are at
  273.  
  274.        http://www.iomega.com/
  275.  
  276.  
  277.