Format USB as exFat in Ubuntu 13.10 terminal

Hi, Today I was trying to get an thumbdrive to work on OSX, Windows and Ubuntu. Most people format their thumbdrive as NTFS to store files bigger than 4 GB. Luckily for us there is a thing called exFat which can store files up to 17 179 869 184 GB. I think that is pretty future-proof. So what did I do?

1. Install exfat utilities in Ubuntu

sudo apt-get update && sudo apt-get install exfat-utils

2. Create a fresh partition on the thumbdrive
Note that /dev/sdb is my thumbdrive. Yours can differ. To get information on your drive you can use df and locate your drive. /dev/sdb is your drive and /dev/sdbn where n is any natural number is your partition. You can disregard those because we’re going to delete all of them. So execute following command to open up fdisk.

sudo fdisk /dev/sdb

Now you should see the fdisk. You can type several commands in this little (old) program. You can see all of them by typing m.

3. Create a partition
We want to create one new partition, so we type n. It will ask for some values which you can simply press enter for the default values. Now we have a partition which is not saved yet. But first we have to set our flag. The current partition should be flagged Linux. You can see this by typing the fdisk command p. To change the flag to exFat we have to type in the command t.  Fdisk will now ask for a number indicating the flag you want to set. We want number 7. (You can see all the flags by typing L). 

If we have done all this we simply write away our settings by typing the command w in fdisk.
4. Create a filesystem (exFat)
Now we have a partition but no filesystem yet! Let’s do that:

sudo mkfs.exfat /dev/sdb1

Note that you should replace the /dev/sdb1 part with your partition identifier. If you have done this your USB stick is ready!




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s