Input output error during read on dev sdb

I bought a brand new WD Passport off Newegg. I couldn't copy anything to it (copy operations hung indefinitely then ended with IO error), so I tried reformatting it via the GUI. It now appears to...

fdisk works on disks, not partitions. On Linux, a disk is referred to as e.g. /dev/sdb, whereas the partitions on it are referred to as /dev/sdb1, /dev/sdb2 etc. Note that old-style (/dev/[hs]d?, /dev/[hs]d??) partition specifiers always end with a digit, whereas disk specifiers always end with a letter.

If you just format the disk (no bad blocks checking etc.), then a format time of a few seconds is not entirely unreasonable. All you did was write the initial file system metadata structures to disk, and while I don’t have any exact numbers to cite, those are fairly small, and USB is pretty fast for writing such relatively small amounts of data. If you didn’t get any errors, the format process probably did its thing.

The first thing you should do is run fdisk on the proper device. In your case, it sounds like that will be sudo fdisk /dev/sdb, but note that in some cases the device name can change with time. I recommend using one of the entries in /dev/disk/by-id instead, as those will not change. You can see what the disk shows up with there by running, immediately before you connect the disk:

diff <(ls /dev/disk/by-id) <(sleep 15; ls /dev/disk/by-id)

This will show the differences in directory content between the two executions of ls, which will be spaced 15 seconds apart thanks to the sleep invocation in the second input pipe. 15 seconds should give the kernel enough time to identify the disk and let udev create the appropriate device nodes. If it doesn’t show any differences (empty output), unplug the disk and try it again increasing the delay. You will see both partition devices (ending with -part followed by a number and possibly @) and disk devices (without the -part part). If the file names do end with @, disregard that character; it’s a ls output artefact.

Once you have partition(s) properly in place, you can make a file system on it/them. For example, sudo mkfs.ext4 -v /dev/disk/by-id/xxxxx-Passport-XXXXXXX-part1. The -v turns on extra output («v» for verbose) which will give you an idea of whether the file system is created successfully.

After that, the disk should be perfectly usable.

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [SOLVED] Gparted Error: Input/Output error during read on /dev/sda

  1. Unhappy Gparted Error: Input/Output error during read on /dev/sda

    I was trying to shrink /dev/sda1 ( Label: Windows ) partition 10GB and add it to /dev/sda2 (Label: Files) (See Attachment). After moving 286GB suddenly I got that error message( See Attachment ).

    FYI I mounted /dev/sda1 partition after starting moving process. May be this is the cause of the error.

    I have noticed another thing, If I clicked on Retry/Cancel/Ignore button on the error message, progress bar of the moving process grows 0.01GB. That means to finish this process I have to click more thousands of clicks!! I also worried about my files.

    So, Is there any way to safely complete this process or safely terminate this process, so that I can keep my files / data safe?

    Last edited by Ashfaqur Rahman; December 28th, 2013 at 10:06 PM.

    Registered Linux User #560763


  2. Re: Gparted Error: Input/Output error during read on /dev/sda

    Do yourself a favor and only use Windows utilities to manage Windows partitions. Linux utilities can cause issues like above. Use Windows Disk Management or any other such tool for Windows to ‘resize or move’ NTFS partitions.


  3. Re: Gparted Error: Input/Output error during read on /dev/sda

    FYI I mounted /dev/sda1 partition after starting moving process. May be this is the cause of the error.

    No, you really should not have done that.

    If you are really lucky, unmounting the partition again might allow the move to continue, but I have my doubts.


  4. Question Re: Gparted Error: Input/Output error during read on /dev/sda

    Thanks for you advice. @fantab

    Actually I did’t do it, I was careful, I know that at this stage mounting partitions can cause damage. As I saw that this process would take almost 2 hours, I left my laptop for a while and when I came back I saw my brother mounted /dev/sda1 partition!! As soon as I noticed that I unmounted /dev/sda1 but you can see that error occurred@The Cog

    But I am really really lucky this time!! I tried clicking ignore again and again and the progress bar upgraded almost 20GBs. But suddenly Live Ubuntu hanged!! Even hidden terminals(Ctrl + Alt + F1-F6) couldn’t work. So I had no option without force shutdown. I did that. When I restarted I noticed that my all files are safe and sound!
    But Gparted is showing error sign in /dev/sda2( see attachment ). Under /dev/sda2 when I go to information option It suggest me » 10GB of unallocated space within the partition to grow the filesystem to fill the partition, select the partition and choose the menu item partition —> check «( see attachment )

    Now my question is, is it safe to do Check? As It is not possible for me now to backup almost 350GB of space and test myself.

    Registered Linux User #560763


  5. Re: Gparted Error: Input/Output error during read on /dev/sda

    Oh, that’s a relief!

    The check option says «check and repair». I guess it should be safe though I’ve never used it in anger (tried it just now on a spare partition and it instantly said it had finished).
    As always, have a backup first, just in case.


  6. Re: Gparted Error: Input/Output error during read on /dev/sda

    Update:
    I ran «Check» and It repaired my partition safely!

    Registered Linux User #560763


