When you create a bootable Linux live USB, it alters the drive’s partition table and filesystem structure. This often makes the drive read-only or unrecognizable when plugged into standard file managers.
To restore your USB drive back to a normal storage device, you must wipe its hidden boot signatures and create a fresh filesystem using the terminal.
Critical Warning
Ensure you select the correct drive identifier (e.g., /dev/sdb). Specifying the wrong drive path will permanently destroy your computer’s main operating system or data.
Step-by-Step Reset Procedure
Step 1: Identify your USB drive
Plug in your USB drive and list all connected storage disks to find its system path:
sudo fdisk -l- Look through the output to match your USB drive’s capacity (e.g., a 16GB drive might show up as
14.9 GiB). - Note its device path, which usually looks like
/dev/sdbor/dev/sdc.
Step 2: Unmount the drive
You cannot modify a drive while the system actively mounts it. Unmount all partitions on the device (replace sdb with your actual drive letter):
sudo umount /dev/sdb*Step 3: Wipe the bootable partition table
Overwriting the first few megabytes deletes the hidden boot sector signatures and ISO filesystems:
sudo dd if=/dev/zero of=/dev/sdb bs=1M count=10 status=progressif=/dev/zero: Sends a stream of zeros to overwrite data.of=/dev/sdb: The target drive path (do not include partition numbers likesdb1).
Step 4: Create a fresh partition table
Create a standard Master Boot Record (msdos) partition layout so the drive works on all devices:
sudo parted /dev/sdb mklabel msdosStep 5: Allocate a new primary partition
Instruct the partition manager to allocate 100% of the available space to a single new partition:
sudo parted -a optimal /dev/sdb mkpart primary fat32 0% 100%Step 6: Format the filesystem
Format the newly created partition to FAT32 for universal compatibility across Windows, macOS, and Linux:
sudo mkfs.vfat -F 32 -n "MY_USB" /dev/sdb1-n "MY_USB": Sets the name/label for your drive.- Note that you are formatting the partition (
/dev/sdb1), not the raw disk (/dev/sdb).
Conclusion
Your USB drive is now completely wiped, restored to its full capacity, and ready for everyday file storage.