Q: How do I mount my Jaz drive?

A: Given that you have only one SCSI hard drive, the Jaz drive should show up as sdb. Type "mount", and check you don't have any from sdb mounted, just to be sure.

If you have more than one drive SCSI hard drive, take a look at the file /pro/scsi/scsi. It should look like this:

Attached devices:

Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: QUANTUM Model:
XP34550W Rev: LXY4
Type: ANSI SCSI revision: 02

Host: scsi0
Channel: 01 Id: 01 Lun: 00
Vendor: QUANTUM Model: XP34550W Rev: LXY4
Type: ANSI SCSI revision: 02

Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: Iomega Model: jaz 1GB Rev: J.86
Type: Direct-Access ANSI SCSI revision: 02

Linux assigns device type by the channel and ID numbers. The lowest SCSI hard drive on channel 0 is sda, the next is sdb, and so on. Once channel 0 is done Linux starts on the lowerest from channel 1, and so on. SCSI CD-ROMs and tapes are assign to scd(0-7) and st(0-7), so they won't count for this purpose.

An easier way would be to insert the Jaz Tools disk and do a "fdisk -l", and for a entry like this:

Disk /dev/sdb: 64 heads, 32 sectors, 1021 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sdb4 1 241 1047626+ 83 DOS 16-bit >=32M

This would mean /dev/sdb is your Jaz drive. Note: The Tools disk is formatted on partition four, and formatted as DOS.

Now that you've found your Jaz disk, there are three basic ways you can use it to store data and backup your system:

1) You can treat the Jaz disk as a tape drive, if you wish:

tar -czpf /dev/sdb {what ever}

(Note: The z option is not needed, if the size of what you're backup is smaller than the Jaz disk.)

This would create a tar archive directly to the Jaz disk. You could then use the following command to extract the tar archive:

tar -xzpf /dev/sdb

2) You could mount the Jaz disk like any disk, and tar to a file:

(Note: For reasons having to do with Macs, most Jaz disks are partitioned so the 4th primary partition takes up the entire disk.)

fdisk -l (check partitioning, you can use "fdisk /dev/sdb" to alter the partitioning if you wish)

mke2fs /dev/sdb4
(create ext2 file system for Linux. You could also use /dev/sdb, but this is bad form.)

mkdir /mnt/jaz (create a mount point.)
mount /dev/sdb4 /mnt/jaz
(mount the jaz disk, you may need the "-t ext2" option)

tar -czpf /mnt/jaz/backup.tgz {what ever}

3) or you could simply copy the files:

(do as above, but use this command instead of the tar)

cp -ax (whatever) /mnt/jaz (copies preserving permissions, symlinks,etc)

There is a program called jaztool that can lock, unlock, and eject the jaz disk. This should be already installed. There is also a GUI called JaZip, which you should be able to find by searching for jazip at Yahoo.

Most people simply create an entry in the fstab like this:

/dev/sdb4 /mnt/jaz ext2 user,noauto 0 0

or if you're really lazy (like me) and leave the MS-DOS filesystem that ships with most Jaz disks:

/dev/sdb4 /mnt/jaz vfat user,noauto 0 0

(note cp -ax will not preserve file permission on files moved to a VFAT file system, but long names will work.)

Check out the Jaz Drive HOWTO:

4.6 The Jaz Tools disk

There is some extra work to be done if you want to use the disk that comes with the Jaz drive. As shipped, the software-controlled write protection is enabled.

There are two options here: You can unlock the disk under DOS or Windows with the "reclaime.exe" program (or by installing the tools from the setup program), or you can unlock the disk with my jaztools program (see section 5) with the command

jaztool /dev/sda rw

(Adjust the /dev/sda to your appropriate SCSI device.) When prompted for the password, enter: