In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to repair the USB drive under Linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
U disk must have been indispensable in everyone's daily life and work, it makes our documents maintenance and transfer more convenient and easy. However, with frequent use, file system errors, bad blocks, and bad sectors may affect normal use. For Windows users, there is a dedicated graphical tool to fix such USB disk problems, while Linux users are relatively troublesome.
Use fsck to remove bad blocks from USB drives
The easiest way to repair flash drives or other types of drives in Linux is to use the fsck tool, which is a powerful tool for removing bad blocks, solving "unreadable" problems, and fixing most file system problems. Before that, however, you need to use the lsblk command to determine the U disk, which lists all the disks connected to the current Linux system.
To delete bad file blocks, execute the fsck command on a specific partition (such as / dev/sdc1) or an entire disk (such as / dev/sdc), and once done, you will get a healthy Linux partition.
Clear USB drive
When it appears that the U drive is completely unreadable and the data in it is worthless, the best way to fix it is to use the dd command to completely zero the U drive.
Similarly, use the lsblk command to find the U disk, and then use a command similar to the following to clear the zero:
Sudo dd if=/dev/zero of=/dev/sdb
After the zeroing operation is completed, you need to repartition the disk with fdisk or other tools, and then select the following command to format it for normal use:
FAT32
Sudo mkfs.msdos-f 32 / dev/sdb1
EXT4
Sudo mkfs.ext4-f / dev/sdb1
NTFS
This is the end of the sudo mkfs.ntfs-f / dev/sdb1 article on "how to repair USB drives under Linux". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un