I formatted my pendrive with ext2 filesystem in ubuntu.Now its not detecting in ubuntu and windows.
Here's what the disk utility says.
Model: GENERIC USB Mass Stoarge
Firmware Version: 1.00
Location: -
Write Cache: -
Capacity: No Media Detected
Partitoning: -
Serial Number:
World Wide Name: -
Device: /dev/sdb
Rotation Rate: -
Connection: USB at 480.0 MB/s
SMART status: Not Supported
Options...
Format Drive -- Safe Removal
Volumes: -
Usage: -
Device:
Partition type: -
Capacity: -
Then click on format drive and try to format with every option, its showing some error like:
Error creating partition table: helper exited with exit code 1: cannot open /dev/sdb: No medium found
Then I tried GParted to format USB drive, but it is not detecting. How can I repair these usb drive?
Result of following commands:
$ sudo cfdisk /dev/sdb
FATAL ERROR: Cannot open disk drive Press any key to exit cfdisk
$ sudo mkfs.ext2 /dev/sdb
mke2fs 1.41.14 (22-Dec-2010)
/dev/sdb is entire device, not just one partition! Proceed anyway? (y,n) y
mkfs.ext2: No medium found while trying to determine filesystem size
$ sudo mkfs.vfat /dev/sdb
mkfs.vfat 3.0.9 (31 Jan 2010)
/dev/sdb: No medium found
sudo cfdisk /dev/sdb). Then, you can create filesystem on it (sudo mkfs.ext2 /dev/sdb1orsudo mkfs.vfat /dev/sdb1). – us3r May 17 '12 at 13:50