K3B and editing a CD-RW
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
K3B and editing a CD-RW
Hi Folks,
This is my first posting here. I used to use Windows but am now a Linux user firs with Kubuntu, now on Mint.
I am posting a query about K3B.
What I am doing is burning onto a CD-RW or DVD-RW PDF documents. Lets say I have burned 5 of these called A, B, C, D and E. After some time, I then decide to remove from that CD-RW the document named E. I cannot see how to do this using K3b or Brasero.
In my dark days on Windows I used to use CDBurnerXP and with this, I could edit a burned CD-RW to remove documents if I wished.
Can anyone guide me - if this is possible - on how to do this on K3B please ?
Regards
Paneton
This is my first posting here. I used to use Windows but am now a Linux user firs with Kubuntu, now on Mint.
I am posting a query about K3B.
What I am doing is burning onto a CD-RW or DVD-RW PDF documents. Lets say I have burned 5 of these called A, B, C, D and E. After some time, I then decide to remove from that CD-RW the document named E. I cannot see how to do this using K3b or Brasero.
In my dark days on Windows I used to use CDBurnerXP and with this, I could edit a burned CD-RW to remove documents if I wished.
Can anyone guide me - if this is possible - on how to do this on K3B please ?
Regards
Paneton
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: K3B and editing a CD-RW
from memory, both K3b and Brasero will reject an CD-RW as the program will usually wish to finalise the burn,
and so cannot use an CD-RW disk.
when I've placed an CD-RW into the drive, by mistake, then that program will reject that disk,
and I've an request to replace that CD-RW with an CD-R type disk.
and so cannot use an CD-RW disk.
when I've placed an CD-RW into the drive, by mistake, then that program will reject that disk,
and I've an request to replace that CD-RW with an CD-R type disk.
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
Re: K3B and editing a CD-RW
Hi Pierre,
Thank you for your prompt reply.
It seems I may have been a little lucky. I don't have a problem burning onto the CD-RW discs I have. This includes documents and music.
The only issue is the removal of documents. For example If I create a folder for work and another for home stuff and then burn home stuff onto office by mistake I cant remove the office documents I placed in the office folder using K3B.
I am grateful for your reply.
Regards
Paneton
Thank you for your prompt reply.
It seems I may have been a little lucky. I don't have a problem burning onto the CD-RW discs I have. This includes documents and music.
The only issue is the removal of documents. For example If I create a folder for work and another for home stuff and then burn home stuff onto office by mistake I cant remove the office documents I placed in the office folder using K3B.
I am grateful for your reply.
Regards
Paneton
Re: K3B and editing a CD-RW
Hi,
i am not aware that the usual GUI programs would offer you to remove
already existing files from the directory tree of the new session.
xorriso can do it by its commands -rm for single files or -rm_r for
whole directory subtrees.
For example remove files /my/file.pdf /my/other_file.pfd and add two
new files as /my/new_file.pdf and /my/other_new_file.pdf:
If you describe you use case in more detail, then i can give a more
particular example.
Be aware that each new session on CD wastes several MB by a gap on
the medium and that at most 99 sessions can be written. (Ususally the
waste prevents that much sessions unless each of them is very small.)
-------------------------------------------------------------------
There is a GUI frontend xorriso-tcltk, mostly as demo for real GUI
programmers, which offers a button "Delete" at the very bottom of its
window.
xorriso-tcltk is available as Debian package
https://packages.debian.org/buster/xorriso-tcltk
https://packages.debian.org/unstable/xorriso-tcltk
or from upstream development
https://dev.lovelyhq.com/libburnia/libi ... riso-tcltk
It needs Tcl, Tk, and also BWidget for rudimentary file browsing by the
"/" buttons.
Click by the right mouse button on any GUI element to see its help text,
which might point you to man xorriso for deeper information.
The dark "Help" button on the upper right of the window gives an overview
of the window layout and a few use cases. Yours would be "Add more data
to an appendable medium or to an ISO image data file".
-------------------------------------------------------------------
Pierre wrote:
> from memory, both K3b and Brasero will reject an CD-RW as the program
> will usually wish to finalise the burn,
There is no general rejection of CD-RW by K3B. A normal burn run to CD-RW
does not differ from CD-R, except for speed. The differences between both
media types show up by the opportunity to blank a CD-RW for re-use or
to format it in order to make it overwritable (i advise not to do this).
It might be that K3B rejects formatted CD-RW, though. One can recognize
them by file managers reporting only ~ 550 MB of disc capacity.
Have a nice day
Thomas
i am not aware that the usual GUI programs would offer you to remove
already existing files from the directory tree of the new session.
xorriso can do it by its commands -rm for single files or -rm_r for
whole directory subtrees.
For example remove files /my/file.pdf /my/other_file.pfd and add two
new files as /my/new_file.pdf and /my/other_new_file.pdf:
Code: Select all
xorriso -dev /dev/sr0 \
-rm /my/file.pdf /my/other_file.pfd -- \
-map "$HOME"/pdfs/new_file.pdf /my/new_file.pdf \
-map "$HOME"/pdfs/other_new_file.pdf /my/other_new_file.pdf
particular example.
Be aware that each new session on CD wastes several MB by a gap on
the medium and that at most 99 sessions can be written. (Ususally the
waste prevents that much sessions unless each of them is very small.)
-------------------------------------------------------------------
There is a GUI frontend xorriso-tcltk, mostly as demo for real GUI
programmers, which offers a button "Delete" at the very bottom of its
window.
xorriso-tcltk is available as Debian package
https://packages.debian.org/buster/xorriso-tcltk
https://packages.debian.org/unstable/xorriso-tcltk
or from upstream development
https://dev.lovelyhq.com/libburnia/libi ... riso-tcltk
It needs Tcl, Tk, and also BWidget for rudimentary file browsing by the
"/" buttons.
Click by the right mouse button on any GUI element to see its help text,
which might point you to man xorriso for deeper information.
The dark "Help" button on the upper right of the window gives an overview
of the window layout and a few use cases. Yours would be "Add more data
to an appendable medium or to an ISO image data file".
-------------------------------------------------------------------
Pierre wrote:
> from memory, both K3b and Brasero will reject an CD-RW as the program
> will usually wish to finalise the burn,
There is no general rejection of CD-RW by K3B. A normal burn run to CD-RW
does not differ from CD-R, except for speed. The differences between both
media types show up by the opportunity to blank a CD-RW for re-use or
to format it in order to make it overwritable (i advise not to do this).
It might be that K3B rejects formatted CD-RW, though. One can recognize
them by file managers reporting only ~ 550 MB of disc capacity.
Have a nice day
Thomas
Re: K3B and editing a CD-RW
Hi Scdbackup,
Grateful fir your reply.
You asked..." If you describe you use case in more detail, then i can give a more particular example".
I am compiling articles from magazines as I go. These articles are scanned and then I save them in files onto a CD-RW or DVD-RW. The files I have are House Insurance, Car Insurance, Saving Account Articles and so on. So when I come across an article on say, House Insurance that I believe is interesting to record for future use, I scan this and then save it in the House Insurance File. I have many articles saved on each subject which are backed up on a disk (either CD-RW or DVD-RW). What happened is that an article I read on House Insurance was loaded by mistake on the Car Insurance File on the disk. Having done this I wanted to move the file on the CD-RW disk from the Car Insurance File to the House Insurance File and removing the article from the Car Insurance File on the CD-RW.
On Windows, using CDBurnerXP removing a file already on a CD-RW is possible.
I wanted to know if this can be achieved using K3B as I couldn't see how to do this. Alternatively, are there any other burning programmes such as Brasero or XFburn or another for example that could offer this feature ?
Regards and thanks again for your response.
Paneton
Grateful fir your reply.
You asked..." If you describe you use case in more detail, then i can give a more particular example".
I am compiling articles from magazines as I go. These articles are scanned and then I save them in files onto a CD-RW or DVD-RW. The files I have are House Insurance, Car Insurance, Saving Account Articles and so on. So when I come across an article on say, House Insurance that I believe is interesting to record for future use, I scan this and then save it in the House Insurance File. I have many articles saved on each subject which are backed up on a disk (either CD-RW or DVD-RW). What happened is that an article I read on House Insurance was loaded by mistake on the Car Insurance File on the disk. Having done this I wanted to move the file on the CD-RW disk from the Car Insurance File to the House Insurance File and removing the article from the Car Insurance File on the CD-RW.
On Windows, using CDBurnerXP removing a file already on a CD-RW is possible.
I wanted to know if this can be achieved using K3B as I couldn't see how to do this. Alternatively, are there any other burning programmes such as Brasero or XFburn or another for example that could offer this feature ?
Regards and thanks again for your response.
Paneton
Re: K3B and editing a CD-RW
scdbackup sounds more competent than me as to advise specifically in the CD/DVD context but I believe you may have in Windows been using something called "Packet Writing" which as far I am aware is not so much a thing in the (normal) Linux burners. Largely because, as I wanted to remark on, few people care for it since they simply use e.g. an external USB drive. CD-RW and certainly DVD-RW media-longevity often/normally sucks anyway so is simply backing up to an external USB-drive not more useful advise, even if seemingly a bit lame as an answer to the specific query?
Re: K3B and editing a CD-RW
Hi,
Paneton wrote:
> Having done this I wanted to move the file on the CD-RW disk from the
> Car Insurance File to the House Insurance File and removing the article
> from the Car Insurance File on the CD-RW.
So both insurance directories are on the same CD-RW ?
What i don't know are their paths on CD-RW and the name of the file in
the car directory on the CD-RW. Assuming "/car/insurance",
"/house/insurance", and "2019.pdf", i propose to do:
This depends on the CD-RW being written with ISO 9660 filesystem (K3B will
hardly do multi-session with UDF), still being appendable (K3B setting at
the last occasion it wrote to the CD-RW) and offering enough room for another
session (wasted gap plus new directory tree size, depending on number of
file and directory names).
> are there any other burning programmes [...] hat could offer this feature ?
There is "isomaster", which promises to offer editing. But afaik it
works only on image files, not on real CD-RW.
So for now only xorriso remains as direct editor for sequential optical
media. It works by multi-session:
A new superblock, a new directory tree, and maybe new file content data
get written to a new session and track on the unformatted CD-RW. The new
directory tree usually points to some file content in older sessions and
to the maybe new file content.
Since the directory tree is completely new, any file can change its path
or vanish from the tree by decision of the editor program and its user.
By convention, the operating systems mount the superblock of the first
track in the last session on medium.
The older superblocks and directory trees are still there. Linux mount
offers for -t iso9660 the -o options session= and sbsector=. By these
options one can mount older sessions by their session number (beginnng
at 1) or by the start block number of the session (beginning at 0).
session= only works for CD media, not for DVD or BD. sbsector= works for
all media.
Run
to get a list of recorded sessions and their sbsector= addresses.
(Other info runs would be: wodim -toc, cdrecord -minfo, cdrskin -minfo.)
rene wrote:
> you may have in Windows been using something called "Packet Writing"
> which as far I am aware is not so much a thing in the (normal) Linux
> burners.
That would be what udftools does. See:
https://sources.debian.org/src/udftools ... HOWTO.udf/
cdrwtool, pktsetup, and mkudffs will create a random access read-write
filesystem.
But the hardware will suffer miserably. Just listen to the noises
when the CD is used as hard disk substitute.
I googled for CDBurnerXP and found indication that it does not use
packet writing on formatted CD-RW but rather multi-session on sequential
CD-RW. The medium description of CD-RW on
https://cdburnerxp.se/help/Appendices/disctypes
says
"If you want to use this type of disc like a floppy disc, you have
to use programs like Nero InCD."
This sentence matches a read-write filesystem on formatted CD-RW.
Have a nice day
Thomas
Paneton wrote:
> Having done this I wanted to move the file on the CD-RW disk from the
> Car Insurance File to the House Insurance File and removing the article
> from the Car Insurance File on the CD-RW.
So both insurance directories are on the same CD-RW ?
What i don't know are their paths on CD-RW and the name of the file in
the car directory on the CD-RW. Assuming "/car/insurance",
"/house/insurance", and "2019.pdf", i propose to do:
Code: Select all
xorriso -dev /dev/sr0 -move /car/insurance/2019.pdf /house/insurance/2019.pdf
hardly do multi-session with UDF), still being appendable (K3B setting at
the last occasion it wrote to the CD-RW) and offering enough room for another
session (wasted gap plus new directory tree size, depending on number of
file and directory names).
> are there any other burning programmes [...] hat could offer this feature ?
There is "isomaster", which promises to offer editing. But afaik it
works only on image files, not on real CD-RW.
So for now only xorriso remains as direct editor for sequential optical
media. It works by multi-session:
A new superblock, a new directory tree, and maybe new file content data
get written to a new session and track on the unformatted CD-RW. The new
directory tree usually points to some file content in older sessions and
to the maybe new file content.
Since the directory tree is completely new, any file can change its path
or vanish from the tree by decision of the editor program and its user.
By convention, the operating systems mount the superblock of the first
track in the last session on medium.
The older superblocks and directory trees are still there. Linux mount
offers for -t iso9660 the -o options session= and sbsector=. By these
options one can mount older sessions by their session number (beginnng
at 1) or by the start block number of the session (beginning at 0).
session= only works for CD media, not for DVD or BD. sbsector= works for
all media.
Run
Code: Select all
xorriso -outdev /dev/sr0 -toc
(Other info runs would be: wodim -toc, cdrecord -minfo, cdrskin -minfo.)
rene wrote:
> you may have in Windows been using something called "Packet Writing"
> which as far I am aware is not so much a thing in the (normal) Linux
> burners.
That would be what udftools does. See:
https://sources.debian.org/src/udftools ... HOWTO.udf/
cdrwtool, pktsetup, and mkudffs will create a random access read-write
filesystem.
But the hardware will suffer miserably. Just listen to the noises
when the CD is used as hard disk substitute.
I googled for CDBurnerXP and found indication that it does not use
packet writing on formatted CD-RW but rather multi-session on sequential
CD-RW. The medium description of CD-RW on
https://cdburnerxp.se/help/Appendices/disctypes
says
"If you want to use this type of disc like a floppy disc, you have
to use programs like Nero InCD."
This sentence matches a read-write filesystem on formatted CD-RW.
Have a nice day
Thomas
Re: K3B and editing a CD-RW
Hi Thomas,
Thank you very much for your reply.
I will look at xorriso and experiment with this.
Many thanks for your time.
Regards
Paneton
Thank you very much for your reply.
I will look at xorriso and experiment with this.
Many thanks for your time.
Regards
Paneton
Re: K3B and editing a CD-RW
Hi,
> I will look at xorriso and experiment with this.
I advise to practice with a CD-RW which does not contain valuable data.
The work flow is like this:
The first session is written by not loading possible CD-RW content,
blanking the CD-RW if it is not yet blank by mode "as_needed",
and mapping some files or directory trees into the ISO:
Command -for_backup causes MD5 checksums to be added for the whole session
and for each of the data files. At any time after burning ou may verify
the whole session by a run of
which should after some pacifier messages and many seconds report
something like
If there are problems with reading, there will appear error messages
among the pacifiers and "Media region" lines with "-" signs. Like here
with the two Run-out blocks of a CD written with write type TAO:
This is normally harmless unless a line reports an MD5 mismatch:
Further sessions to the same CD-RW get added by loading and MD5-checking
the ISO 9660 meta data of the youngest session on the CD-RW, not blanking
the CD-RW, and applying xorriso manipulation commands:
Command -rm expects a variable list of file names. This list has to be
ended by argument "--".
The commands -indev and -dev load existing ISO 9660 metadata. If no
ISO 9660 filesystem is found, then -indev fails and -dev works like
-outdev.
The command -outdev does not load metadata and does not expect the
medium to be in a usable state. After emitting this command, other
commands may make the medium usable for writing, if desired.
Again the CD-RW content can be verified by above -check_media command.
-----------------------------------------------------------------------
One should develop elaborate xorriso runs in shell scripts, which can be
executed by just giving their name so that the user doesn't need to
remember all xorriso details each time a burn run is desired.
My own workflow for mirroring hard disk directories to DVD and BD media
is more automated by using command -update_r, which compares trees on
hard disk and on the CD-RW and manipulates the CD-RW tree to look like
the current state of the hard disk tree.
If i want to erease a re-usable medium, i blank it in a separate run:
Every day i run a command like this on the backup medium until it is full:
-abort_on tells xorriso to only give up with this run if a fatal event
is encountered. Any halfways tolerable event will not prevent the
execution of the further xorriso commands.
-assert_volid will throw a fatal event if the medium is not blank and
does not have a volume id that begins by the text "HOMEOFFICE_". This
keeps you safe from inserting the wrong medium whose content might be
completely unrelated to /home/paneton on hard disk.
-volid sets a volume id for the new session, composed from the marker
text and the formatted output of shell command "date". Like
"HOMEOFFICE_2020_04_24_125143". The volume id may have up to 32
characters. You will see it as name of the medium in file managers.
The -update_r commands manipulate the ISO trees /car/insurance and
/house/inurance so that they match the hard disk trees.
-commit triggers the burn run. In the runs above it was executed
automatically at the end of the xorriso run. But here i want more
activitites after the burn is completed.
-toc lists the sessions recorded so far, including the new one.
-check_md5 verifies the new session but not the old ones.
-eject "all" lets the drive tray come out, if it has a motor.
A -toc report of my noon backup looks like:
If i want to mount the particular backup state of april 4 2020, i let
xorriso determine and execute the necessary Linux mount command:
which reports
and makes the backup state available in directory /mnt/iso which has
already to exist on hard disk.
Have a nice day
Thomas
> I will look at xorriso and experiment with this.
I advise to practice with a CD-RW which does not contain valuable data.
The work flow is like this:
The first session is written by not loading possible CD-RW content,
blanking the CD-RW if it is not yet blank by mode "as_needed",
and mapping some files or directory trees into the ISO:
Code: Select all
xorriso -for_backup \
-outdev /dev/sr0 \
-blank as_needed \
-map /home/paneton/car/insurance /car/insurance \
-map /home/paneton/house/insurance /house/insurance
and for each of the data files. At any time after burning ou may verify
the whole session by a run of
Code: Select all
xorriso -for_backup -indev /dev/sr0 -check_media --
something like
Code: Select all
Media checks : lba , size , quality
Media region : 0 , 3776 , + good
Media region : 3776 , 32 , + slow
Media region : 3808 , 113632 , + good
MD5 checks : lba , size , result
MD5 tag range: 0 , 117139 , + md5_match
among the pacifiers and "Media region" lines with "-" signs. Like here
with the two Run-out blocks of a CD written with write type TAO:
Code: Select all
libburn : SORRY : SCSI error on read_10(117440,1): [5 26 00] Illegal request. Invalid field in parameter list.
libburn : SORRY : SCSI error on read_10(117441,1): [5 26 00] Illegal request. Invalid field in parameter list.
...
Media region : 117440 , 2 , - unreadable
Code: Select all
MD5 tag range: 0 , 117139 , - md5_mismatch
the ISO 9660 meta data of the youngest session on the CD-RW, not blanking
the CD-RW, and applying xorriso manipulation commands:
Code: Select all
xorriso -for_backup \
-dev /dev/sr0 \
-map /home/paneton/car/insurance/2020.pdf /car/insurance/2020.pdf \
-rm /home/paneton/house/insurance/offer_2004.pdf --
ended by argument "--".
The commands -indev and -dev load existing ISO 9660 metadata. If no
ISO 9660 filesystem is found, then -indev fails and -dev works like
-outdev.
The command -outdev does not load metadata and does not expect the
medium to be in a usable state. After emitting this command, other
commands may make the medium usable for writing, if desired.
Again the CD-RW content can be verified by above -check_media command.
-----------------------------------------------------------------------
One should develop elaborate xorriso runs in shell scripts, which can be
executed by just giving their name so that the user doesn't need to
remember all xorriso details each time a burn run is desired.
My own workflow for mirroring hard disk directories to DVD and BD media
is more automated by using command -update_r, which compares trees on
hard disk and on the CD-RW and manipulates the CD-RW tree to look like
the current state of the hard disk tree.
If i want to erease a re-usable medium, i blank it in a separate run:
Code: Select all
xorriso -outdev /dev/sr0 -blank as_needed
Code: Select all
xorriso -abort_on FATAL \
-for_backup \
-assert_volid 'HOMEOFFICE_*' FATAL \
-dev /dev/sr0 \
-volid HOMEOFFICE_"$(date '+%Y_%m_%d_%H%M%S')" \
-update_r /home/paneton/car/insurance /car/insurance \
-update_r /home/paneton/house/insurance /house/insurance \
-commit \
-toc \
-check_md5 FAILURE -- \
-eject all
is encountered. Any halfways tolerable event will not prevent the
execution of the further xorriso commands.
-assert_volid will throw a fatal event if the medium is not blank and
does not have a volume id that begins by the text "HOMEOFFICE_". This
keeps you safe from inserting the wrong medium whose content might be
completely unrelated to /home/paneton on hard disk.
-volid sets a volume id for the new session, composed from the marker
text and the formatted output of shell command "date". Like
"HOMEOFFICE_2020_04_24_125143". The volume id may have up to 32
characters. You will see it as name of the medium in file managers.
The -update_r commands manipulate the ISO trees /car/insurance and
/house/inurance so that they match the hard disk trees.
-commit triggers the burn run. In the runs above it was executed
automatically at the end of the xorriso run. But here i want more
activitites after the burn is completed.
-toc lists the sessions recorded so far, including the new one.
-check_md5 verifies the new session but not the old ones.
-eject "all" lets the drive tray come out, if it has a motor.
A -toc report of my noon backup looks like:
Code: Select all
Media current: BD-R sequential recording
...
TOC layout : Idx , sbsector , Size , Volume Id
ISO session : 1 , 0 , 2112619s , HOME_2020_02_15_121306
ISO session : 2 , 2112800 , 44925s , HOME_2020_02_16_110515
...
ISO session : 48 , 4547136 , 55533s , HOME_2020_04_02_122144
...
ISO session : 69 , 5563680 , 54561s , HOME_2020_04_23_110446
ISO session : 70 , 5618400 , 37873s , HOME_2020_04_24_120902
Media summary: 70 sessions, 5656448 data blocks, 10.8g data, 12.5g free
xorriso determine and execute the necessary Linux mount command:
Code: Select all
sudo xorriso -osirrox on -mount /dev/sr0 volid '*_2020_04_02_*' /mnt/iso
Code: Select all
mount -t iso9660 -o nodev,noexec,nosuid,ro,sbsector=4547136 '/dev/sr0' '/mnt/iso'
already to exist on hard disk.
Have a nice day
Thomas
Re: K3B and editing a CD-RW
Oh, you sooo scared him away...
Re: K3B and editing a CD-RW
Don't understimate the ruggedness of those who still burn data on CD-RW. 