How to Format USB Flash Drive in Linux Terminal for Windows (FAT32, NTFS) and Linux (EXT4)

aumacademy
aumacademy
38.6 هزار بار بازدید - 4 سال پیش - Detect the flash drive usinglsblkTo
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.seevid.ir/c/aumacademy?...

======================================
Share this video: How to Format USB Flash Drive in Linu...
======================================
4 سال پیش در تاریخ 1399/08/07 منتشر شده است.
38,639 بـار بازدید شده
... بیشتر