Tuesday, October 24, 2017

partitioning - Pen-drive / USB-Drive not working after installing ubuntu in it


I put in ubuntu in pendrive and made pendrive bootable by unetbootin. Now the pendrive doesn't work anymore due to that, it is not opening, when I put in windows OS, it doesn't show its total space and free space, it says Total Space: 0MB, Free Space 0MB and its not opening.


I tried all possible softwares like SD Formatter, Yumi, PW (partition wizard), windows disk management, etc. but nothing has been successful, tried formatting from CMD too, nothing is able to format it or read it. Please help.


edit:
I used gparted and it is unable to detect usb-flash drive.
It detects two drives.. one sda1 20gb and other is sda2 200gb, but my USB-Flash Drive is 8GB only. It was not able to detect it and USB port is working fine.


edit#2:
On Linux
dmesg (without the USB):
http://pastebin.com/R8UMMnrD


dmesg (with USB Drive Inserted):
http://pastebin.com/ZCnymsUu


Screenshot of gparted: (I can't post more than 2 links, so here is the link which you cannot click, just copy paste in browser)
i.imgur.com/72UCk72.png


edit #3:
I tried command fdisk in ubuntu:


It says me this:


Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x22ea62b2.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help):

edit#4:
After running command sudo dd if=/dev/zero of=/dev/sdb i got following:


dd: writing to ‘/dev/sdb’: Input/output error
8193+0 records in
8192+0 records out
4194304 bytes (4.2 MB) copied, 2.57164 s, 1.6 MB/s

Still no solution...


edit #5:
I am unable to create partition table. I get this error on all softwares like gparted.


Edit:#6


It says me this: (dmesg after dd)
pastebin.com/dq6ACvKc


Then I tried second solution:


sudo mkfs.vfat -c -F32 -I -v /dev/sdb

And I got this error:


mkfs.fat 3.0.26 (2014-03-07)
/dev/sdb has 239 heads and 62 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 15131636 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 14749 sectors, and provides 1887763 clusters.
There are 32 reserved sectors.
Volume ID is 6a9b70f8, no volume label.
Searching for bad blocks 4080... mkfs.vfat: bad blocks before data-area: cannot make fs

Looks like no software can help, is there any way that I may reset the pendrive from hardware by physically opening it?


Answer



Your USB key might be dead if you're getting an I/O error… Look at what dmesg says after trying the dd command again.


Another thing you can try is creating a filesystem on the whole memory (and checking bad sectors with -c):


mkfs.vfat -c -F32 -I -v.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...