6

when I'm trying to create a partition table on my 8gb sd card, its showing this error:

fdisk: unable to read /dev/sdb: Input/output error

I have used sudo fdisk -l , there the /dev/sdb is not listed, what should I do? please help me .

12
  • Make sure that the pendrive you wish to partition is not reserving any other name like /dev/sdc.
    – Anoop K P
    Feb 20, 2014 at 20:40
  • its dev/sdb , showing in gparted partition, but in the terminal command list its not showing.
    – Tanmoy
    Feb 20, 2014 at 20:43
  • Disconnect and connect the drive again. What do the dmesg print?
    – Anoop K P
    Feb 20, 2014 at 20:45
  • 5
    The drive is toast; time to get a new one.
    – psusi
    Feb 20, 2014 at 23:20
  • 2
    The pendrive/hard-disk whatever it is, is damaged, don't use it and certainly take backup of it's contents if you somehow manage to get it running(Doubtful). Also, edit your main post and post contents of command 'mount' . Dec 2, 2015 at 9:53

2 Answers 2

3

As the device is present in the list of 'lsusb', the only option you could try out will be to format the pendrive completely.

But before that, open 'Disk Utility' and check whether the pendrive is present. If present you could format and partition from that application itself.

If the device is not found in 'Disk Utility', you will have to format using the command:

dd if=/dev/zero of=/dev/sd(x)

where (x) can be b, c, d etc. Care is to be taken as selecting the wrong device can even endup formatting your harddisk.

If your pendrive have a led indicator, it must indicate that the device is busy when the above command is executed.

5
  • but its showing Obytes space in my laptop. although i formatted in disk utility
    – Tanmoy
    Feb 20, 2014 at 22:19
  • Use the command mentioned above
    – Anoop K P
    Feb 20, 2014 at 22:21
  • THis time getting an error while formatting through disk utility.. error creating file system: command-line mkfs.vfat -l -n ............
    – Tanmoy
    Feb 20, 2014 at 22:39
  • 1
    and this is my dd command output: dd: writing to ‘/dev/sdb’: Input/output error 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.259265 s, 0.0 kB/s
    – Tanmoy
    Feb 20, 2014 at 22:54
  • I have used this command "sudo mkfs.vfat /dev/sdb -I" too. which results: mkfs.vfat 3.0.16 (01 Mar 2013) mkfs.vfat: failed whilst writing reserved sector
    – Tanmoy
    Feb 20, 2014 at 22:55
1

Unfortunately an I/O error means that Linux cannot read or write your drive for whatever reason. Usually that means that the drive is broken, but I've heard of instances where it still works with Windows or OS X.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .