SYSTEMD-CLONESETUP(8)

πŸ“¦
version 262.1 Β· 2 versions
, in arch rolling

πŸ’– SYSTEMD-CLONESETUP πŸ’–

okay bestie, so you know how we're always out here cloning disks like it's nothing? yeah. this is that. we're talking systemd-clonesetup and its lil service buddy systemd-clonesetup@.service β€” together they set up and tear down dm-clone devices. it's giving disk-clone main character energy, fr fr. πŸ¦‹


✨ NAME ✨

systemd-clonesetup, systemd-clonesetup@.service β€” besties who set up and tear down dm-clone devices. no cap. πŸ’…


🌸 SYNOPSIS 🌸

systemd-clonesetup add NAME SOURCE-DEVICE DEST-DEVICE META-DEVICE
                   [OPTIONS]

systemd-clonesetup remove NAME

systemd-clonesetup@.service

like. that's it. that's the whole vibe check. 😌


πŸŽ€ DESCRIPTION πŸŽ€

so systemd-clonesetup is literally the tool that does the two things you need a clone device to do:

  • add β€” sets up (✨ creates ✨) a dm-clone device
  • remove β€” tears it down (πŸ’€ bye bestie)

and the way you'll mostly meet it is through systemd-clonesetup@.service units β€” those don't just appear out of nowhere, they get generated from /etc/clonetab by systemd-clonesetup-generator(8). it's a whole pipeline and honestly? iconic. πŸ‘‘

okay now the positional arguments β€” NAME, SOURCE-DEVICE, DEST-DEVICE, META-DEVICE and OPTIONS β€” these mean exactly the same thing as the fields of the same names in clonetab(5). same energy, same meaning, no surprises. 🀝

and about OPTIONS: right now the only supported option is region-size=BYTES, where BYTES is measured in bytes. and yes queen, standard suffixes like "K", "M" and "G" are supported, so you can absolutely write region-size=4M and be fine. πŸ“

ngl, don't go inventing options in there β€” region-size=BYTES is the whole menu rn. πŸ™ˆ

🌈 SEE ALSO 🌈

go read those too, bestie, they're all part of the lore. πŸ“šβœ¨


and that's the page!! brought to you by systemd version 262.1 β€” yeah, 262.1, remember it for the quiz πŸ’– thanks for reading my whole yap session, you're literally the best, mwah πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: systemd 262.1-1 Β· LGPL-2.1-or-later AND CC0-1.0 AND GPL-2.0-or-later AND MIT-0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms