LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-08-2016, 01:32 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
input/output error bad blocks how to fix?


WIndows with chkdsk says it is raw data .. it is a msdos format WD passport 1tb usb
gparted doesn't know that it is, just gives me input/output error

Code:
[  805.226933] blk_update_request: critical medium error, dev sdc, sector 2048
[  805.503998] sd 6:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  805.504004] sd 6:0:0:0: [sdc] tag#0 Sense Key : 0x3 [current] 
[  805.504007] sd 6:0:0:0: [sdc] tag#0 ASC=0x11 ASCQ=0x0 
[  805.504011] sd 6:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 08 00 00 00 08 00
[  805.504014] blk_update_request: critical medium error, dev sdc, sector 2048
[  805.504018] Buffer I/O error on dev sdc, logical block 256, async page read
that is the dmsg pertaining to this usb hard drive. sector 2048 what is that, can this be fixed or rescued to get the data off it?

I've tried mounting it ntfs-3g
Code:
[userx@Voided ~]$ sudo mount /dev/sdc1 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
Code:
[userx@Voided ~]$ sudo mount -t ntfs-3g /dev/sdc1 /mnt
Error reading bootsector: Input/output error
Failed to mount '/dev/sdc1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
 
Old 10-08-2016, 01:43 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
so what is this trying to actaully tell me?

Code:
[userx@Voided ~]$ sudo dosfsck -w -r -l -a -v -t /dev/sdc1
fsck.fat 4.0 (2016-05-06)
Read 512 bytes at 0:Input/output error
Code:
[userx@Voided ~]$ sudo xbps-query -Rs dosfstools[*] dosfstools-4.0_1 DOS filesystem tools
[userx@Voided ~]$ sudo dosfsck -t -a -w /dev/sdb1
fsck.fat 4.0 (2016-05-06)
Currently, only 1 or 2 FATs are supported, not 0.
 
Old 10-08-2016, 01:46 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
fdisk -l
Code:
fdisk: cannot open /dev/sdc1: Input/output error
[userx@Voided ~]$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 931.5 GiB, 1000170586112 bytes, 1953458176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4d6d966b

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdc1        2048 1953458175 1953456128 931.5G  b W95 FAT32
 
Old 10-08-2016, 03:18 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
This tells me the MBR is good but the first sector of partition 1 (i.e. 2048) is bad. testdisk and photorec go byte by byte to find files based on their magic number but the file name is lost. Hopefully there are not more bad sectors and you can recover all of your data but it will be painful.

http://www.exampleproblems.com/wiki/...location_Table
 
  


Reply

Tags
hdd, usb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fix bad blocks on faulty hard-drive? deckoff Linux - General 11 05-25-2013 06:36 AM
Fix input/output error or find correct webcam driver for icecam2? agingcomputer Linux - Hardware 0 03-25-2010 08:06 AM
What is the expected output of mke2fs -c -c when there are bad blocks on the disk? pipopo Linux - General 6 02-06-2008 03:43 AM
Hard Drive - Bad Inodes/superblocks - input/output error broknindarkagain Linux - Hardware 1 07-07-2006 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration