-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for write-once media #37
Comments
This looks like |
Also, you cannot write to (or modify) read-only media by their definition. |
Also note that CD-R, DVD+R, DVD-R and BD-R are write-once media (R means recordable). |
Indeed, I was mentioning write-once (DVD+R in my case). |
Looking into pktcdvd.ko source code and it looks like that packet writing it possible only for CD-RW, DVD+RW, DVD-RW and DVD-RAM medias, see: So I think you cannot use standard write() syscall on DVD+R media via pktcdvd. Last time I tested scenario: created cdr and dvdr images by mkudffs and then burned them to real cdr and dvdr discs via wodim and it worked. Burning process does not use write() syscall but rather ioctl(), so pktcdvd layer does not used. |
I guess that this was expected to work at some time (possibly long ago) because the udftools howto explicitly says: Packet writing is possible both with write-once media |
I looked at code and there was no support for CD-R directly in kernel/VFS. You always had to use some burner/packetwriting SW in userspace to write new data to CD-R disc. udftools has wrudf utility which has some limited support for packet writing also for CD-R (and maybe also for DVD+-R). So that howto probably refers to wrudf, not in-kernel support. Kernel had and has only support for -RW and -RAM media. |
Thanks. I had a look at wrudf. My question is how to "prepare" the initial udf filesystem for the medium, since it does not seem to have a command for that. |
wrudf is mostly in unmaintained state, so expect problems. You would have to figure out if it works and how. If you need empty CD-R UDF image, you can create it by mkudffs (it has option -m cdr) and then burn via some burning application (use packet writing and do close media). |
Another option for preparing initial filesystem is via |
what about VAT suport |
VAT is what is used for UDF write-once media. |
well it is udftools |
I do not understand for what you are asking. VAT is used for UDF write-once media. So if you create image for CD-R, DVD-R or BD-R media via mkudffs then mkudffs automatically create VAT in these images. |
Howto mentions the possibility of using packet writing on write once media (CD/DVD +R or -R). However, it is unclear how this should be done:
is the
dvd+rw-format
command used? How? The--force
option seems incorrect being meant to wipe, which does not seem to make sense on this media. Furthermore, the tool webpage states that only "RW" media needs to be formatted.is the
growisofs -Z /dev/hdc=/dev/zero
needed? Seems strange, as pre-writing an image on a write-once media would make it unusable for any further recording.Without these two commands,
mkudffs --media-type dvdr /dev/pktcdvd0
returnsmkudffs: Error: Cannot create new image file '/dev/pktcdvd0': block-count was not specified
The text was updated successfully, but these errors were encountered: