歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> linux對中毒u盤分區和格式化

linux對中毒u盤分區和格式化

日期:2017/3/2 16:44:49   编辑:Linux服務器

u盤情況是4G,分2個區,分別為2G。其中一個分區在windows下“我的電腦”裡看不見,但在磁盤管理裡能看見,但沒有盤符,也無法進行格式化,在FC6下,用命令fdisk -l能看見2個分區/dev/sda1 /dev/sda2,但其中一個分區還是不能掛載。

我把好的分區裡的東西備份一下,准備對其重新分區和格式化。步驟如下:

fdisk /dev/sda //對U盤重新建立分區表

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 //保存更改並退出

fdisk /dev/sda //准備分區拉

Command (m for help):n //創建一個新的分區
出現2個選項:e 和p e是擴展分區,p是主分區,我們要選主分區,否則會出錯(反正我選e是錯了)

我准備就分一個區的,就直接用默認的。

Command (m for help):w //保存更改並退出

這樣,分區表創建好了,現在開始格式化吧。

我想把它格式化成FAT32格式的

mkfs.vfat -I -O USB /dev/sda1

格式化完成了。

順便說一下,最後我沒格式化,它能識別成4G容量,但只可以用2個G

Copyright © Linux教程網 All Rights Reserved