tar: Failed to open '/dev/sa0'

Solène Rapenne solene at perso.pw
Sun Jun 18 20:27:57 UTC 2017


Je 2017-06-18 20:59, David Christensen skribis:
> FreeBSD questions:
> 
> 
> BSD tar also fails:
> 
> 2017-06-18 11:52:56 dpchrist at freebsd ~
> $ tar --version
> bsdtar 3.2.1 - libarchive 3.2.1 zlib/1.2.8 liblzma/5.2.2 bz2lib/1.0.6
> 
> 2017-06-18 11:53:14 dpchrist at freebsd ~
> $ tar c .thunderbird > dpchrist-thunderbird-20170618.tar
> tar: Failed to open '/dev/sa0'
> 
> 
> What's the problem?
> 
> 

hello,

I think the syntax should be

tar cf - .thunderbird > output.tar

or

tar cf output.tar .thunderbird

/dev/sd0 is a tape device IIRC, tar assume you want to save to a tape
by default, that's why you have to use the f flag (to a file or to
standard output)


More information about the freebsd-questions mailing list