How to Partition a Thumb Drive. In this Article: Windows Mac Linux Community Q&A References. As USB drives get larger and larger, you may find it useful to partition them into distinct drives. This can make it easier to organize your files, or allow you to boot from one partition and keep essential tools on another.
Click to expand.Creating a new partition table should be near-instantaneous on a healthy system. If you get a “flashing question mark folder” on bootup and you haven’t done anything that should cause your boot filesystem to become corrupt, chances are high your disk is shot. Even if you would manage to get it running again after a reinstallation, I would never trust a disk again after it had shown this behavior. If you’ve still got a machine where the disks are replacable, do so.
Otherwise start looking for another machine.
Unless it's write protected with a hardware switch, that shouldn't matter. You will need to be root. I assume that by 'format' you mean to delete all the files and recreate the file system.
To do this use parted or gparted to create a new partition. GParted is easy - it's a graphical application, while parted is from the command line. But essentially just find which device your drive is (probably /dev/sdb or sdc some letter after a) and delete the old partition and make a new one. FAT32 is probably the file system you want, but that's up to you. GParted is pretty easy installs in gnome, probably in your distro's repositories, parted has man pages if you want to go that route and is probably already installed. That's pretty much it, but it won't wipe data clean, (i.e.
CSI / identity thieves could still get to your data; to do that, you can use dd to copy over every thing from /dev/zero, but I won't go in to that unless you ask). Is a link to the ubuntu forums where someone asked a very similar question. You will be using fdisk. You will need to know what device you are working with first.
![Gparted Usb For Mac Gparted Usb For Mac](http://i1-news.softpedia-static.com/images/news2/The-Witcher-2-Assassins-of-Kings-Disappears-from-Steam-for-Linux-Library-437038-2.jpg)
This can be done by running the following. First make sure your usb drive is not plugged in. Then run: ls /dev/sd. Once you have done that, put in your pen drive and run the above command again.
Whatever drive (ex sdc) was not there before is your pen drive. For now we will call it sdX. Now you will need to use fdisk. Fdisk /dev/sdX From there you will want to wipe out your partition table, make a new primary partition and choose which type of partition you want it to be, more on that.
![Gparted usb stick mac Gparted usb stick mac](/uploads/1/2/5/4/125424228/918521129.png)
Now depending on what filesystem you are wanting to create there are a number of utilities. From here there you will need to format the drive. There are different options for packages depending on distribution and what you want to format the drive to but in general the most used ones that I have seen are mkdosfs for formatting ntfs and e2mkfs for ext4. EDIT: As loosecannon said, it really shouldn't matter that it is write protected and also, I was assuming you were looking for a way to do this from the terminal.
If you prefer using a gui, loosecannon is right, GParted is the way to go if there is a package for in on your distribution.