Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2017 22:27:49 +0200
From:      =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernando.apesteguia@gmail.com>
To:        David Christensen <dpchrist@holgerdanske.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: tar: Failed to open '/dev/sa0'
Message-ID:  <CAGwOe2bfRag6QiS_BC-xgbABHFsaTeMO69tHG6N=KyT_1x%2BnZQ@mail.gmail.com>
In-Reply-To: <9369978e-7041-3ef9-2cb4-66555054425b@holgerdanske.com>
References:  <9369978e-7041-3ef9-2cb4-66555054425b@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 18, 2017 at 8:59 PM, David Christensen
<dpchrist@holgerdanske.com> wrote:
> FreeBSD questions:
>
> I use GNU tar to backup files.  Here is an example on Linux:
>
> 2017-06-18 11:46:01 dpchrist@jesse ~
> $ cat /etc/debian_version
> 8.8
>
> 2017-06-18 11:46:31 dpchrist@jesse ~
> $ uname -a
> Linux jesse 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64
> GNU/Linux
>
> 2017-06-18 11:46:33 dpchrist@jesse ~
> $ echo $SHELL
> /bin/bash
>
> 2017-06-18 11:47:33 dpchrist@jesse ~
> $ bash --version
> GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>;
>
> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> 2017-06-18 11:49:02 dpchrist@jesse ~
> $ tar --version
> tar (GNU tar) 1.27.1
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by John Gilmore and Jay Fenlason.
>
> 2017-06-18 11:53:31 dpchrist@jesse ~
> $ tar c .icedove > dpchrist-icedove-20170618.tar
>
> 2017-06-18 11:53:54 dpchrist@jesse ~
> $ ls -l dpchrist-icedove-20170618.tar
> -rw-r--r-- 1 dpchrist dpchrist 363581440 Jun 18 11:53
> dpchrist-icedove-20170618.tar
>
>
> GNU tar fails on FreeBSD:
>
> 2017-06-18 11:48:23 dpchrist@freebsd ~
> $ freebsd-version
> 11.0-RELEASE-p10
>
> 2017-06-18 11:48:28 dpchrist@freebsd ~
> $ uname -a
> FreeBSD freebsd 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11
> 08:42:58 UTC 2017
> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>
> 2017-06-18 11:48:29 dpchrist@freebsd ~
> $ echo $SHELL
> /usr/local/bin/bash
>
> 2017-06-18 11:48:53 dpchrist@freebsd ~
> $ bash --version
> GNU bash, version 4.4.5(0)-release (i386-portbld-freebsd11.0)
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>;
>
> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> 2017-06-18 11:52:11 dpchrist@freebsd ~
> $ gtar --version
> tar (GNU tar) 1.29
> Copyright (C) 2015 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by John Gilmore and Jay Fenlason.
>
> 2017-06-18 11:52:44 dpchrist@freebsd ~
> $ gtar c .thunderbird > dpchrist-thunderbird-20170618.tar
> gtar: /dev/sa0: Cannot open: Operation not supported
> gtar: Error is not recoverable: exiting now
>
>
> 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'

I never used redirection that way with bsdtar. Can't you use -f?

Cheers.

>
>
> What's the problem?
>
>
> David
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2bfRag6QiS_BC-xgbABHFsaTeMO69tHG6N=KyT_1x%2BnZQ>