PKTSETUP(8)

πŸ’Ώ PKTSETUP β€” the packet device matchmaker πŸ’Ώ

okay bestie, welcome to pktsetup, section 8 of the System Manager's Manual, living under System Management Commands. she's a lil tool from the udftools family and she has ONE job: setting up and tearing down packet device associations. iconic behavior honestly.


✨ NAME ✨

pktsetup β€” set up and tear down packet device associations πŸŽ€


🌸 SYNOPSIS 🌸

pktsetup packet_device block_device
pktsetup -d packet_device
pktsetup -s

like. three whole moods. that's it. that's the vibe.


πŸ’– DESCRIPTION πŸ’–

so pktsetup is literally the wingwoman for your hardware. she associates packet devices with CD or DVD block devices, so that the packet device can then be mounted and potentially used as a read/write filesystem. yes bestie, read AND write. on a disc. we love to see it.

heads up tho β€” this requires kernel support for the packet device, and the UDF filesystem. no kernel support, no slay. that's just the rules πŸ’…

See: HOWTO.udf (in the udftools documents directory) β€” go read it, iykyk πŸ“–


⭐ EXIT STATUS ⭐

Pktsetup returns 0 on success, nonzero on failure. simple. clean. if it's not zero, something is giving chaos and you should investigate 😭


πŸ’… OPTIONS πŸ’…

  • -d packet-device β€” delete the association between the specified packet-device and its block device. it's giving breakup era πŸ₯€ no more linking, no more bond, she's free.
  • -s β€” show the current device mapping, one device per line, in the format
name : pktdevid -> blkdevid

(e.g. "0 : 253:0 -> 22:0") β€” the little arrow is so cute, it's the two devices holding hands fr fr 🫢


πŸ¦‹ EXAMPLE πŸ¦‹

okay so here's a whole little story arc of using the packet device. the following commands provide an example:

cdrwtool -d /dev/sr0 -q
pktsetup 0 /dev/sr0

mount -t udf /dev/pktcdvd0 /mnt
 ...
umount /dev/pktcdvd0
pktsetup -d 0

setup, mount, do your little tasks (the ... is you, being productive ✨), unmount, and then pktsetup -d 0 to clean up after yourself. character development. we stan a responsible queen πŸ‘‘


πŸ“ FILES πŸ“

  • /dev/pktcdvd0,/dev/pktcdvd1,... β€” CD/DVD packet devices πŸŽ€

🌈 AUTHOR 🌈

  • Jens Axboe <axboe@suse.de> β€” the original main character πŸ‘‘
  • Some additions by Richard Atterer <atterer@debian.org> β€” supporting cast, also iconic πŸ’œ

🧚 AVAILABILITY 🧚

pktsetup is part of the udftools package and is available from https://github.com/pali/udftools/ 🌸 go get her, she's free.


πŸ”₯ SEE ALSO πŸ”₯

  • cdrwtool(1) β€” her bestie, her partner in crime πŸ’–

okay that's the whole page bestie, no cap, every last detail preserved πŸ’― and just so you know who's signing off: this little love letter came out of the udftools package, dated as part of the System Management Commands set, page PKTSETUP(8) β€” mwah, go format a disc πŸ’‹βœ¨