Skip to content
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

Tool for cleaning up after a failed burn. (udf-toc-cleanup) #77

Open
HT-7 opened this issue Sep 18, 2024 · 0 comments
Open

Tool for cleaning up after a failed burn. (udf-toc-cleanup) #77

HT-7 opened this issue Sep 18, 2024 · 0 comments

Comments

@HT-7
Copy link

HT-7 commented Sep 18, 2024

After a burn is interrupted by a power outage or wobbly USB contact, the table of contents of the file system lists files that do not exist on the disc. Additionally, it lists one file that is incomplete if it was being written at the time of the interruption.

Therefore, creating a new table of content in a new session with the non-existent files removed becomes necessary after a failed burn.

After multisessioning is implemented in udftools , please add a tool like udf-toc-cleanup --sector=123456 which generates a new table of content with all files from after the specified sector removed, 123456 in this case. This is necessary because those files were never written to disc, so the references to them in the UDF table of contents are invalid.

On Blu-ray, unwritten sectors don't return an "out of range" I/O error but null-bytes, so specifying the last sector at which the last file has been written becomes necessary, or it can be guessed from the "next writable sector" paramter (which can be seen in dvd+rw-mediainfo, which also works on Blu-ray but not CD).

Of course, the tool should consider that the last file was not written completely, so it should also be removed from the new table of contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant