Quote:
Originally Posted by idbisoft
I cannot format my Transcend 4 Gb Pen Drive.. When i try to format with the following command :
richy@richy-desktop:~$ sudo mkfs.vfat -F 32 -n richy /dev/sdc
[sudo] password for richy:
mkfs.vfat 3.0.1 (23 Nov 2008)
mkfs.vfat: unable to open /dev/sdc
richy@richy-desktop:~$
|
Right. You're trying to format the entire device, not the partition that's ON the device.
First, make sure the device is not mounted. Then, you have two options: either run
and blow away the old partition(s), and make new ones. You can even make multiples at this stage, so you'll wind up with /dev/sdc1, /dev/sdc2, etc.
Once you make the partitions, you have to make the file systems. Replace the /dev/sdc in your command above, with the partition name, like /dev/sdc1, etc.