Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question
    
If the format drive option is available i guess you can format it again in a filesystem compatable with both linux and windows(i.e. FAT or NTFS). Windows cannot detect any ext(1,2,3,4) filesystem. Though Ubuntu should have detected it.May be the formating did not succed properly. –  Nirmik May 17 '12 at 13:23
    
Formatting showing some error like - Error creating partition table: helper exited with exit code 1: cannot open /dev/sdb: No medium found –  shijith May 17 '12 at 13:30
    
Then you didn't format it after all. If you are *sure *that's exactly the error message you got, you should edit your question to include it. Otherwise, try formatting it again, and assuming it fails again, copy the full and exact text of your error message and add it to your question. –  Eliah Kagan May 17 '12 at 13:37
    
/dev/sdb is a device. First of all you need create partition on this device (you can do that using sudo cfdisk /dev/sdb). Then, you can create filesystem on it (sudo mkfs.ext2 /dev/sdb1 or sudo mkfs.vfat /dev/sdb1). –  us3r May 17 '12 at 13:50
    
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 –  shijith May 18 '12 at 2:55
show 1 more comment

closed as too localized by Luis Alvarado Jun 17 '13 at 18:54

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.