From owner-freebsd-questions@freebsd.org Sun Jun 18 20:27:57 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07723D8D31F; Sun, 18 Jun 2017 20:27:57 +0000 (UTC) (envelope-from solene@perso.pw) Received: from perso.pw (perso.pw [163.172.223.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "perso.pw", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 53D9F7AD1D; Sun, 18 Jun 2017 20:27:56 +0000 (UTC) (envelope-from solene@perso.pw) Received: from perso.pw (localhost [127.0.0.1]) by perso.pw (OpenSMTPD) with ESMTP id a91d2721; Sun, 18 Jun 2017 22:21:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=perso.pw; h=mime-version :content-type:content-transfer-encoding:date:from:to:cc:subject :in-reply-to:references:message-id; s=1337; bh=7iw63JIDZalVvzuY8 Ak3VCBDd9Y=; b=NriawFUlN20xS7kCbq3jtsUjHLEp48zwsP4BX3xUCebZVt6Rb kpenlnQypylqYGKxubpvALFL/9lJJH89zqZ+psfUnG0F8vog7ePuf7w7TMriQyRS nZLduzLG8kWY62+kl+EUCmrDjlCcr2QdjnPGv+BHz3IKIeK/grOk/LSpao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=perso.pw; h=mime-version :content-type:content-transfer-encoding:date:from:to:cc:subject :in-reply-to:references:message-id; q=dns; s=1337; b=Q5hSHSK2TB7 Y/fnVGMXqgWfuQC4U8ZinUzLuB7IexgkIkQjK4Npehnh9Xc4WTUh8gIubVPXBOr/ EhWwy2srQ9sYb+W0bIPNghCdKxSR62/WGffTiExNTK+xcwS1WlE2h+z99Cnve/Df rJK5d/tnTgUPnDya2d4byYlAtIwPDr1I= Received: from tesseract.perso.pw (localhost [127.0.0.1]) by perso.pw (OpenSMTPD) with ESMTP id 02dd6516; Sun, 18 Jun 2017 22:21:12 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 18 Jun 2017 22:21:12 +0200 From: =?UTF-8?Q?Sol=C3=A8ne_Rapenne?= To: David Christensen Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: tar: Failed to open '/dev/sa0' In-Reply-To: <9369978e-7041-3ef9-2cb4-66555054425b@holgerdanske.com> References: <9369978e-7041-3ef9-2cb4-66555054425b@holgerdanske.com> Message-ID: <9fa11efc8dc815b02b53565e468c7eb6@perso.pw> X-Sender: solene@perso.pw User-Agent: Roundcube Webmail/1.2.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 20:27:57 -0000 Je 2017-06-18 20:59, David Christensen skribis: > FreeBSD questions: > > > BSD tar also fails: > > 2017-06-18 11:52:56 dpchrist@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@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)