Wednesday, December 25, 2024

Create partition with Linux

Sometimes, for some odd reason, there is issue deleting and reforming partition on USB disk.  I have to use Linux to complete the task.  Again, this will erase everything on the USB disk.  Assume the device handle for the USB jump drive is /dev/sdb.  

1) run "sudo fdisk /dev/sdb"
2) type "o" to create new dos partition table then hit enter
3) type "n" to create a new partition then hit enter
4) hit enter if you are ok with default settings
5) type "t" then "7" to create a exFAT partition
6) type "w" to save the change then "q" to exit.  
7) run "sudo mkfs.exfat -n "label" /dev/sdb1