I'm quite confused about the different format types a USB stick could have (or for that matter, any storage device). On this USB stick, I used to have a distro iso installed, and wanted to make it back into a "normal" USB stick. However, I realized I don't really understand this so much, and wanted to stop shooting in the dark.
I removed the iso installation with the following:
sudo wipefs /dev/sdb
sudo wipefs -a /dev/sdb
Then I did the following (believing the following was the "default" format to go to) (from here):
sudo parted /dev/sdb
(parted) mklabel msdos
(parted) mkpart primary ext4 1MiB 100%
But I was not able to mount it afterwards:
sudo mount /dev/sdb /run/media/usb
As it gave me this error:
mount: /run/media/usb: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error.
Still here, if I run lsblk
the device shows up, but I can't mount, and if I plug-and-unplug the USB back in, it doesn't show up in the file navigator (whatever you call it... mine is thunar).
I was shooting in the dark as it was, but I feel there is a lot I don't understand (in particular, what each formatting of the USB stick does, when to use a particular format, etc.). I would appreciate any pointers to relevant material to read about, but also a quick solution to the following problem would be great in the meantime: how do I make the USB stick "normal" again, so that I can store stuff on it like a standard USB stick?
sdX
is not the partition, is the device. You mount partitions, which are the numbers in the device name:sdXY
, for example:sdb1
. So the command would besudo mount /dev/sdb1 /run/media/usb
./run/media/usb
is just a directory I make to mount usb sticks to - I have another stick with files on it I can mount to it with a similar command as above. If i trysudo mount /dev/sdb1 /run/media/usb
I get the same error as before