How to initialize a USB device on Linux
Linux System Disk Manager
Warning: The following operations will format all data on your device.
Regardless of the reasons mentioned above, the final result is that we cannot continue to use this device.
So here is a method to restore the USB device or SD card to the factory state.
Most of the time a simple formatting through the file browser can solve the problem, but in some extreme cases, such as when the file manager does not work and you need your device to continue working, you can use the following guide:
We will use a small tool called mkusb to achieve our goals. The installation of this tool is very simple.
Add mkusb repository:
sudo apt add repository ppa:mkusb/ppa
Update your package list now:
sudo apt-get update
Install `mkusb:
sudo apt-get install mkusb
Now run mkusb and you will see this prompt, click ‘Yes’.
Run mkusb dus
Now mkusb will ask you one last time if you wish to continue formatting your data, 'Stop' is selected by default, you now select 'Go' and click 'OK'.
Linux mkusb
The window will close and your terminal will look like this.
mkusb usb console
After a few seconds, the entire process will be completed and you will see a pop-up window like this.
Recover Corrupted USB Device
You now need to unplug your device from the system and then plug it back in. Your device will be restored to a normal device and still work as before.
Linux Disk Manager
The operations we are doing now can be done through terminal commands or gparted or other software, but that will require some knowledge about partition management.
So it’s always a good thing to have a little tool like this that automatically solves single-minded problems.
mkusb is an easy-to-use program that can repair your USB storage devices and SD cards. mkusb is downloaded through the mkusb PPA. All operations on mkusb require super administrator privileges, and all your data on this device will be formatted.
Once the operation is complete, you will reset the device and allow it to continue working.
If you have any doubts, you can post them for free in the comment box below.
The above is the detailed content of How to initialize a USB device on Linux. For more information, please follow other related articles on the PHP Chinese website!

This guide explains how to automatically mount a USB drive on boot in Linux, saving you time and effort. Step 1: Identify Your USB Drive Use the lsblk command to list all block devices. Your USB drive will likely be labeled /dev/sdb1, /dev/sdc1, etc

Cross-platform applications have revolutionized software development, enabling seamless functionality across operating systems like Linux, Windows, and macOS. This eliminates the need to switch apps based on your device, offering consistent experien

Artificial Intelligence (AI) is rapidly transforming numerous sectors, from healthcare and finance to creative fields like art and music. Linux, with its open-source nature, adaptability, and performance capabilities, has emerged as a premier platfo

Looking for a fast, minimal, and efficient Linux distribution without a graphical user interface (GUI)? Lightweight, GUI-less Linux distros are perfect for older hardware or specialized tasks like servers and embedded systems. They consume fewer res

Wine 10.0 stable version release: Running Windows applications on Linux to a higher level Wine, this open source and free application, allows Linux users to run Windows software and games on Unix/Linux operating systems, ushering in the release of the 10.0 stable version! This version has been provided with source code and binary package downloads, and supports various distributions such as Linux, Windows and Mac. This edition embodies a year of hard work and over 8,600 improvements, bringing many exciting improvements. Key highlights include: Enhanced support for Bluetooth devices. Improve support for HID input devices. Optimized performance of 32-bit and 64-bit applications.

This tutorial guides you through installing SQL Server 2022 on RHEL 8.x or 9.x, connecting via the sqlcmd command-line tool, database creation, and basic querying. Prerequisites Before beginning, ensure: A supported RHEL version (RHEL 8 or 9). Sudo

Mozilla Thunderbird 135: Powerful cross-platform mail client Mozilla Thunderbird is a free, open source, cross-platform email, calendar, news, chat and contact management client designed to efficiently handle multiple email accounts and news sources. On February 5, 2025, Mozilla released the Thunderbird 135 version, introducing a number of new features, performance improvements and security fixes. Thunderbird 135 main features: XZ Packaging for Linux Binaries: Smaller files, faster unpacking, and better integration with modern distributions. Cookie storage support: when creating space

This guide demonstrates how to protect files on Linux from accidental renaming or deletion using simple commands. We'll use the file important.txt in /home/user/ as an example. Method 1: Using chattr for Immutability The chattr command modifies fil


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version
Recommended: Win version, supports code prompts!

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
