Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Feb 2008 11:43:02 GMT
From:      Oliver Herold <oliver@akephalos.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/120989: UDF (with DVD RAM) isn't mountable/readable
Message-ID:  <200802231143.m1NBh2f4046914@www.freebsd.org>
Resent-Message-ID: <200802231150.m1NBo2PR088540@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         120989
>Category:       i386
>Synopsis:       UDF (with DVD RAM) isn't mountable/readable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 23 11:50:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Herold
>Release:        FreeBSD 7 (RELENG_7)
>Organization:
>Environment:
FreeBSD asgard.home 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #4: Fri Feb 22 22:06:18 CET 2008     acheron@asgard.home:/usr/obj/usr/src/sys/ASGARD  i386
>Description:
This is a persistent problem since FreeBSD 6.x. DVD RAM formatted media with FAT or UFS as filesystems aren't a problem at all, but UDF (diverent versions) isn't readable in FreeBSD.

mount_udf /dev/acd0 /cdrom results in mount_udf: /dev/acd0: Invalid argument

I tried it with different version of UDF and different operating systems (Debian Etch/Windows XP and Mac OS X Leopard) but to no avail in FreeBSD.


Maybe the udfdump output of such a media is of some use:

UDF volume sets marked alive :
Volume set `0939115C UDF Volume Set` (1 volume) with 8193 partitions
	Partition number 8192 at device `/dev/cd0' session 0 from sector 272(+0) for 2236160 sectors
	Primary volume `UDF Volume` (part 1/1) created by implementator `*Microsoft Windows' 
		contains logical volume  ``
			mapping 0 on 8192 as direct recording data metadata


	retrieving logical volume dependencies
		Logical volume  `0939115C UDF Volume Set`:`UDF Volume`:``
			integrity
	TAG: descriptor 9, serial_num 61994 at sector 36, crc length 118 bytes
		Logical volume integrity descriptor
			Timestamp                            (2008 01 26 at 17:01:55.01.17.36)
			Integrity type                       closed
			Next integrety sequence at 0 for 0 bytes
			Next free unique file ID             139
			Length of implementation use area    46 bytes
			Number of partitions                 1
			Partition 0 : 335924 blocks free space out of 2236160 blocks
			Implemenator Id `*Apple Mac OS X UDF FS` (MacOS [03 01 02 00 00 00 ]) (flags=0)
			Number of files                      48
			Number of directories                6
			Minimum readversion                  UDFv 201
			Minimum writeversion                 UDFv 201
			Maximum writeversion                 UDFv 201


				marked closed at  (2008 01 26 at 17:01:55.01.17.36)
	TAG: descriptor 8, serial_num 61994 at sector 37, crc length 496 bytes
		Terminating descriptor

			supporting tables
	For partition mapping 0->8192

			fileset(s)
	Fileset descriptor extent at sector 0 within partion 0 for 2048 bytes
	TAG: descriptor 256, serial_num 61994 at sector 0, crc length 496 bytes
		Fileset descriptor
			Timestamp                          (2007 08 04 at 09:57:18.06.07.00)
			Interchange level                  3
			Max interchange level              3
			Charset lists                      1
			Max charset lists                  1
			Fileset number                     0
			Fileset descriptor number          0
			Logical volume id                  ``
			Fileset id                         `UDF Volume Set`
			Copyright file id                  ``
			Abstract file id                   ``
			DomainId `*OSTA UDF Compliant` (UDFv 201; no write protect ) (flags=0)
			Rootdir ICB found        at sector 153 within partion space 0 for 2048 bytes
			Next extend for fileset  at sector 0 within partion space 0 for 0 bytes
			Streamdir ICB found      at sector 0 within partion space 0 for 0 bytes


	TAG: descriptor 266, serial_num 61994 at sector 153, crc length 796 bytes
	Extended file entry
		ICB Prior direct entries recorded (excl.)   0
		ICB Strategy type                           4
		ICB Strategy type flags                     0 0
		ICB Maximum number of entries (non strat 4) 1
		ICB     indirect entries/depth              0
		ICB File type                               4
		ICB Parent ICB in logical block 0 of mapped partition 0
		ICB Flags                                   3
			File/directory information using : internal in the ICB
			File flags :
		Uid                                         -1
		Gid                                         -1
		Permissions                                 3def
		Link count                                  3
		Record format                               0
		Record display attributes                   0
		Record length                               0
		Information length                          596
		Object size                                 596
		Logical blocks recorded                     0
		Access time                                 (2008 01 26 at 17:01:52.37.77.10)
		Modification time                           (2008 01 26 at 17:01:52.37.77.14)
		Creation time                               (2007 08 04 at 10:57:18.06.07.00)
		Attribute time                              (2007 08 04 at 11:52:25.75.25.17)
		Checkpoint                                  1
		Extended attributes ICB at at sector 0 within partion space 0 for 0 bytes
		Streamdir ICB at at sector 0 within partion space 0 for 0 bytes
		Implementation `*Apple Mac OS X UDF FS` (MacOS [03 01 02 00 00 00 ]) (flags=0)
		UniqueID                                    0
		Length of extended attribute area           0
		Length of allocation descriptors            596
		Allocation descriptors : 

	 [ blob at internal blob here for 596 bytes ] 

			checking writable filesets
			used/freed space tables
	For partition mapping 0->8192
	Unalloced space bitmap
	TAG: descriptor 264, serial_num 61994 at sector 16, crc length 8 bytes
		Space bitmap
			Number of bits                      2236160
			Number of bytes                     279520
			Marked parts at :
				[00000014 - 00000015]    [00000155 - 00000157]    [00000172 - 00000172]    [00000181 - 00000183]
				[00000226 - 00000226]    [00000242 - 00000243]    [00000250 - 00000251]    [00000267 - 00000268]
				[00000280 - 00000280]    [00000282 - 00000287]    [00000289 - 00000290]    [00000294 - 00000303]
				[00000305 - 00000311]    [00000316 - 00022367]    [01922330 - 02236160]
		Free space found on this partition
			[00000014 - 00000015]   [00000155 - 00000157]   [00000172 - 00000172]   [00000181 - 00000183]   [00000226 - 00000226]   
			[00000242 - 00000243]   [00000250 - 00000251]   [00000267 - 00000268]   [00000280 - 00000280]   [00000282 - 00000287]   
			[00000289 - 00000290]   [00000294 - 00000303]   [00000305 - 00000311]   [00000316 - 00022367]   [01922330 - 02097147]   
			[02097148 - 02236159]   
		Physical partition's unallocated space : 687972352

