From owner-freebsd-fs@freebsd.org Fri Feb 10 09:16:39 2017 Return-Path: Delivered-To: freebsd-fs@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 A1A7ECD9E9F for ; Fri, 10 Feb 2017 09:16:39 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com [IPv6:2a00:1450:400c:c0c::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 544DEF83 for ; Fri, 10 Feb 2017 09:16:39 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr0-x236.google.com with SMTP id o16so103097545wra.1 for ; Fri, 10 Feb 2017 01:16:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=L5z8XDHvXhYBcd7dXs2K+23t4DVZQ6LBzWvl8x8DSTU=; b=czXWieuO6Uqtg6veiQzZlIjKDgvxP+zJnbbPBanV0JAUrWdAhVpmAUnpxefNbxsZtu sMzCYcCwFIC/vqZaO07519BCVAScoUnsVAxdTcDzaoY+P5LBKi9DcVa0lg+4cuvR7wF9 etwpVVqUnlWP58/mjSO3Pz/6oJ/BxY3FnePkbKZ+KtiPAXc/ieqfPFHGSyAUvVlj35P+ 9bPpHhwPnu6tNK6uSo7CDns0AsVIE+dzd+Ex7j2GlA28kwVp+K/gZTDak0C+m8qTltQc yI0vBf5u2zXn3tsSnrF4+zbWdEuH+IKAnKf5AXp3gv8WM7krjCnzUUgS75hVYJgoaL5E NBEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=L5z8XDHvXhYBcd7dXs2K+23t4DVZQ6LBzWvl8x8DSTU=; b=mTkLjsSmWvYCVu/zZMw2bvI8bBWh9nSCwpU9vIwAwR1O20jHTDGNzYFDLrrYzpXbeX 9rtp3ilDoNhxUi0gBP3TGwNQaVDuztZsypP+3r/X4BSHw7OeRnQKN+DXSLwEsnB4mTwn hYml0xJy+knWAFzBAMTcT8oMB69lQakDqGigiBLur/5SMveEV/Y0JbjRWvHVYSZ1/P/c uRLQqGfdboM+VUiwCWi9MdC8ZRpkCVlM8rJBivWUd+tZEx+3G7mbBciaQHKgAzgPYR3D 40abig2UCVGDFIwEhojs21j/97awZjrJMbV7QP20uirhMao6wKDjLI84t0ULtkwePNmi 2tLw== X-Gm-Message-State: AMke39muJIb0BD2p1kM/nGX43yqcG/euxoOJjvwquKX8OTE/3ifnAsg5d0NyrIMJhnZMXg== X-Received: by 10.223.138.220 with SMTP id z28mr6731170wrz.26.1486718196417; Fri, 10 Feb 2017 01:16:36 -0800 (PST) Received: from ernst.home (p578E1D95.dip0.t-ipconnect.de. [87.142.29.149]) by smtp.gmail.com with ESMTPSA id e72sm559815wma.16.2017.02.10.01.16.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Feb 2017 01:16:35 -0800 (PST) Date: Fri, 10 Feb 2017 10:16:33 +0100 From: Gary Jennejohn To: David Christensen Cc: freebsd-fs@freebsd.org Subject: Re: FreeBSD 11 and 4+ GB files on optical disc Message-ID: <20170210101633.4d5da7df@ernst.home> In-Reply-To: <4b4145c4-1381-0b95-0e06-46affbb6d851@holgerdanske.com> References: <20170210031741.3d4348f6.freebsd@edvax.de> <4b4145c4-1381-0b95-0e06-46affbb6d851@holgerdanske.com> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2017 09:16:39 -0000 On Thu, 9 Feb 2017 23:22:23 -0800 David Christensen wrote: > freebsd-fs: > > I have a computer with: > > dpchrist@freebsd:/usr/home/dpchrist $ freebsd-version > 11.0-RELEASE-p7 > > dpchrist@freebsd:/usr/home/dpchrist $ uname -a > FreeBSD freebsd 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 03:40:55 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 > > > I've been creating DVD and BD discs with files larger than 4 GB on Linux. I can read them fine on Linux and Microsoft Windows. But, I can't read them correctly on FreeBSD. > > > Apparently, this is a feature. > No, it's an option. Look for UDF in /sys/conf/NOTES. There's also /usr/ports/sysutils/udfclient, but I'd be inclined to use the kernel options. I've had UDF in my kernel for years. > > Is there software I can install so that I can access 4+ GB files on optical discs? > > > TIA, > > David > > > > -------- Forwarded Message -------- > Subject: Re: FreeBSD 11 and 4+ GB files on optical disc > Date: Fri, 10 Feb 2017 03:17:41 +0100 > From: Polytropon ... > To: David Christensen ... > CC: freebsd-questions@... > > On Thu, 9 Feb 2017 17:51:34 -0800, David Christensen wrote: > > On 02/09/17 15:55, Polytropon wrote: > > > > Thanks for the reply. > > > > > > > On Thu, 9 Feb 2017 15:04:13 -0800, David Christensen wrote: > > >> I periodically create archive files on Debian 7, encrypt the archive, > > >> create checksum files, burn the archive and checksum files to optical > > >> disc, and then verify the contents of the disc. > > > > > > So I can assume you're using ISO-9660 as the file system for > > > the optical disc - a very important aspect you never mentioned. :-) > > > > dpchrist@freebsd:/usr/home/dpchrist $ mount | grep /dev/cd0 > > /dev/cd0 on /media/HOLGERDANSKE_COM (cd9660, local, nosuid, read-only) > > Exactly my assumption. :-) > > > > > >> I suspect that FreeBSD is having problems because the archive file is > > >> larger than 4 GB (?). > > > > > > Well, if you accurately consider the file size conversion ... > > > Check what the file system specification says ... > > > So what you're seeing (file appearing twice) exactly matches > > > the assumption that mkisofs is creating a "split entry" for a > > > source file that the ISO-9660 file system cannot contain due > > > to a size limitation. > > > > I created the disc on Linux, and have been creating discs just like it > > for several years. I guess Linux hides the "split entries"; it "just > > works". > > That is correct, but keep in mind it's an extension to the > specification, so not really "standard" to do so. ISO-9660 > has a file size limitation. > > > > > When I browse the disc using Vista 32-bit, Windows Explorer shows the > > files on the disc correctly. > > It seems to support that extension. However, FreeBSD's ISO-9660 > implementation seems to be more strict... > > > > > > Don't use ISO-9660. Use tar as a file system (or better, instead > > > of a file system). You can write it to the DVD like this: > > > > > > % growisofs -dvd-compat -Z /dev/dvd=2017.01.tar > > > > > > And read (restore) it like this: > > > > > > % tar xvf /dev/dvd > > > > > > The advantage: No size limitation imposed by ISO-9660.Additional security: "There are no files on the DVD!" ;-) > > > > That is not security; that is incompatibility. > > Sometimes, incompatibility _is_ security. ;-) > > > > > This is an archive disc. I have created many such discs over the years. > > I need to be able to browse and read them on as many platforms as > > possible. > > That's why tar isn't that bad: Every significant system has > the only two parts needed to access such disk: first the > ability to read raw data from the device, second an implementation > of the tar program. Even though it might sound stupid, this > mechanism works with any media (from floppy, optical discs, > tape, hard disks, USB sticks) and on almost every operating > system (Linux, BSD, Solaris, IRIX, AIX, HP-UX, also on DOS, > and with Linux tools being available on "Windows", even there). > > Of course you need to process the file sequencially, but that > is not a big deal because you have created .tar files anyway. > The downside is that you do not really have logical _files_ > (no .tar file on the media, but media itself is a .tar "file"), > which might be a problem for archiving tasks. > > > > > How do I browse and read 4+ GB files on optical discs (DVD, BD) > > correctly on FreeBSD? > > By using FreeBSD 11, you're already using the most recent > version of the ISO 9660 VFS driver. I suggest you ask a > specific question on the freebsd-fs@ mailing list. Maybe > there is userland support (maybe through FUSE) for extensions > that allow files bigger than the specification. > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" -- Gary Jennejohn