Format USB flash drive without partitions

0

I have a 8GB flash drive that currently is split into 2 partitions. I want to format it with exFat as a single partition partitionless. I tried

mkfs.exfat -n "8GB flash drive" -I /dev/sdc

but it says

mkfs.exfat: invalid option -- 'I'

Tihomir Mitkov

Posted 2016-03-14T15:36:06.727

Reputation: 387

You're using the wrong option: it should be -v. – AFH – 2016-03-14T15:40:13.663

Have you checked MANPAGE for this command ? http://manpages.ubuntu.com/manpages/vivid/man8/mkexfatfs.8.html

– nex84 – 2016-03-14T15:42:25.040

Answers

1

I just tried that and it works:

Remove other file systems (only their "Magick Numbers" actually)

$ wipefs --all /dev/sdc

Then make the file system directly on the device file, without any additional options

$ mkfs.exfat -n "8GB flash drive" /dev/sdc

Tihomir Mitkov

Posted 2016-03-14T15:36:06.727

Reputation: 387

FWIW single partition != partitionless – Tom Yan – 2016-03-15T12:15:58.007