UDF volume sets marked alive :
Volume set `0939115C UDF Volume Set` (1 volume) with 8193 partitions
	Partition number 8192 at device `/dev/cd0' session 0 from sector 272(+0) for 2236160 sectors
	Primary volume `UDF Volume` (part 1/1) created by implementator `*Microsoft Windows' 
		contains logical volume  ``
			mapping 0 on 8192 as direct recording data metadata




Resulting list of alive sets :

UDF volume sets marked alive :
Volume set `0939115C UDF Volume Set` (1 volume) with 8193 partitions
	Partition number 8192 at device `/dev/cd0' session 0 from sector 272(+0) for 2236160 sectors
	Primary volume `UDF Volume` (part 1/1) created by implementator `*Microsoft Windows' 
		contains logical volume  ``
			mapping 0 on 8192 as direct recording data metadata


Closing discs
Disc access statistics
	sector reads        148  (296 Kbyte)
	sector written        0  (0 Kbyte)
	switches              0
>How-To-Repeat:
mount_udf /dev/acd0 /cdrom results in mount_udf: /dev/acd0: Invalid argument
>Fix:
Not a real fix but an option:

I can mount UDF formatted DVD RAM media with sysutils/udfclient (option fusefs):

udfclientfs /dev/cd0 /cdrom

and read/copy the content.



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802231143.m1NBh2f4046914>