Partitioning and formatting a USB flash drive (fdisk & mkfs) in Ubuntu)

Source: Internet
Author: User
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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.