udftools
                                
                                 udftools copied to clipboard
                                
                                    udftools copied to clipboard
                            
                            
                            
                        Disk with filesystem created by mkudffs cannot be mounted
Tried blanking a CDRW and then creating a filesystem with:
mkudffs --spartable=2 --media-type=cdrw --udfrev=0x0150 /dev/pktcdvd/pktcdvd0
this works with no error on an older DVD drive I have at hand.
However, then trying to mount the filesystem results in:
sudo mount -t udf -o rw,noatime /dev/pktcdvd/pktcdvd0 /mnt/tmp
mount: /mnt/tmp: wrong fs type, bad option, bad superblock on /dev/pktcdvd/pktcdvd0, missing codepage or helper program, or other error.
on the system log I get:
19184.805039] sr0: detected capacity change from 1073741312 to 604700672
[19190.750549] pktcdvd: pktcdvd0: Fixed packets, 32 blocks, Mode-2 disc
[19190.755523] pktcdvd: pktcdvd0: maximum media speed: 10
[19190.755524] pktcdvd: pktcdvd0: write speed 10x
[19190.756550] pktcdvd: pktcdvd0: 590528kB available on disc
[19191.018673] UDF-fs: warning (device pktcdvd0): udf_load_vrs: No VRS found
[19191.018677] UDF-fs: Scanning with blocksize 2048 failed
[19191.045690] UDF-fs: warning (device pktcdvd0): udf_load_vrs: No VRS found
[19191.045694] UDF-fs: Scanning with blocksize 4096 failed
Any clue?
Something that looks very weird to me is that if I do the blanking with cdrwtools as in cdrwtool -d /dev/cdrw -q then the tool finishes its job by actually writing UDF data structures to the disk. In fact, it says:
Writing UDF structures to disc
At this point I can actually mount the UDF disk via the packet writing layer. However, if I now do mkudffs /dev/pktcdvd/pktcdvd0, which should create the actual filesystem, then it is at this point that the disk stops being mountable as UDF...
... and if I try to use udftools from the distro (i.e. an older version) after having used cdrwtool -d /dev/cdrw -q, mkudffs refuses to work at all mkudffs: Error: Cannot open device '/dev/pktcdvd/pktcdvd0': Device is mounted or mkudffs is already running
Can you run udfinfo on this formatted disc? Can you also provide output from mkudffs?
Could you run udfinfo on both /dev/cdrw and /dev/pktcdvd/pktcdvd0?
ping
sudo mount -t udf -o rw,noatime /dev/pktcdvd/pktcdvd0 /mnt/tmp mount: /mnt/tmp: wrong fs type, bad option, bad superblock on /dev/pktcdvd/pktcdvd0, missing codepage or helper program, or other error.
[19191.018677] UDF-fs: Scanning with blocksize 2048 failed [19191.045690] UDF-fs: warning (device pktcdvd0): udf_load_vrs: No VRS found [19191.045694] UDF-fs: Scanning with blocksize 4096 failed
Any clue?
While this question is months old, no one provided an answer, and it seems to be a problem people everywhere are running into.
In the man page you'll see "Prior to mkudffs 1.1 default value was always 2048". Now (with v2.x) it assumes hard drives by default and uses a block size of 512. If the block size is indeed your problem, adding "-o loop" to your mount command will succeed. The loopback mount converts from the actual disc block size to the UDF block size, though you'll have a non-standard disc that won't work with most systems.
With udftools v2, if you specify --media-type=cd it should do the right thing, using a proper block size. Of course you can manually specify a block size if desired.
Closing for inactivity.