CDRWTOOL(1)

πŸ“¦
version 2.3 Β· 2 versions
  • 2.3 Β· alpine 3.24, arch rolling, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.2 Β· centos-stream 9
, in alpine 3.24, arch rolling, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’Ώ 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 🫢

  • -d device β€” Specify the device to use. eg. /dev/sr0. bestie, tell her where to work.
  • -i β€” Print disc track info.
  • -g β€” Print write parameters.
  • -u length β€” 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.
  • -m offset β€” Format the disc at offset number of blocks.
  • -b mode β€” Blank the disk using a mode of full or fast.
  • -f filename β€” Write file.
  • -c track β€” Close track.
  • -r track β€” Reserve track.
  • -z length β€” Fixed packet length.
  • -s β€” Set write parameters determined by -l, -w, and -p options for the disc.
  • -v version β€” Specify the udf revision to use. Valid revisions are 0x0201, 0x0200 and 0x0150. If omitted, mkudffs udf-version is 0x0150. (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 πŸŽ€

  • -t speed β€” Set write speed. (Defaults to 12x ?) β€” yes the question mark is canon, we keep it πŸ’–
  • -l type β€” Set multi-session field. Either 0 (default), 1, or 3, corresponding to No B0 pointer. Next Session not allowed, B0 pointer = FF:FF:FF. Next session not allowed, and Next session allowed. B0 pointer = next possible program area respectively.
  • -w mode β€” Set write mode. Either mode1 or mode2 (default).
  • -p type β€” Set packet type. Either 0 or 1 (default), corresponding to variable and fixed packet sizes respectively.
  • -o offset β€” 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. πŸ’…βœ¨πŸŽ€