Partitioning and formatting of poisoned USB flash disks in linux
Source: Internet
Author: User
Linux partitioning and formatting of poisoned USB disks-general Linux technology-Linux technology and application information. The following is a detailed description. Original person: a3563
The USB flash drive is 4 GB, which is divided into two zones, namely 2 GB. One partition is invisible in "My Computer" under windows, but can be seen in disk management, but cannot be formatted without a drive letter. In FC6, run the command fdisk-l to view the two partitions/dev/sda1/dev/sda2, but one of the partitions cannot be mounted.
I will back up the items in the partition and prepare to repartition and format it. The procedure is as follows:
Fdisk/dev/sda // re-create a partition table for the U Disk
Command (m for help): m
Command action
A toggle a bootable flag
B edit bsd disklabel
C toggle the dos compatibility flag
D delete a partition
L list known partition types
M print this menu
N add a new partition
O create a new empty DOS partition table
P print the partition table
Q quit without saving changes
S create a new empty Sun disklabel
T change a partition's system id
U change display/entry units
V verify the partition table
W write table to disk and exit
X extra functionality (experts only)
Command (m for help): w // Save the changes and exit
Fdisk/dev/sda // prepare to pull the partition
Command (m for help): n // create a new partition
There are two options: e and p e are extended partitions, and p is the primary partition. We need to select the primary partition. Otherwise, an error will occur (I chose e as an error)
I want to use the default one for each partition.
Command (m for help): w // Save the changes and exit
In this case, the partition table has been created. Start formatting now.
I want to format it to FAT32 format
Mkfs. vfat-I-O USB/dev/sda1
The formatting is complete.
By the way, I didn't format it at last. It can be identified as 4G capacity, but it can only use 2G.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.