U盘被分成几个分区的恢复
2014-04-18 20:20
274 查看
我用df -lh命令看了下,被分成了四个。具体如下:
首先,查看挂载位置,使用命令fdisk -l,查看到U盘的挂载位置如下:
然后,要进行的步骤是删除分区。使用命令:
mkfs.vfat /dev/sda -I
/dev/sda1 1.9G 4.0K 1.9G 1% /media/9F15-2076 /dev/sda6 1.9G 4.0K 1.9G 1% /media/A070-1636 /dev/sda5 1.9G 4.0K 1.9G 1% /media/A002-176E /dev/sda7 1.9G 4.0K 1.9G 1% /media/A0CE-2BB4
首先,查看挂载位置,使用命令fdisk -l,查看到U盘的挂载位置如下:
Disk /dev/sda: 8074 MB, 8074035200 bytes 255 heads, 63 sectors/track, 981 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xe4d2e4d2 Device Boot Start End Blocks Id System /dev/sda1 * 1 245 1967931 7 HPFS/NTFS /dev/sda2 246 981 5911920 5 Extended /dev/sda5 246 490 1967931 7 HPFS/NTFS /dev/sda6 491 735 1967931 7 HPFS/NTFS /dev/sda7 736 981 1975963+ 7 HPFS/NTFS
然后,要进行的步骤是删除分区。使用命令:
[root@direwolf wolf]# fdisk /dev/sda WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command '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)通过键入m,帮助可以知道,d是用来删除分区的。进行如下的操作:
Command (m for help): d Partition number (1-7): 6依次类推,直到删除所有的分区,之后输入w,将修改写入U盘
Command (m for help): w最后,创建新分区并格式化,使用下面的命令:
mkfs.vfat /dev/sda -I
相关文章推荐
- u盘装了系统,被分区了怎么恢复的方法
- U盘被分区后的恢复
- U盘分区,怎么恢复
- 电脑分区或U盘根目录损坏无法读取-艾奇文件数据恢复软件
- 在ubuntu下删除U盘分区及多分区格式化
- 用U盘制作启动盘后空间变小的恢复方法,清除U盘启动盘空间
- 怎么恢复格式化的u盘文件
- 移动硬盘分区后丢失数据如何恢复
- hdu 1249 N个三角形把平面分成几个区域
- Mac Air分区损坏恢复简记
- 如何恢复u盘文件--U盘文件被吃掉怎么恢复
- 使用DiskGenius软件恢复U盘引导数据的方法
- 将U盘分成 启动盘+文件存储区
- linux fdisk U盘分区失败
- Linux环境下几个好用的文件恢复工具
- 【数据恢复】一个磁盘怎样做到分区数多于4个
- 多分区合并成一个分区数据丢失了如何数据恢复?
- 重装XP后恢复原Ubuntu分区
- 强调一下数据恢复需要注意的几个事项
- U盘文件丢失求恢复教程