"wodim -msinfo" breaks other commands that use it, by inserting too many lines in stdout

Bug #432166 reported by komputes
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cdrkit (Ubuntu)
New
Undecided
Unassigned

Bug Description

wodim is used as a replacement for cdrecord, yet it outputs too many lines in stdout to be used properly in a command such as the following:

mkisofs -J -r -V Session2 -C `cdrecord dev=0,0 -msinfo` -M 0,0 -o output.iso /path/to/back/up

This command is found here: http://howto-pages.org/cdwriting/08.php

"cdrecord -msinfo" used to identify only the "last_sess_start,next_sess_start" which is needed for using multi-session media. This used to be usable directly in a command such as the one above. "wodim -msinfo" breaks commands by inserting too many lines in stdout.

The command "wodim -msinfo" currently outputs the following:
WARNING: the deprecated pseudo SCSI syntax found as device specification.
Support for that may cease in the future versions of wodim. For now,
the device will be mapped to a block device file where possible.
Run "wodim --devices" for details.
77856,86010

Requesting (expecting) that the command "wodim -msinfo" output only the following:
77856,86010

==

Workaround:

# Generates ISO image session1 from dir1
genisoimage -J -r -V session1 -o /tmp/session1.iso /home/me/dir1

# Burns at session1 at 4x
wodim speed=4 fs=16m -v -multi -eject /tmp/session1.iso

# Reads the CDs last session start, next session start and writes it to
/tmp/msi
wodim -msifile=/tmp/msi

# Generates ISO image session2 from dir2
# using the content of /tmp/msi as the multi-session offset
genisoimage -J -r -V session2 -C $(cat /tmp/msi) -M '/dev/scd0' -o
/tmp/session2.iso /home/me/dir2

# Burns at session2 at 4x
wodim speed=4 fs=16m -v -multi -eject /tmp/session2.iso

ProblemType: Bug
Architecture: i386
CheckboxSubmission: 19ba8f45e3d3d7bf348103cee5a0eeaa
CheckboxSystem: 099634613a96bc3665b92c4a813055e8
Date: Thu Sep 17 18:54:54 2009
DistroRelease: Ubuntu 9.10
Package: wodim 9:1.1.9-1ubuntu1
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.34-generic
SourcePackage: cdrkit
Uname: Linux 2.6.31-10-generic i686

Revision history for this message
komputes (komputes) wrote :
komputes (komputes)
summary: - "wodim -msinfo" breaks commands by inserting too many lines in stdout
+ "wodim -msinfo" breaks other commands that use it, by inserting too many
+ lines in stdout
Revision history for this message
Schily (schilling-fokus) wrote :

Upgrading to original software

ftp://ftp.berlios.de/pub/cdrecord/alpha/
http://cdrecord.berlios.de/

fixes the problem. This is one of the bugs that have been introduced by the
"creators" of wodim.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.