Trying to format USB (using Linux/fdisk) so it shows up on my Mac I have a USB drive that I can see/access/modify/etc in Linux/Ubuntu but it doesn't show up on my Mac OSX.

I did sudo fdisk /dev/sdb (where my USB is) and then g to create a new GPT partition table, n to make a new partition, used all default settings, then w to save and exit.

Then I did sudo mkfs.fat -F32 /dev/sdb1 to format the partition with a FAT32 filesystem.

I ejected the USB and put it in my Mac and it doesn't show up / get detected.

What did I miss?
If you are using MAC

Open Disk Utility from Lauchpad
Select Your USB Disk Form top left corner


-Select Partition Option

-Crate choose 1 Partition fill Name, and Format details

-Then Click  apply

-Wait till it  the details
-Then select Disk Partition and Erase It.


After completing these steps you can access your USB drive on MAC,
Hope this will help you.