The fdisk tool is generally used in Ubuntu to format the USB flash disk. The reason for formatting the USB flash disk is that the system of the USB flash disk cannot be identified on the user's machine, for example, Windows cannot identify the USB flash drive of the GPT file system. This is also a problem that one of my colleagues encountered today. Therefore, I need to format the file system of the USB flash drive to ntfs, here we will introduce the operation procedure to view the hard disk partition information sudofdisk-l. We can see that the USB disk device number is/dev/sdb, And the size
Preface
Fdisk is usually used in Ubuntu to format the USB flash disk. The reason for formatting the USB flash disk is that the system of the USB flash disk cannot be identified on the user's machine, for example, Windows cannot identify the USB flash drive of the GPT file system. This is also a problem that one of my colleagues encountered today. Therefore, I need to format the file system of the USB flash disk to ntfs. Here we will introduce the operation steps.
View hard disk partition information
Sudo fdisk-l
We can see that the USB flash drive device number is/dev/sdb, the size is 16.1 GB, and the file system type is GPT, which is obviously the goal of formatting.
USB disk partitioning
Sudo fdisk/dev/sdb
Simply press m and a command prompt is displayed:
There is nothing to say, no translation. Here I will delete the previous partition and create another partition (also to learn the fdisk command)
The sector here is divided into two categories. Similar to operating system partitions, there is a concept of pilot partitions, or the role of hidden partitions.
Mkfs Format File System
It's easy to use. Remember man.
Postscript
OK, the partition is over. After the formatting file system is over, our work is over. have a nice day!
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2