format memory stick
Dear All,
I want to format memory stick(pen drive). So, what is the command ? Suggestions needed. Thanks in advance. Regards. Tapasi |
Once you plugged your pen drive, make sure it is mounted or not.
use "fdisk -l" which will show the list of disk in your linux box. Your USB may be there as a " sda/sdb/sdc/sdd" (either one). You can verify yourself with the size in MB . The you need to mount it to a directory. mkdir /ZAMO mount /dev/sda1 /ZAMO (am considering my USB as sda) cd ZAMO ls .....Verify your data is here. If ok continue cd .. mkdosfs /dev/sda1 (if you want a dos FS) mke2fs -j /dev/sda1 (if you want ext3 FS) All the best. This is for Fedora or redhat. |
Do not mount the disk before formatting. Especially, do not have the disk mounted during the formatting.
Also, keep in mind that on newer kernels, many devices appear on /dev/sd*, so double-check which device you are formatting -- it would be bad to do that to your hard drive. |
Hi,
Quote:
You first would partition the device using 'fdisk /dev/sdx' (where x is the device a,b,c,d). Partition as you desire, make sure to select the partition type for the device partitions. You can then run 'mkfs ' on the device (note the underlined portion); Quote:
|
All times are GMT -5. The time now is 01:50 PM. |