[olug] smbtar and win2k

Craig Wolf cjwolf at mpsomaha.org
Thu Apr 29 11:45:52 UTC 2004


I get an error message on my machine also when I try to access /dev/nst0.  Don't know if it is important or not.  I am trying to do a restore right now from that tape that I did the backup to.  Ultimate test of a backup, right?  8)

Craig Wolf
Linux Web Server Support
Desktop/Network Specialist
402-894-6283

>>> relayer at levania.org 04/28/04 14:25 PM >>>
On Wed, 28 Apr 2004, Jon H. Larsen wrote:

> Date: Wed, 28 Apr 2004 13:08:48 -0500 (CDT)
> From: Jon H. Larsen <relayer at levania.org>
> Reply-To: Omaha Linux User Group <olug at olug.org>
> To: olug at olug.org
> Subject: [olug] smbtar and win2k
> 
> 
> I'm attempting to back up a user's My Documents directory and I'm 
> encountering some problems using smbtar. Samba 2.2.7 is running on my 
> linux box with the tape drive I'm using.
> 
> My shell script I'm using:
> -----------
> #!/bin/bash
> echo -n "Enter password: "
> read -s PASSWD
> smbtar -s hostname -x C$ -d "\\Documents and Settings\\user\\My 
> Documents" -v -u administrator -p $PASSWD -t /dev/st0
> 
> ---------
> 
> I connect as administrator and everything looks good until attempts are 
> made to read files.  Here is the output I get:
> 
> Domain=[DOMAIN] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
> tarmode is now full, system, hidden, noreset, verbose
>                 directory \Documents and Settings\user\My Documents\My 
> Pictures\
> Error writing to tar file - Invalid argument
> Didn't get entire file. size=2310144, nread=65520
> 
> 
> Oddly enough, the nread=65520 is exactly the same for each file that is 
> being read.  I don't see anything in the man page for smbtar for tar 
> arguments that can be specified.
> 
> Access to the tape drive works fine, I can pull status, eject, everything, 
> so I know that's not an issue.
> 
> There aren't any problems with this Win2k box logging into my samba shares 
> on my fileserver.
> 
> Didn't get much help from a google search.
> 
> Anyone else using smbtar?  Your thoughts?
> 
> Jon L.

Hmm...

This does appear to be a tape drive issue.  I can specify -t 
/tmp/filename.tar and it works fine.  Anytime I specify -t /dev/nst0, I 
get an error.  Very weird.

Jon

-- 
Jon H. Larsen  - email: relayer (at) levania (dot) org
Omaha Linux Users Group - http://www.olug.org/
AnimeSunday.org - http://www.animesunday.org/
ICQ#: 10412618 - http://www.levania.org/~relayer/
PGP Pub key - http://www.levania.org/~relayer/relayerpubkey.txt

_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list