Detect the flash drive using
lsblk
To show selected disk output type
lsblk -f /dev/sd*
To format the usb disk, first unmount the disk from computer
sudo umount /dev/sdb1
Wipe out all the existing filesystem on the disk
sudo wipefs -a /dev/sdb
create disk partition table
sudo cfdisk /dev/sdb
Format the flash drive to windows compatible filesystem (FAT32)
sudo mkfs.vfat -n "USBFAT32" /dev/sdb1
Format the flash drive to windows compatible filesystem (NTFS)
sudo mkntfs -Q -L "USBNTFS" /dev/sdb1
Format the flash drive to Linux based filesystem (EXT4)
sudo mkfs.ext4 -L "USBEXT4" /dev/sdb1
Safely remove the flash drive
sudo eject /dev/sdb
Thank you for watching this video! Please like, share and subscribe:
https://www.youtube.com/c/aumacademy?...
======================================
Share this video: • How to Format USB Flash Drive in Linu...
======================================