Date: Thu, 19 Mar 2009 10:55:27 -0700 From: Chuck Swiger <cswiger@mac.com> To: Jaime <jaime@snowmoon.com> Cc: freebsd-questions@freebsd.org Subject: Re: Formatting a tape? Message-ID: <209E15D1-EAB2-476F-A802-CF8577492919@mac.com> In-Reply-To: <ae4324ed0903190915u5a9ac68fw170f38354323e72e@mail.gmail.com> References: <ae4324ed0903190915u5a9ac68fw170f38354323e72e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 19, 2009, at 9:15 AM, Jaime wrote: > I have a DLT tape drive in a FreeBSD system. With one of the tapes, I > can get "tar -cvpf /dev/sa0 -C / ." to work. With all the other > tapes, I can't. > > Is there some kind of formatting process that I need to do? I tried > "mt fsf 1" from this page: What's the SCSI controller that you're using, and which version of the OS are you running? What's "mt status" say? Can you try "mt blocksize 0", "mt rewind", "mt weof 2", "mt rewind" and then retry tar? Try changing your blocksize via tar's -b flag to 32, 64, 126, or 128 blocks. FreeBSD doesn't expose enabling/disabling hardware compression or tuning compression levels via the device name used (ala Solaris' /dev/rmt/0ubn for example), so you'll need to look to "mt blocksize" and "mt comp" to adjust, otherwise you'll get whatever default behavior the device is set to. In most cases, the device will want a fairly large blocksize in order to keep streaming the tape. (I've used both Quantum DLT and sDLT drives with FreeBSD 5.x & 6.x on various Adaptec & LSI MegaRAID SCSI controllers-- mostly Dell, some HP boxen....) Regards, -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?209E15D1-EAB2-476F-A802-CF8577492919>