Problem with a pen-drive
I have a pen-drive which was working,normally until recently. I must have pulled it out mistakenly when it was still active(I was working on windows). Linux seems to detect it and allows me to view and edit the files. However, on windows, I get the following error as soon as I insert the drive :
" There is no disk in drive. Please insert a disk into drive \Device\Harddisk1\DR7".
Also, windows does not even allow me to format this volume. Does linux have a tool that can be used to format this drive? Or, Is there some other way to make the drive work?
You can use PartedMagic LiveCD to format any storage media. Plug-in Pen Driver and boot up from PartedMagic LiveCD. Select partition of Pen Drive and format it. Back data before formatting.
If you have any confusion, execute fdisk -l command in Terminal of Parted Magic and post output here.
I booted through the disk and through fdisk -l, I was able to select the partition for the pen-drive. The menu has the following options :
1. Create Partition.
2. Delete partition.
3. Select alternate fixed disk.
Can you let me know which is the command i need to use to format this drive?
check the manual of mkfs command. Execute mkfs.vfat to format pen-driver partition in FAT32 filesystem.
Be careful while executing mkfs command. Type correct partition.