This guide will identify some possible causes that Linux fat32 formatting can cause, and then presents possible fixes that you can try to fix the problem.
To format a partition with the FAT32 file system, you must use the mkfs command and specify the FAT32 file system. Run lsblk again with the -f option to make sure your changes have been written to disk. You can mount the newly created partition using the “mount” command.
As a sysadmin, you may be asked to manage hard drives between different operating systems such as Windows, Linux, and MacOS.
Therefore, you may need to format your hard disk partitions appropriately so that they are compatible in different environments.
What file systems should I use?
Which file system should I use for hard drives – ext2, ext3 or ext4? Or should you stick with FAT file systems that are compatible between operating systems?
In this tutorial, we’ll go over the ways to format hard disk partitions in Linux, as well as the thought process involved in choosing the right filesystem for your partitions.
What If Mkusb Crashes?
A USB drive can fail for several reasons. So it’s worth trying different things. If mkusb doesn’t work try this list,
- Some USB drives and many memory cards have a small mechanical write-protect switch that can be used to switchreading between read / write and read only. You may have accidentally made it read-only.
- Restart your computer and try to restore or delete the first megabyte again with mkusb.
- Disconnect other USB devices. Sometimes USB devices can interfere with each other.
- Try using different USB ports and a different computer.
- Try using a different operating system (Windows, MacOS) on a different computer.
- If you still cannot erase the first megabyte of the disk, and the disk is write-protected, it is likely “frozen” and will be completely “locked” in the next step.
There is a limit to permanently damaging a USB drive, at least with the tools available to regular users like you and me. See this link
USB key lifespan
Method 1: Formatting A USB Flash Drive Using A Terminal
The easiest and fastest way to format a USB flash drive in Linux is to use a terminal. The process consists of three stages:
- Find your USB stick.
- Disconnect USB storagespruce and format it.
- Make sure the process was successful.
Follow the instructions below to format your USB storage device using a terminal.
Open a terminal and run the following command:
The terminal prints out a list of all provided partitions and related information: used space, available space, percentage of used space, and path.
Find your USB storage in the list and find the corresponding device. In this example, the USB key is
/ dev / sdb1 .
Note. If you are unsure of the disc name, temporarily unplug the power plug before running the
df command again. The device that will now be removed from the list is your USB device.