From owner-freebsd-fs@freebsd.org Fri Feb 10 17:41:16 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 2059DCD8650 for ; Fri, 10 Feb 2017 17:41:16 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1182EB3E for ; Fri, 10 Feb 2017 17:41:15 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Fri, 10 Feb 2017 09:41:11 -0800 Subject: Re: FreeBSD 11 and 4+ GB files on optical disc To: freebsd-fs@freebsd.org References: <20170210031741.3d4348f6.freebsd@edvax.de> <4b4145c4-1381-0b95-0e06-46affbb6d851@holgerdanske.com> <20170210101633.4d5da7df@ernst.home> From: David Christensen Message-ID: <7827d6b5-dc0f-21a9-873d-6356986485a5@holgerdanske.com> Date: Fri, 10 Feb 2017 09:41:14 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170210101633.4d5da7df@ernst.home> Content-Type: text/plain; charset=windows-1252; format=flowed 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 17:41:16 -0000 On 02/10/17 01:16, Gary Jennejohn wrote: Thanks for the reply. :-) > On Thu, 9 Feb 2017 23:22:23 -0800 > David Christensen wrote: >> 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. toor@freebsd:/root # less /sys/conf/NOTES # NOTES -- Lines that can be cut/pasted into kernel and hints configs. ... # FILESYSTEM OPTIONS ... # The rest are optional: ... options UDF #Universal Disk Format I am running the stock kernel. RTFM: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html Check the kernel configuration: toor@freebsd:/root # egrep 'option.+UDF' /usr/src/sys/i386/conf/GENERIC It appears UDF is not included in the i386 GENERIC kernel. While I should be able to figure out how to build a custom kernel, but these are archive discs and I would prefer a solution that works OOTB. Failing that, with minimum additional software/ effort. > 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. I've been using packages: toor@freebsd:/root # pkg search udfclient udfclient-0.7.5_1 Tools for UDF filesystem toor@freebsd:/root/freebsd.holgerdanske.com # pkg install udfclient ... toor@freebsd:/root # /etc/periodic/weekly/310.locate ... toor@freebsd:/root # makewhatis RTFM -- nope: toor@freebsd:/root # man udfclient No manual entry for udfclient Look for udfclient files: toor@freebsd:/root # locate udfclient /usr/local/bin/udfclient /usr/ports/sysutils/udfclient /usr/ports/sysutils/udfclient/Makefile /usr/ports/sysutils/udfclient/distinfo /usr/ports/sysutils/udfclient/files /usr/ports/sysutils/udfclient/files/patch-uscsi_subr.c /usr/ports/sysutils/udfclient/pkg-descr /var/cache/pkg/udfclient-0.7.5_1-96e70f06e7.txz /var/cache/pkg/udfclient-0.7.5_1.txz Try online help -- not for noobs: toor@freebsd:/root # udfclient --help udfclient: illegal option -- - Usage: udfclient [options] devicename [devicename]*) -u level UDF system verbose level -r range use only selected sessions like -3,5,7 or 6- -W allow writing (temporary flag) -F force mount writable when marked dirty (use with cause) -b blocksize use alternative sectorsize; use only on files/discs -D debug/verbose SCSI command errors -s byteswap read sectors (for PVRs) STFW -- like an FTP client, eh? http://freecode.com/projects/udfclient WAG: toor@freebsd:/root # umount /dev/cd0 Close Thunar. Eject disc. Insert disc. toor@freebsd:/root # udfclient /dev/cd0 bufcache thread initialising Opening device /dev/cd0 UDF Dump of disc in device /dev/cd0 UDF sessions : No No Resulting list of alive sets : UDF volume sets marked alive : Directory listing of / UDF working directory is / Current FS working directory /root UDF> help Selected commands available (use " pair for filenames with spaces) : ls [file | dir] lists the UDF directory cd [dir] change current UDF directory lcd [dir] change current directory lls lists current directory pwd display current directories free display free space on disc get source [dest] retrieve a file / directory from disc mget (file | dir)* retrieve set of files / directories put source [dest] write a file / directory to disc mput (file | dir)* write a set of files / directories trunc file length trunc file to length mkdir dir create directory rm (file | dir)* delete set of files / directories mv source dest rename a file (limited) sync sync filingsystem quit exits program exit alias for quit UDF> ls Directory listing of / UDF> sync UDF> ls Directory listing of / UDF> free Can only report free space in UDF mountpoints UDF> quit Closing discs It appears udfclient can't see the DVD contents (?). David