Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 7
    This I advocate as a best practice, using it almost always. Commented Mar 12, 2023 at 21:41
  • 3
    If the target device is a partition and the partition table is GPT, you can set good, unique partition names (partlabels) for them. Then you can just go through /dev/disk/by-partlabel/uniquename. Since even with the most complex /dev/disk/by-id/usb-Samsung_Flash_Drive_FIT_XXXXXXXXXXXXXXXX-0:0-partN you could still somehow fumble the partition number when you type... Commented Mar 13, 2023 at 10:05
  • 2
    @frostschutz That's also very useful! However OP was talking of formatting USB drives, so they may not have control over existing partition labels on those drives. That's why I focused on methods that include the subsystem (USB) in their name. Commented Mar 13, 2023 at 11:09