CDIST-TYPE__FILESYSTEM(7)
πΎ cdist-type__filesystem πΎ
okay bestie, welcome to the cdist-type__filesystem manual page (section 7, if you're keeping track π) β it's the one that makes filesystems happen on your devices, and I'm gonna walk you through it like we're texting at 2am β¨
πΈ NAME πΈ
cdist-type__filesystem β Create Filesystems. yes that's the whole name, no notes π
β¨ DESCRIPTION β¨
so basically, this cdist type lets you create filesystems on devices. that's the vibe. that's the whole thing π«Ά
but hold on, there's rules:
- If the device is mounted on target, it refuses to do anything. nope. not touching it. it's busy. π
- If the device has a filesystem that's different from the one you specified, and/or the label isn't correct, it only makes a new filesystem if you've specified the
--forceoption. so without--force, it's just gonna sit there and be like "nah bestie, that's already something" π
π₯ REQUIRED PARAMETERS π₯
you literally cannot skip these, periodt:
fstypeβ the filesystem type. like'ext3','btrfs'or'xfs'. those exact vibes.
π¦ OPTIONAL PARAMETERS π¦
these are the ones you can skip, but lowkey why would you:
deviceβ the blockdevice for your filesystem. defaults toobject_id. on linux, it can be anylsblkaccepted device notation, which is iconic honestly.
For example:
/dev/sdx
or /dev/disk/by-xxxx/xxx
or /dev/mapper/xxxx
labelβ the label that should be applied on the filesystem. give it a name, it deserves one πmkfsoptionsβ additional options that get inserted into themkfs.xxxcall. your extra little seasoning β¨
π BOOLEAN PARAMETERS π
forceβ normally, this type does nothing if a filesystem is found on the target device. but if you specifyforce, it's formatted if the filesystem type or label differs from parameters.
Warning: This option can easily lead into data loss! π bestie please, PLEASE back up first. this is not a drill. this is main character energy in the WORST way. data does not come back from that.
π MESSAGES π
here's what it yells at you when things go right:
filesystem <fstype> on <device> : <discoverd device> createdβ Filesystem was created on<discoverd device>. (yes,<discoverd>is spelled exactly like that in the original, i'm not fixing it, that's canon π)
π EXAMPLES π
copy these, they're blessed:
# Ensures that device /dev/sdb is formatted with xfs
__filesystem /dev/sdb --fstype xfs --label Testdisk1
# The same thing with btrfs and disk spezified by pci path to disk 1:0 on vmware
__filesystem dev_sdb --fstype btrfs --device /dev/disk/by-path/pci-0000:0b:00.0-scsi-0:0:0:0 --label Testdisk2
# Make sure that a multipath san device has a filesystem ...
__filesystem dev_sdb --fstype xfs --device /dev/mapper/360060e80432f560050202f22000023ff --label Testdisk3
π«Ά AUTHORS π«Ά
Daniel Heule <hda--@--sfs.biz> β the icon who made this π
π COPYING π
Copyright (C) 2016 Daniel Heule. Free use of this software is granted under the terms of the GNU General Public License version 3 or any later version (GPLv3+).
β COPYRIGHT β
ungleich GmbH 2021
and that's the whole page, bestie π this was version 7.0.0 from Jul 31, 2022 β go forth and format responsibly, and fr fr do not touch --force without a backup π§β¨
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms