Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a memory stick which I had cleaned of old data fragments.

The memory stick was mounted on /dev/sdc1 so I did:

dd if=/dev/zero of=/dev/sdc1 bs=1M

After the task was complete, my usb memory stick became unrecognized.

What do you do in this case to make the drive recognized again and partition it as FAT?

share|improve this question
2  
The "dd" command do not format any partition. It simply write blocks from/to devices. Your command just write zeros to the device of your usb stick partition. This is a easy way to cleanup the whole partition from old datafragments. But it is no formatting. –  f4m8 Nov 8 '11 at 12:14
add comment

2 Answers

up vote 6 down vote accepted

If you want to create a filesystem on your usb stick partition, you should do

    mkfs -t vfat /dev/sdc1

as a user who as access rights to write to the partition, like root

share|improve this answer
    
Thank you very much for the answer. –  0101amt Nov 9 '11 at 21:03
add comment

Use parted (gparted if you want a GUI) or fdisk to format partitions

share|improve this answer
    
fdisk creates partitions. To create a filesystem (format in DOS/Windows terminology), use mkfs. –  Gilles Nov 8 '11 at 22:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.