How to format a USB flash disk based on the formatting command in Ubuntu

Source: Internet
Author: User
In general, the disk format in Ubuntu is similar to that in Windows. First, find the USB flash drive icon and right-click it to format Ubuntu, but in one case, it is quite worried, when the partition fails to be identified, professional tools are required for formatting in Win, while commands can be forcibly formatted in Ubuntu.
Run sudo fdisk-l to check the serial number of your USB flash drive, which is usually/dev/sdb or the like. the disk partition is usually/dev/sdb1.
For USB flash drives, we generally format them in FAT or FAT32 format. However, in linux, these are displayed in FAT format. We only need to execute the command:
Sudo mkfs. vfat-F 32/dev/sdb1 can be used to format the USB flash drive in fat32 format.
If you want to format the specified disk as NTFS, you need sudo apt-get install ntfsprogs to install the ntfs read/write tool, and then execute sudo mkfs. ntfs/dev/sda1, this process will be slow. It is easier to format partitions in linux ext format:
Sudo mkfs. ext4/dev/sda1 # format as ext4 partition
Sudo mkfs. ext3/dev/sda1 # format as ext3 partition
Sudo mkfs. ext2/dev/sda1 # format as ext2 partition
PS: For a partition to be formatted, you must first unmount it with umount to format it.

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.