Friday, 15 September 2017

How to format USB stick in Fedora LXDE via terminal


I always forget this, therefore, I'm writing this really short article as a note.

It's a solution that works for me described on ask.fedoraproject.org

Change to super mode
sudo su

List volumes on your PC
[root@mynotebook ptacnikt]# df
Filesystem                         1K-blocks     Used Available Use% Mounted on
/dev/sda1                             999320   195976    734532  22% /boot
/dev/sdb1                            1305600  1305600         0 100% /run/media/ptacnikt/Xubuntu 17.04 amd64

The USB stick might be /dev/sdb1 like in my case

Unmount it
umount /dev/sdb1

Format it
mkfs.vfat /dev/sdb1

Plug it out, plug it in again and it should work. Done.