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.

4
  • It's normal for it to not be mounted if it's not partitioned. Writing a partition table should be super quick though since it just writes the table... Commented Feb 16, 2021 at 15:26
  • df -h does not detect it. How can I partition it via a command line tool if I don't have a path to point it to?
    – user787832
    Commented Feb 16, 2021 at 16:43
  • df -h only shows filesystems. Until you create a partition and format it, you don't have a filesystem. Try lsblk which shows disks and partitions. Commented Feb 16, 2021 at 16:45
  • In short: wipefs (just in case, probably not needed), fdisk (or gdisk), mkfs.ext4 (why so many tools?). Can you take it from here? (man is your friend). I understand you want to create everything anew, i.e. discard the old data whatever it is. What a great opportunity to experiment! There are only two scenarios where things get worse: (1) you confuse disks (e.g. /dev/sda instead of /dev/sdb; lsblk is also your friend; think twice twice); (2) random malfunction of the hardware. Commented Feb 16, 2021 at 17:15