Ubuntu format U disk method (based on formatting commands)

  

Usually Ubuntu format disk is similar to Windows system; first find the U disk icon, right click to format. However, there is a situation that is more worrying. When there is a problem with the partition and it cannot be recognized, then a professional tool can be formatted under Win, and under Ubuntu, it can be forced to be formatted by command mode.

First execute sudo fdisk -l to view the serial number of your u disk, usually /dev/sdb, etc. U disk partition is usually /dev/sdb1

For u disk we generally Formatted as FAT format or FAT32 format, but these will be displayed in FAT format under Linux. We only need to execute the command:

sudo mkfs.vfat -F 32 /dev/sdb1 to format the u disk into fat32 format.

If you want to format the specified disk to NTFS format then you need sudo apt-get install ntfsprogs to install the ntfs read and write tool, and then execute sudo mkfs.ntfs /dev/sda1, this process will be very slow. It's easier for a partition to be formatted as linux ext:

sudo mkfs.ext4 /dev/sda1 # formatted as ext4 partition sudo mkfs.ext3 /dev/sda1 # formatted as ext3 partition sudo Mkfs.ext2 /dev/sda1 #Formatted as ext2 partition

PS: For the partition to be formatted, you must first unmount it with umount to format it.

Copyright © Windows knowledge All Rights Reserved