CDRWTOOL(1)
πΏ CDRWTOOL(1) πΏ
okay so bestie, welcome to the General Commands Manual, and this is cdrwtool β she does stuff to your optical media and she does it with main character energy. β¨
πΈ NAME πΈ
cdrwtool β perform various actions on a CD-R, CD-RW, and DVD-R
π SYNOPSIS π
cdrwtool -d device -i | -g
cdrwtool -d device -s [ write-parameters ]
cdrwtool -d device -q [ write-parameters ]
cdrwtool -d device -m offset [ write-parameters ]
cdwrtool -d device -u blocks [ write-parameters ]
cdrwtool -d device -b b_mode [ write-parameters ]
cdrwtool -d device -c blocks [ write-parameters ]
cdwrtool -d device -f filename [ write-parameters ]
cdwrtool -d device -r track [ write-parameters ]
cdrwtool -h
(and yes, the <cyan>cdwrtool</cyan> spellings up there are exactly how they appear, no cap β we don't fix, we preserve π
)
β¨ DESCRIPTION β¨
So like, cdwrtool can perform certain actions on a CD-R, a CD-RW, or a DVD-R device. Mainly?? It's blanking the media, formatting it for use with the packet-cd device, and applying an UDF filesystem. it's giving "one tool, three jobs, zero complaints." π₯
The most common usage is probably the quick setup option:
cdrwtool -d device -q
which will blank the disc, format it as one large track, and write the UDF filesystem structures. literally the whole glow-up in one command π¦
Other options get and set various parameters of how the device is set up, and provide for different offsets, modes and settings from the defaults.
ngl, the usefulness of most of the options is not explained. the manpage said it, not me. π
π OPTIONS π
Main directives π«Ά
-ddevice β Specify the device to use. eg./dev/sr0. bestie, tell her where to work.-iβ Print disc track info.-gβ Print write parameters.-ulength β Make a UDF filesystem using length number of blocks.-qβQuick setup: blank the disc, format it as one large track and write a UDF filesystem.-moffset β Format the disc at offset number of blocks.-bmode β Blank the disk using a mode offullorfast.-ffilename β Write file.-ctrack β Close track.-rtrack β Reserve track.-zlength β Fixed packet length.-sβ Set write parameters determined by-l,-w, and-poptions for the disc.-vversion β Specify the udf revision to use. Valid revisions are0x0201,0x0200and0x0150. If omitted, mkudffs udf-version is0x0150. (so the default is the oldest one, fyi π·)-hβ Prints a sparse help message. sparse!! she's not gonna hold your hand, she's gonna hand you a vibe check π
Write parameters π
-tspeed β Set write speed. (Defaults to 12x ?) β yes the question mark is canon, we keep it π-ltype β Set multi-session field. Either0(default),1, or3, corresponding toNo B0 pointer. Next Session not allowed,B0 pointer = FF:FF:FF. Next session not allowed, andNext session allowed. B0 pointer = next possible program arearespectively.-wmode β Set write mode. Eithermode1ormode2(default).-ptype β Set packet type. Either0or1(default), corresponding to variable and fixed packet sizes respectively.-ooffset β Set write offset.
π BUGS π
Many modern drives refuse on the preparations to format new, blanked, or appendable CD-RW media. This causes a message like
Command failed: 55 ... - sense ...
and you're just standing there like π§βοΈ okay. π
The remedy is to use a CD-capable burn program for writing a session and closing the medium. For example by using any of "cdrecord", "wodim", "cdrskin", or "xorriso -as cdrecord" as content of variable prog in:
prog="xorriso -as cdrecord"
drive="/dev/sr0"
dd if=/dev/zero bs=1M count=10 | $prog -v -eject dev="$drive" -
no cap, that's the fix. π«Ά
π AUTHORS π
- Jens Axboe
<axboe@suse.de> - Ben Fennema
- Some additions by Richard Atterer
<atterer@debian.org> - BUGS note about closing medium by Thomas Schmitt
<scdbackup@gmx.net>
β AVAILABILITY β
cdrwtool is part of the udftools package and is available from https://github.com/pali/udftools/. go get her ποΈ
π¦ SEE ALSO π¦
pktsetup(8), cdrecord(1), wodim(1), cdrskin(1), xorriso(1)
and that's the whole page, bestie!! π this one's from the udftools era, living in the Commands section of the manual β authored with love back in the day, and yeah the date field's just kinda vibing empty, iconic behavior honestly. periodt. π β¨π
π¦ where this page comes from
- alpine 3.24: udftools-doc 2.3-r2 Β· GPL-2.0-or-later
- arch rolling: udftools 2.3-3 Β· GPL
- debian bookworm: udftools 2.3-1 Β· GPL-2.0-or-later
- debian trixie: udftools 2.3-2 Β· GPL-2.0-or-later
- fedora 43: udftools 2.3-12.fc43 Β· GPL-2.0-or-later
- fedora 44: udftools 2.3-13.fc44 Β· GPL-2.0-or-later
- nixos 26.05: udftools 2.3
- nixpkgs unstable: udftools 2.3
- opensuse-leap 16.0: udftools 2.3-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: udftools 2.3-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: udftools 2.3-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: udftools 2.3-160000.2.2 Β· GPL-2.0-or-later
- ubuntu jammy: udftools 2.3-1 Β· GPL-2.0-or-later
- ubuntu noble: udftools 2.3-1build2 Β· GPL-2.0-or-later
- ubuntu questing: udftools 2.3-2
- ubuntu resolute: udftools 2.3-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: udftools 2.3-2build1 Β· GPL-2.0-or-later
- Copyright 2002 Paul Thompson <set@pobox.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms