*BSD News Article 55537


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!in2p3.fr!univ-lyon1.fr!jussieu.fr!excalibur!renux.freenix.fr!keltia.frmug.fr.net!not-for-mail
From: roberto@keltia.freenix.fr (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to Use 4mm DAT (SCSI) Drive with FreeBSD?
Date: 20 Nov 1995 20:07:45 GMT
Organization: Usenet Canal Historique
Lines: 49
Message-ID: <48qn6h$2ru@keltia.freenix.fr>
References: <dhawkDIB2vL.rq@netcom.com>
NNTP-Posting-Host: keltia.freenix.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

In article <dhawkDIB2vL.rq@netcom.com>, David H <dhawk@netcom.com> wrote:
> I have a 4mm DAT (SCSI) drive on my Pentium. Can I use it for dumps?
> If so, how do I find its SCSI number (it's at a remote site so I
> can't take it apart) and how to dump to it?

Look at the dmesg output. You'll see something similar to this:

FreeBSD 2.2-CURRENT #7: Mon Nov  6 21:08:06 MET 1995
    roberto@keltia.freenix.fr:/src/src/sys/compile/KELTIA
CPU: i486DX (486-class CPU)
real memory  = 33554432 (32768K bytes)
avail memory = 31363072 (30628K bytes)
Probing for devices on the ISA bus:
[...]
(ahb0:5:0): "HP HP35480A 1009" type 1 removable SCSI 2
st0(ahb0:5:0): Sequential-Access density code 0x13,  drive empty

It shows that /dev/[n]rst0 is recognized. 

I use the following script to backup my system on a 60mn tape (1.3 GB):

#!/sbin/tcsh
if ($uid == 0) then
    date >/tmp/dump.time
    dump 0ufbB /dev/nrst0 32 1300000 /  
    sleep 2
    dump 0ufbB /dev/nrst0 32 1300000 /usr
    sleep 2
    dump 0ufbB /dev/nrst0 32 1300000 /usr/local
    sleep 2
    dump 0ufbB /dev/nrst0 32 1300000 /var
    sleep 2
    dump 0ufbB /dev/nrst0 32 1300000 /users
    sleep 2
    dump 0ufbB /dev/nrst0 32 1300000 /src
    sleep 2
    dump 0ufbB /dev/nrst0 32 1300000 /spare     
    sleep 2
    dump 0ufbB /dev/nrst0 32 1300000 /work
    date >>/tmp/dump.time
    mt -f /dev/rst0 status >> /tmp/dump.time
else
        echo Ya must be root \!\!
endif

[ Cc: to David ]
-- 
Ollivier ROBERT  -=- FreeBSD: The daemon is FREE! -=-  roberto@freebsd.org
-=-=-=-=-=-=-=-=-=-=- FreeBSD 2.x FAQ maintainer -=-=-=-=-=-=-=-=-=-=-=-=-