Date: Mon, 20 Aug 2018 12:19:55 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 230649] sysutils/dvd+rw-tools: growisofs cannot write 4gb+ file to blu-ray disc Message-ID: <bug-230649-7788-hEg4h5SzeG@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-230649-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-230649-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230649 --- Comment #9 from scdbackup@gmx.net --- Hi, > (1) on freebsd > # mount -t udf /dev/cd0 /cdrom > # ls /cdrom/test > (shown only first session's files) This is probably due to the fact that growisofs formats BD-R to be Pseudo-Overwritable. Afterwards the medium shows only one track and thus is not recognized by the operating system as multi-session medium. Since the UDF "anchor" blocks were not updated, they still point to the directory tree of the first session. The formatting default can be suppressed by growisofs option -use-the-force-luke=3Dspare=3Dnone Formatting for Defect Management without Pseudo-Overwrite can be achieved by a separate formatting run of cdrskin or xorriso before using growisofs for burning. (I am unsure whether dvd+rw-format can be kept from adding the Pseudo-Overwrite feature. So in this case my programs are safer.) I am not aware whether Linux or FreeBSD try to apply the multi-session convention if they mount the UDF aspect of a medium with multiple sessions. It might be interesting to see how growisofs, mkisofs -udf, and mount_udf behave with the second session on a BD-R that is not pseudo-overwritable. > # mount -t cd9660 /dev/cd0 /cdrom > # ls /cdrom/test > (all files are shown but 4gb+ files are shown multiple with incorrect siz= e) The ISO-9660 Primary Volume Descriptor was updated by growisofs to point to the directory tree of the add-on session. It refers to data files in both sessions. Pity that the cd9660 driver cannot properly represent the big file. Background on ISO 9660 multi-session: The convention for readers is to start at the superblock (Primary Volume Descriptor) at block 16 of the first track of the last session on the optical medium. Since overwritable optical media only have one session and track, this prescription does not work for them. But other than with multi-session media, the old superblock can be overwritten to point to the directory tree of the newly appended pseudo-session. This way, growisofs and xorriso can do ISO 9660 multi-session on all optical media types. (xorriso can do it on image files, too.) Obviously, growisofs has no similar update provision for the UDF anchors. > (2) on ubuntu > genisoimage: Error: 'test/test10g' and 'test/test10g' have the same Rock = Ridge name 'test/test10g' Another known bug of genisoimage. Maybe you should install real mkisofs. Either from Joerg Schillings cdrtools source tarball or from Brandon Snider's cdrtools PPA. > Is it impossible to add files to the udf disc due to udf specification > restrictions? UDF is complicated and has multiple variations ("builds"). Afaik, mkisofs produces UDF 1.x "Plain build". It is used for creating video which Wikipedia mentions as UDF 1.02. Although "plain" is characterized as "random read/write" i assume that the architecture of mkisofs does not invite for modification of existing blocks in the image. After all it shall be able to deliver its result as stream to a pipe. UDF has its own provisions for being modified. I guess this deferred all attempts to implement multi-session in parallel with ISO 9660, although this seems possible. (I myself was completely deferred by reading ECMA-167 and UDF-2.60. Afterwards i had to clean my eyes with a tooth brush.) Have a nice day :) Thomas --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230649-7788-hEg4h5SzeG>