Re: labeling drives, related to the file system choice
Bastien TRAVERSE <[email protected]> Thu, 26 Sep 2024 13:38:49 +0200
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
[Forgot to cc' the list when I replied yesterday, copying the reply here so people know this has been answered] Hi phil, >1. where is the best place to find all the documentation around cryptsetup, the commands, If you check out the project's homepage[0], you will find a handy section called "Help!" which starts with "Documentation". The first resource linked there is the FAQ[2] which I do hope you have already read, and the third mentions the "manuals (aka man page, man pages, man-page)". Those manuals constitute the reference documentation for all cryptsetup commands (as well as all Linux commands generally speaking), and are thus the best place to read up on it. I like using the Arch Linux manpage portal[2] to browse them, because they are nicely formatted and generally as current as can be. > various file systems and related flags Cryptsetup is independent of any particular filesystem. It sits at the block layer, underneath the FS. As such you won't find much information about file system usage here, and are better advised to check with the relevant communities or on general purpose forums like your distro's. > and any helpful information for someone learning. The Arch Wiki is a well-regarded source for end-user focused advice on how to use something on Linux. Start with [3] and go down the rabbit hole from there. By the way, there you'll find great articles about filesystems too, and e.g. the Btrfs one mentions how to label the FS in its default FS-creation example.[4] >so, i'm seeing that this -n flag corresponds to using mkfs.exfat alone? All those commands have their own manpage, which will teach you all the option flags that can or cannot be used with them and their meanings. Option flags differ between filesystems yes, despite the similar `mkfs.` prefix. >so, IS THERE A WAY TO LABEL DRIVES USING OTHER FILESYSTEMS, in particular BTRFS? >i've not found any docs online showing this, and it's quite specific. See the aforementioned ArchWiki Btrfs link. By the way, writing in uppercase is generally read as equivalent to shouting and frowned upon as such, so for your future participation in online forums I suggest you refrain from it... Except when you do want to shout (but then be ready to bare the consequences ;-)) >3. lastly, how important is the mount folder? [...] so it doesn't really matter? Yup, no importance whatsoever, at least insofar as cryptsetup is concerned. It does matters from a system administration perspective, e.g. the rights needed to mount and access the directory have to be considered depending on your use case, but it doesn't impact the way cryptsetup works (to the best of my knowledge at least). >thanks for reading. >appreciate any advice to these 3 queries. Pleasure, happy hacking and good exploration to you phil! -- Bastien [0]: https://gitlab.com/cryptsetup/cryptsetup [1]: https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions [2]: https://man.archlinux.org/search?q=Cryptsetup&go=Go [3]: https://wiki.archlinux.org/title/Dm-crypt [4]: https://wiki.archlinux.org/title/Btrfs#File_system_on_a_single_device