Re: how to use cdrecord or wodim to tell avialable space on multi-session CD-R?
Hi,
> Hello. Is there a way to tell how much availble space are there on
> CD-R by using cdrecord or wodim?
cdrecord option -minfo (not to be confused with option -msinfo)
tells this by its last output line.
$ cdrecord dev=0,0,0 -minfo
...
Track Sess Type Start Addr End Addr Size
==============================================
1 1 Data 0 722 723
2 2 Data 12125 13616 1492
3 3 Data 20519 21598 1080
4 4 Blank 28501 359846 331346
Last session start address: 20519
Last session leadout start address: 21599
Next writable address: 28501
Remaining writable size: 331346
wodim only has the older option -toc which will tell you the
number of used blocks.
Like
track: 1 lba: 0 ( 0) 00:02:00 adr: 1 control: 4 mode: 1
track: 2 lba: 12125 ( 48500) 02:43:50 adr: 1 control: 4 mode: 1
track: 3 lba: 20519 ( 82076) 04:35:44 adr: 1 control: 4 mode: 1
track:lout lba: 21601 ( 86404) 04:50:01 adr: 1 control: 4 mode: -1
Here the space consumption is 21601 * 2048 bytes = 42.2 MB.
The next session will start after a gap of 14 to 20 MB.
(Fist gap is 23 MB, then some of 14 MB, and the rest will be 20 MB.)
Have a nice day :)
Thomas
Reply to: