1

sudo cdrwtool -i -d /dev/sr4 and dvd+rw-mediainfo /dev/sr4 do not indicate the UDF version.
(1.02, 1.50, 2.00, 2.01, 2.50, 2.60)

How can I find out the UDF version of a DVD?

neverMind9
  • 1,680
  • 2
  • 18
  • 38
  • 1
    Trivial answer: `udisksctl info --block-device /dev/sr0 | grep Id` – RubberStamp Nov 06 '18 at 14:45
  • _Id: IdLabel: IdType: IdUUID: IdUsage: IdVersion:_ is all blank. – neverMind9 Nov 06 '18 at 15:07
  • 1
    Is the DVD blank? ... of course, I had `sr0` and you had `sr4` ... so... make sure the device name matches whatever you are testing. – RubberStamp Nov 06 '18 at 15:13
  • @RubberStamp Device name matches. And the DVD inside was already formatted using Windows, because if there is **one thing** where Windows crushes Linux, it is UDF support. It works out of the box with Windows. Also packet writing just works. Pktsetup from only supports read only mount. And only works occasionally. – neverMind9 Nov 06 '18 at 15:26
  • 1
    So, exactly how was the disc written... single session format, packet writing, multi-session... created using Windows built-in tools or separate program? etc... etc... More details will be needed to answer the question. – RubberStamp Nov 06 '18 at 15:47
  • @RubberStamp Using the format GUi in Windows Explorer. UDF 2.01. Session 1 is closed but the disc is unfinalized. – neverMind9 Nov 06 '18 at 15:48

1 Answers1

2

You can use udfinfo tool which is available from udftools project since version 2.0.

$ udfinfo /dev/sr4

It prints lot of information about UDF filesystem, including two UDF revision numbers:

udfrev=2.01
udfwriterev=2.01

First one is minimal UDF revision needed to read UDF filesystem and second one is minimal UDF revision to write/modify UDF filesystem.

Another option is to use blkid tool from util-linux project. But you need at least version 2.31.

$ blkid -p -s VERSION -o value /dev/sr4

It prints minimal UDF revision needed to read UDF filesystem:

2.01
Pali
  • 131
  • 1
  • 3
  • Oh, you are this experienced _PaliUDF_ editor from Wikipedia? Nice to hear from you! It is an honour! – neverMind9 Feb 04 '19 at 11:03
  • 1
    I'm author of udfinfo tool. So if you find any problem with it please report it on project page. – Pali Feb 04 '19 at 17:00