Hard drive becomes unrecognized

Asked by Logan Tanner

Hi,

I recently installed Ubuntu 10.10 but have noticed that my second hard drive stops being recognised, whether in use or not, after around 90 minutes. This is a pain because I need to restart if I want to use the drive again and was wondering if there was any way to fix this?

Here is the result of my fdisk -l (/dev/sdc is the SATA drive I'm having problems with) :

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe8900690

   Device Boot Start End Blocks Id System
/dev/sda1 1 121601 976760001 7 HPFS/NTFS

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xda3b81f4

   Device Boot Start End Blocks Id System
/dev/sdb1 * 639 55723 442470262+ 7 HPFS/NTFS
/dev/sdb2 55724 57715 16000740 83 Linux
/dev/sdb3 1 638 5124703+ 82 Linux swap / Solaris
/dev/sdb4 57716 60801 24788295 83 Linux

Partition table entries are not in disk order

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa1b6ab97

   Device Boot Start End Blocks Id System
/dev/sdc1 1 121602 976759808 7 HPFS/NTFS

Disk /dev/sdd: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7441bd28

   Device Boot Start End Blocks Id System
/dev/sdd1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdd2 13 7784 62417920 7 HPFS/NTFS

Thanks for any assistance.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
Logan Tanner
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

When the drive drops off, run:

dmesg | tail -n 20

What is output?

Revision history for this message
Logan Tanner (ackbar12) said :
#2

I've been waiting for it to drop off for the best part of six hours without success. Here is the output of the command you asked for in the mean time. I'll post again if I get something different but these errors do seem to repeat themselves.

dmesg | tail -n 20
[18039.980072] ata2: nv: skipping hardreset on occupied port
[18040.448379] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[18040.464196] ata2.00: configured for UDMA/133
[18040.464224] ata2: EH complete
[19829.170260] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[19829.170265] ata2.00: failed command: SMART
[19829.170270] ata2.00: cmd b0/d0:01:00:4f:c2/00:00:00:00:00/00 tag 0 pio 512 in
[19829.170271] res 51/84:00:00:4f:c2/00:00:00:00:00/00 Emask 0x10 (ATA bus error)
[19829.170274] ata2.00: status: { DRDY ERR }
[19829.170276] ata2.00: error: { ICRC ABRT }
[19829.170281] ata2: hard resetting link
[19829.170282] ata2: nv: skipping hardreset on occupied port
[19829.636049] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[19829.748076] ata2.00: NODEV after polling detection
[19829.748080] ata2.00: revalidation failed (errno=-2)
[19834.636054] ata2: hard resetting link
[19834.636059] ata2: nv: skipping hardreset on occupied port
[19835.104051] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[19835.120195] ata2.00: configured for UDMA/133
[19835.120219] ata2: EH complete

Revision history for this message
Logan Tanner (ackbar12) said :
#3

It finally just dropped off again. Here is the new output :

dmesg | tail -n 20
[23435.188093] ata2.00: NODEV after polling detection
[23435.188097] ata2.00: revalidation failed (errno=-2)
[23440.076553] ata2: hard resetting link
[23440.076558] ata2: nv: skipping hardreset on occupied port
[23440.544025] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[23440.656074] ata2.00: NODEV after polling detection
[23440.656078] ata2.00: revalidation failed (errno=-2)
[23440.656082] ata2.00: disabled
[23440.656095] ata2: hard resetting link
[23441.536044] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[23441.536075] ata2: EH complete
[23441.536152] sd 1:0:0:0: [sdb] READ CAPACITY(16) failed
[23441.536156] sd 1:0:0:0: [sdb] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[23441.536161] sd 1:0:0:0: [sdb] Sense not available.
[23441.536201] sd 1:0:0:0: [sdb] READ CAPACITY failed
[23441.536204] sd 1:0:0:0: [sdb] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[23441.536208] sd 1:0:0:0: [sdb] Sense not available.
[23441.536272] sd 1:0:0:0: [sdb] Asking for cache data failed
[23441.536275] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[23441.536279] sdb: detected capacity change from 1000204886016 to 0

Thanks for your help.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Doesn't sound healthy dude, I suggest you fsck the partition (or if it is NTFS then use a windows OS and chkdsk it)

Revision history for this message
Logan Tanner (ackbar12) said :
#5

I seemed to have fixed this problem now by disconnecting my external USB hard drive.

Thanks for the help anyway!