Tags for this Thread

Bookmarks

Bookmarks


Posting Permissions

Complete error log:

SMART Error Log Version: 1
ATA Error Count: 21225 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It «wraps» after 49.710 days.

Error 21225 occurred at disk power-on lifetime: 8408 hours (350 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
— — — — — — —
40 51 00 00 00 00 40 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
— — — — — — — — —————— ———————
60 08 00 00 00 00 00 08 00:08:02.389 READ FPDMA QUEUED
ef 10 02 00 00 00 00 08 00:08:02.378 SET FEATURES [Enable SATA feature]
27 00 00 00 00 00 00 08 00:08:02.378 READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
ec 00 00 00 00 00 00 08 00:08:02.375 IDENTIFY DEVICE
ef 03 46 00 00 00 00 08 00:08:02.375 SET FEATURES [Set transfer mode]

Error 21224 occurred at disk power-on lifetime: 8408 hours (350 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
— — — — — — —
40 51 00 00 00 00 40 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
— — — — — — — — —————— ———————
60 08 00 00 00 00 00 08 00:07:59.163 READ FPDMA QUEUED
ef 10 02 00 00 00 00 08 00:07:59.163 SET FEATURES [Enable SATA feature]
27 00 00 00 00 00 00 08 00:07:59.161 READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
ec 00 00 00 00 00 00 08 00:07:59.160 IDENTIFY DEVICE
ef 03 46 00 00 00 00 08 00:07:59.160 SET FEATURES [Set transfer mode]

Error 21223 occurred at disk power-on lifetime: 8408 hours (350 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
— — — — — — —
40 51 00 00 00 00 40 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
— — — — — — — — —————— ———————
60 08 00 00 00 00 00 08 00:07:56.113 READ FPDMA QUEUED
ef 10 02 00 00 00 00 08 00:07:56.113 SET FEATURES [Enable SATA feature]
27 00 00 00 00 00 00 08 00:07:56.113 READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
ec 00 00 00 00 00 00 08 00:07:56.110 IDENTIFY DEVICE
ef 03 46 00 00 00 00 08 00:07:56.110 SET FEATURES [Set transfer mode]

Error 21222 occurred at disk power-on lifetime: 8408 hours (350 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
— — — — — — —
40 51 00 00 00 00 40 Error: UNC at LBA = 0x00000000 = 0

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
— — — — — — — — —————— ———————
60 08 00 00 00 00 00 08 00:07:53.064 READ FPDMA QUEUED
ef 10 02 00 00 00 00 08 00:07:53.064 SET FEATURES [Enable SATA feature]
27 00 00 00 00 00 00 08 00:07:53.064 READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
ec 00 00 00 00 00 00 08 00:07:53.061 IDENTIFY DEVICE
ef 03 46 00 00 00 00 08 00:07:53.061 SET FEATURES [Set transfer mode]

Error 21221 occurred at

Hi all.

This is my first post in the forum. Since English is not my mother language, if I did not describe something clearly just let me know and I will try my best again. Much thanks.

I am trying to rescue a portable hard drive but right now I cannot figure out what happened to it. Previously I know this disk has some connection problems but it was not so serious, and I can still mount the disk after serveral times pluging. and unpluging.

But right now it seems it is totally down. When connected via USB port it sounds like it only spins less than 1 sec. Then I heard a snap and it stops. This repeats 3 times then it is totally silent. I guess it may be caused by not sufficient power so I’ve tried another port and it behaves like spin, snap, spin, snap without an end.

When tried with lsblk, it shows a raw disk without partitions. I dissected the wrapper and saw the hard drive is marked 500GB, but it is recognized as 2TB in lsblk. I cannot remember how large it should be when it still worked sorry.

What I have tested so far are:
hdparm:

 delta67@Pollux  ~  sudo hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
Standards:
	Likely used: 5
Configuration:
	Logical		max	current
	cylinders	0	0
	heads		0	0
	sectors/track	0	0
	--
	Logical/Physical Sector size:           512 bytes
	device size with M = 1024*1024:           0 MBytes
	device size with M = 1000*1000:           0 MBytes 
	cache/buffer size  = unknown
Capabilities:
	IORDY(may be)(cannot be disabled)
	Standby timer values: spec'd by Vendor
	R/W multiple sector transfer: Max = 0	Current = ?
	DMA: not supported
	PIO: pio0 
Logical Unit WWN Device Identifier: 50014ee6abe7ac97
	NAA		: 5
	IEEE OUI	: 0014ee
	Unique ID	: 6abe7ac97
Checksum: correct

parted:

(parted) mkpart primary btrfs 0 10
Error: /dev/sdb: unrecognised disk label
(parted) mklabel gpt                                                      
Error: Input/output error during read on /dev/sdb
Retry/Ignore/Cancel? ^C                                                   
Error: Input/output error during write on /dev/sdb
Retry/Ignore/Cancel? ^C

PS: when I chose cancel or ignore, parted did not respond any more.

fdisk:

 delta67@Pollux  ~  sudo fdisk -l /dev/sdc
fdisk: cannot open /dev/sdc: Input/output error

dmesg:

[189049.345604] sd 20:0:0:0: [sdb] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[189049.345608] sd 20:0:0:0: [sdb] tag#0 Sense Key : 0x5 [current] 
[189049.345610] sd 20:0:0:0: [sdb] tag#0 ASC=0x20 ASCQ=0x0 
[189049.345613] sd 20:0:0:0: [sdb] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[189049.345615] blk_update_request: critical target error, dev sdb, sector 0
[189049.345617] Buffer I/O error on dev sdb, logical block 0, async page read

I’ve also tried testdisk and did a quick search but had no luck. The deep search gives IO error for every bit it reads.

I am not so sure if it is still the connection problem. And if the disk is partly broken, is there any way that I may rescue at least some of the data inside?

Thanks again for everyone. smile

Last edited by delta67 (2016-04-14 10:17:18)

  • Печать

Страницы: [1]   Вниз

Тема: Не устанавливается Ubuntu 10.04  (Прочитано 5241 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
TheHero

С Live CD все отлично работает. А при попытке установить, зависает на 5% с сообщением: «Создание файловой системы ext4 для монтирования в / на разделе #1 устройства SCSl4 (0,1,0) (sda)…«.
Проблема не с диском, потому что я перепробывал кучи. В данный момент уже 4 часа с 5%, к какому то времени должно выдать ошибку(знаю потому что уже пробовал), когда выдаст  — уточню в теме какая ошибка. Но может хватит и этих данных для выявления проблемы.


Оффлайн
stmc

так разметь диск еще до установки


Оффлайн
TheHero

Ты понял в чем у меня проблема?
Можно подробнее?


Оффлайн
Koroboru


Оффлайн
TheHero

Попробуйте подготовить разметку диска с помощью GParted с LiveCD.
https://help.ubuntu.ru/manual/%D1%80%D0%B0%D0%B7%D0%BC%D0%B5%D1%82%D0%BA%D0%B0_%D0%B4%D0%B8%D1%81%D0%BA%D0%B0
А также прочтите следующую главу «Установка». Да и вообще — хорошее руководство, если вы новичок в Ubuntu — рекомендую прочесть.

Все сделал по статье, на этот раз выводило ошибку «Input/output error during read on /dev/sda«. При повторной попытке, жесткий диск вообще пропал и уже не возвращался. Пропал — то есть в установке убунты его не было, и биос материнской платы не видел.

Кстати, вспомнил одну деталь — у меня стояла Ubuntu 64 битная, а делал я переустановку на 32 битную. Не знаю насколько это важно.

« Последнее редактирование: 07 Июня 2010, 19:08:39 от TheHero »


Оффлайн
Shefango

Похоже, что дело в диске. Если БИОС не видит — херово дело…

Ubuntu MATE@G2120/ASRock H61M-DGS/2x2Gb RAM/500Gb,1Tb,1Tb SATA/GF GTХ650/ext4
Runtu XFCE-14.04@Dell Inspirion 3542


yura_n

У меня была такая проблема с неттопом Asus. Диск был не при чем, это просто глюк. Решилась сменой дистрибутива. Попробуйте alternate версию.



Оффлайн
Raptor26

попробуй другую фаиловую систему, например ext3 вместо ext4


Пользователь решил продолжить мысль 07 Июня 2010, 18:38:27:


У меня похожий трабл был на дебиане, ext3 спасла.


Оффлайн
TheHero

Решилась сменой дистрибутива. Попробуйте alternate версию.

Менять дистрибутив это не решение. Но я пробовал 9.10 — и тот же результат.

Можно попробовать банально перезаписать диск с дистрибутивом.

Я пробовал много дисков.

Или это: http://defoult.ru/2009/11/testirovanie-zhestkogo-diska-hdd/
Если не поможет, и есть возможно, то открыть корпус и отключить-подключить кабели (вряд ли поможет, но все-таки).

Попробую.

попробуй другую фаиловую систему, например ext3 вместо ext4

Тоже самое — «Input/output error during read on /dev/sda«

И еще. Ubuntu 9.10 увидела жесткий диск, но ошибка все еще есть(пробовал ext3 и ext4). Ubuntu 10.04 и биос по прежнему не видят.


Оффлайн
Serg

Правильно заданный вопрос — уже половина ответа


Оффлайн
Raptor26

может она с журналируемыми фаиловыми системами не дружит, попробуй ext2 или другую не журналируемую систему.


Оффлайн
Упс

Решилась сменой дистрибутива. Попробуйте alternate версию.

Менять дистрибутив это не решение.

На alternate CD тоже Ubuntu. ;)


Оффлайн
Alexandre

Через неделю После появления  сообщений об ошибках ввода вывода у меня система вывела в области уведомления красный треугольник с предупреждением о скорой кончине диска. Пару дней спустя об этом сообщил биос (ноутбучный самсунг на 160 ги). Пришлось поменять на 120 (стоял в усб накопителе). Хотя этот на 160 вроде пашет в накопителе правда отформат в нтфс и доверия не имеет)). Попробуй загрузиться с лайв и проверить диск встроенной в 10.04 дисковой утилитой


  • Печать

Страницы: [1]   Вверх

Понравилась статья? Поделить с друзьями:
  • Input output error during read on dev sda linux
  • Input output error during read on dev mmcblk0
  • Input not supported при запуске компьютера как исправить
  • Input framing error
  • Input error you must pass a valid list of files to parse