From owner-freebsd-stable@freebsd.org Tue Aug 23 11:20:22 2016 Return-Path: Delivered-To: freebsd-stable@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 0A2EBBC35B6 for ; Tue, 23 Aug 2016 11:20:22 +0000 (UTC) (envelope-from estartu@ze.tum.de) Received: from mail.ze.tum.de (mail.ze.tum.de [IPv6:2001:4ca0:2e03::1:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.ze.tum.de", Issuer "Zertifizierungsstelle der TUM" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A19511329; Tue, 23 Aug 2016 11:20:21 +0000 (UTC) (envelope-from estartu@ze.tum.de) Received: from etustar.ze.tum.de ([IPv6:2001:4ca0:2e03:0:0:0:1:180]) by mail.ze.tum.de (8.15.2/8.15.2) with ESMTPS id u7NBKHPp092854 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2016 13:20:18 +0200 (CEST) (envelope-from estartu@ze.tum.de) X-Authentication-Warning: hades.ze.tum.de: Host [IPv6:2001:4ca0:2e03:0:0:0:1:180] claimed to be etustar.ze.tum.de Subject: Re: Problems while reading from /dev/cd0 To: Dimitry Andric References: <66E3F5E4-F640-4E05-A2CF-E7AD5F7D8327@FreeBSD.org> Cc: freebsd-stable Reply-To: schmidt@ze.tum.de From: Gerhard Schmidt Organization: =?UTF-8?Q?Technische_Universit=c3=a4t_M=c3=bcnchen_-_WWW_und_O?= =?UTF-8?Q?nline_Services?= Message-ID: <83cc5126-2044-acc4-854c-96ef0d2ca458@ze.tum.de> Date: Tue, 23 Aug 2016 13:20:17 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <66E3F5E4-F640-4E05-A2CF-E7AD5F7D8327@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 11:20:22 -0000 Am 23.08.2016 um 13:12 schrieb Dimitry Andric: > On 23 Aug 2016, at 08:50, Gerhard Schmidt wrote: >> >> I'm having some very curios Problems while reading from an BD-R recorded >> as a tar directly on the disk without a filesystem. >> >> When i try to read the Disk via 'tar tvvf /dev/cd0' >> >> i get the following output >> >> -rw-r--r-- 0 root wheel 5793264611 1 Jan 2015 file1.db >> tar: Error reading '/dev/cd0' >> Archive Format: POSIX ustar format, Compression: none >> tar: Error exit delayed from previous errors. >> >> reading the whole file via 'dd if=/dev/cd0 of=backup.tar bs=2048' and >> than 'tar tvvf backup.tar' the file is read without a hitch. So the data >> on the disk is OK but can't be read directly by tar. >> >> if i try the dd without the bs=2048 i get >> >> dd: /dev/cd0: Invalid argument >> 0+0 records in >> 0+0 records out >> 0 bytes transferred in 0.000115 secs (0 bytes/sec) >> >> So there is a problem reading anything other than 2048 byte blocks from >> a Disk. > > Have you tried tar's -b option, to set the block size 2048? Maybe that > will help. It does partially. extracting the files work but testing the archive with tar t fails. Estartu -- ---------------------------------------------------------- Gerhard Schmidt | E-Mail: schmidt@ze.tum.de Technische Universität München | Jabber: estartu@ze.tum.de WWW & Online Services | Tel: +49 89 289-25270 | PGP-PublicKey Fax: +49 89 289-25257 | on request