LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Is my HDD dead? (https://www.linuxquestions.org/questions/linux-hardware-18/is-my-hdd-dead-4175512281/)

earthw0rmjim 07-25-2014 02:06 PM

Is my HDD dead?
 
Hey,

So today my PC completely froze. After the reboot i stuck in an infinite loop trying to boot into emergency mode.
I suspected an fstab issue, so booted with a live USB stick to fix it, but my HDD didn't show up in /dev/xxxx nor in blkid's output.
(my external hard drive was detected without problems)

Can i try anything else? Is my HDD dead?

Thanks in advance.

smallpond 07-25-2014 02:16 PM

Could be the controller. Try connecting it to another PC.

business_kid 07-25-2014 02:16 PM

That's possible. It could be damaged, or a file corrupt. The motherboard or power supply could be the issue. Boot with whatever you can - install cd or whatever, and post the output of

Quote:

ls -l /dev/disk/by-id
Also check logs for disk errors. A disk vanishing is awful like a plug pulled out - check for that. Oh, if the cdrom and hard disk are on the same cable, pull the other one.

rokytnji 07-25-2014 02:57 PM

Look in the bios and see if bios recognises the internal hardrive.
Some bioses have a checker built in.
I have used in a live session as root in terminal

Code:

smartctl -a /dev/sdx | less
where x= the letter name of drive given in blkid or fdisk -l or lshw

If bios does not see it. It is toast.

metaschima 07-25-2014 03:06 PM

Quote:

Originally Posted by smallpond (Post 5209596)
Could be the controller. Try connecting it to another PC.

I agree. The external HDD has a built-in controller, so it won't test the mobo SATA controller.

In all likelihood, the HDD is probably dead, but eliminating the SATA controller is worthwhile.

earthw0rmjim 07-26-2014 02:25 AM

Thanks for the replies.
I just realized my optical drive isn't detected either.

Code:

root@debian:/dev# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root  9 Jul 26 03:25 usb-ADATA_USB_Flash_Drive_1222410312340062-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jul 26 03:25 usb-ADATA_USB_Flash_Drive_1222410312340062-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Jul 26 03:25 usb-HitachiG_ST_31001110170000001920-0:0 -> ../../sda /*** my external hdd ***/
lrwxrwxrwx 1 root root 10 Jul 26 03:25 usb-HitachiG_ST_31001110170000001920-0:0-part1 -> ../../sda1
root@debian:/dev#

Code:

root@debian:/dev# blkid
/dev/sda1: LABEL="vl_ext" UUID="66bf9827-1419-4f3d-bd89-fb09808c099f" TYPE="ext3" /*** my external hdd ***/
/dev/sdb1: UUID="D45C-53B7" TYPE="vfat" /*** usb flash drive ***/
/dev/loop0: TYPE="squashfs"
root@debian:/dev#

Code:

root@debian:/dev# lshw
debian
    description: Desktop Computer
    product: To Be Filled By O.E.M. (To Be Filled By O.E.M.)
    vendor: To Be Filled By O.E.M.
    version: To Be Filled By O.E.M.
    serial: To Be Filled By O.E.M.
    width: 64 bits
    capabilities: smbios-2.7 dmi-2.7 vsyscall32
    configuration: boot=normal chassis=desktop family=To Be Filled By O.E.M. sku=To Be Filled By O.E.M. uuid=00020003-0004-0005-0006-000700080009
  *-core
      description: Motherboard
      product: Z77 Pro3
      vendor: ASRock
      physical id: 0
    *-firmware
          description: BIOS
          vendor: American Megatrends Inc.
          physical id: 0
          version: P1.00
          date: 03/08/2012
          size: 64KiB
          capacity: 8128KiB
          capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
    *-cache:0
          description: L2 cache
          physical id: b
          slot: CPU Internal L2
          size: 1MiB
          capacity: 1MiB
          capabilities: internal write-through instruction
    *-cache:1
          description: L1 cache
          physical id: c
          slot: CPU Internal L1
          size: 128KiB
          capacity: 128KiB
          capabilities: internal write-through
    *-cache:2
          description: L3 cache
          physical id: d
          slot: CPU Internal L3
          size: 6MiB
          capacity: 6MiB
          capabilities: internal write-back instruction
    *-memory
          description: System Memory
          physical id: e
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
            description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
            product: PSD34G13332
            vendor: 8502
            physical id: 0
            serial: 00000000
            slot: ChannelA-DIMM0
            size: 4GiB
            width: 64 bits
            clock: 1333MHz (0.8ns)
        *-bank:1
            description: DIMM [empty]
            product: [Empty]
            vendor: [Empty]
            physical id: 1
            serial: [Empty]
            slot: ChannelA-DIMM1
        *-bank:2
            description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
            product: PSD34G13332
            vendor: 8502
            physical id: 2
            serial: 00000000
            slot: ChannelB-DIMM0
            size: 4GiB
            width: 64 bits
            clock: 1333MHz (0.8ns)
        *-bank:3
            description: DIMM [empty]
            product: [Empty]
            vendor: [Empty]
            physical id: 3
            serial: [Empty]
            slot: ChannelB-DIMM1
    *-cpu
          description: CPU
          product: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
          vendor: Intel Corp.
          physical id: f
          bus info: cpu@0
          version: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
          slot: CPUSocket
          size: 3400MHz
          capacity: 3800MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp constant_tsc up arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
          configuration: cores=4 enabledcores=4 threads=4
    *-pci
          description: Host bridge
          product: Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 09
          width: 32 bits
          clock: 33MHz
          configuration: driver=agpgart-intel
          resources: irq:0
        *-display UNCLAIMED
            description: VGA compatible controller
            product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
            vendor: Intel Corporation
            physical id: 2
            bus info: pci@0000:00:02.0
            version: 09
            width: 64 bits
            clock: 33MHz
            capabilities: msi pm vga_controller bus_master cap_list
            configuration: latency=0
            resources: memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)
        *-usb:0
            description: USB controller
            product: 7 Series/C210 Series Chipset Family USB xHCI Host Controller
            vendor: Intel Corporation
            physical id: 14
            bus info: pci@0000:00:14.0
            version: 04
            width: 64 bits
            clock: 33MHz
            capabilities: pm msi xhci bus_master cap_list
            configuration: driver=xhci_hcd latency=0
            resources: irq:11 memory:f7c00000-f7c0ffff
        *-communication UNCLAIMED
            description: Communication controller
            product: 7 Series/C210 Series Chipset Family MEI Controller #1
            vendor: Intel Corporation
            physical id: 16
            bus info: pci@0000:00:16.0
            version: 04
            width: 64 bits
            clock: 33MHz
            capabilities: pm msi bus_master cap_list
            configuration: latency=0
            resources: memory:f7c1a000-f7c1a00f
        *-usb:1
            description: USB controller
            product: 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2
            vendor: Intel Corporation
            physical id: 1a
            bus info: pci@0000:00:1a.0
            version: 04
            width: 32 bits
            clock: 33MHz
            capabilities: pm debug ehci bus_master cap_list
            configuration: driver=ehci_hcd latency=0
            resources: irq:11 memory:f7c18000-f7c183ff
        *-multimedia
            description: Audio device
            product: 7 Series/C210 Series Chipset Family High Definition Audio Controller
            vendor: Intel Corporation
            physical id: 1b
            bus info: pci@0000:00:1b.0
            version: 04
            width: 64 bits
            clock: 33MHz
            capabilities: pm msi pciexpress bus_master cap_list
            configuration: driver=snd_hda_intel latency=0
            resources: irq:5 memory:f7c10000-f7c13fff
        *-pci:0
            description: PCI bridge
            product: 7 Series/C210 Series Chipset Family PCI Express Root Port 1
            vendor: Intel Corporation
            physical id: 1c
            bus info: pci@0000:00:1c.0
            version: c4
            width: 32 bits
            clock: 33MHz
            capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
            configuration: driver=pcieport
            resources: irq:11 ioport:2000(size=4096) memory:dfb00000-dfcfffff ioport:dfd00000(size=2097152)
        *-pci:1
            description: PCI bridge
            product: 82801 PCI Bridge
            vendor: Intel Corporation
            physical id: 1c.4
            bus info: pci@0000:00:1c.4
            version: c4
            width: 32 bits
            clock: 33MHz
            capabilities: pci pciexpress msi pm subtractive_decode bus_master cap_list
          *-pci
                description: PCI bridge
                product: ASM1083/1085 PCIe to PCI Bridge
                vendor: ASMedia Technology Inc.
                physical id: 0
                bus info: pci@0000:02:00.0
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: pci subtractive_decode bus_master cap_list
        *-pci:2
            description: PCI bridge
            product: 7 Series/C210 Series Chipset Family PCI Express Root Port 6
            vendor: Intel Corporation
            physical id: 1c.5
            bus info: pci@0000:00:1c.5
            version: c4
            width: 32 bits
            clock: 33MHz
            capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
            configuration: driver=pcieport
            resources: irq:3 ioport:e000(size=4096) ioport:f0000000(size=1048576)
          *-network
                description: Ethernet interface
                product: RTL8111/8168B PCI Express Gigabit Ethernet controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:04:00.0
                logical name: eth0
                version: 06
                serial: bc:5f:f4:37:4f:66
                size: 100Mbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=N/A ip=192.168.1.101 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
                resources: irq:3 ioport:e000(size=256) memory:f0004000-f0004fff memory:f0000000-f0003fff
        *-usb:2
            description: USB controller
            product: 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1
            vendor: Intel Corporation
            physical id: 1d
            bus info: pci@0000:00:1d.0
            version: 04
            width: 32 bits
            clock: 33MHz
            capabilities: pm debug ehci bus_master cap_list
            configuration: driver=ehci_hcd latency=0
            resources: irq:11 memory:f7c17000-f7c173ff
        *-isa
            description: ISA bridge
            product: Z77 Express Chipset LPC Controller
            vendor: Intel Corporation
            physical id: 1f
            bus info: pci@0000:00:1f.0
            version: 04
            width: 32 bits
            clock: 33MHz
            capabilities: isa bus_master cap_list
            configuration: latency=0
        *-storage UNCLAIMED
            description: SATA controller
            product: 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode]
            vendor: Intel Corporation
            physical id: 1f.2
            bus info: pci@0000:00:1f.2
            version: 04
            width: 32 bits
            clock: 66MHz
            capabilities: storage msi pm ahci_1.0 bus_master cap_list
            configuration: latency=0
            resources: ioport:f0b0(size=8) ioport:f0a0(size=4) ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:f7c16000-f7c167ff
        *-serial UNCLAIMED
            description: SMBus
            product: 7 Series/C210 Series Chipset Family SMBus Controller
            vendor: Intel Corporation
            physical id: 1f.3
            bus info: pci@0000:00:1f.3
            version: 04
            width: 64 bits
            clock: 33MHz
            configuration: latency=0
            resources: memory:f7c15000-f7c150ff ioport:f040(size=32)
    *-scsi:0
          physical id: 1
          bus info: usb@1:3
          logical name: scsi0
          capabilities: emulated
        *-disk
            description: SCSI Disk
            product: ST
            vendor: HitachiG
            physical id: 0.0.0
            bus info: scsi@0:0.0.0
            logical name: /dev/sda
            version: 0000
            serial: 3100111017000000
            size: 1863GiB (2TB)
            capabilities: partitioned partitioned:dos
            configuration: ansiversion=6 sectorsize=4096 signature=d293a31b
          *-volume
                description: Linux filesystem partition
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                capacity: 232GiB
                capabilities: primary
    *-scsi:1
          physical id: 2
          bus info: usb@4:1.7
          logical name: scsi1
          capabilities: emulated
        *-disk
            description: SCSI Disk
            physical id: 0.0.0
            bus info: scsi@1:0.0.0
            logical name: /dev/sdb
            size: 14GiB (16GB)
            capabilities: partitioned partitioned:dos
            configuration: sectorsize=512 signature=c3072e18
          *-volume
                description: Windows FAT volume
                vendor: SYSLINUX
                physical id: 1
                bus info: scsi@1:0.0.0,1
                logical name: /dev/sdb1
                logical name: /lib/live/mount/medium
                version: FAT32
                serial: d45c-53b7
                size: 14GiB
                capacity: 14GiB
                capabilities: primary bootable fat initialized
                configuration: FATs=2 filesystem=fat mount.fstype=vfat mount.options=ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro state=mounted
root@debian:/dev#

Does this mean it's most likely the SATA controller rather than the HDD?

business_kid 07-26-2014 03:16 AM

This is pretty catastrophic.
Either you have no disk driver (a)in software or (b) in hardware
You are booting from usb? have you checked dmesg and /var/log/messages for hardware errors? Do they sit up and say hello?

earthw0rmjim 07-26-2014 04:03 AM

Yes, i'm booting from USB.
The HDD which doesn't working now was the one i used to boot, so i can access only the live system's logs (which is running from USB).
I'm pretty sure it's not a software issue, booted into a Debian installer and it didn't recognize my internal HDD (at the part where i have to set up the partitions).
Since my optical drive isn't detected either i think it could be the SATA controller.
Tried different SATA ports, the result is the same.

rokytnji 07-26-2014 08:16 AM

Hmmmm. Something is being seen/detected

Code:

  *-disk
            description: SCSI Disk
            product: ST
            vendor: HitachiG
            physical id: 0.0.0
            bus info: scsi@0:0.0.0
            logical name: /dev/sda
            version: 0000
            serial: 3100111017000000
            size: 1863GiB (2TB)
            capabilities: partitioned partitioned:dos
            configuration: ansiversion=6 sectorsize=4096 signature=d293a31b
          *-volume
                description: Linux filesystem partition
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                capacity: 232GiB
                capabilities: primary

http://www.techrepublic.com/blog/lin...r-hard-drives/

Nor sure what to say about the cdrom drive other than check the bios like I said earlier.

Your gear is newer than mine.

earthw0rmjim 07-26-2014 08:41 AM

Quote:

Originally Posted by rokytnji (Post 5209893)
Hmmmm. Something is being seen/detected

That's my external HDD, which is connected via USB.

edit:

It was an fstab issue after all :)
For some reason the Debian live system (which i booted from USB) didn't recognize the SATA devices. Now i guess it was missing the appropriate drivers. I gave Puppy Linux a try and it detected my HDD, so i could fix fstab.

Thanks for all the replies!

rokytnji 07-26-2014 09:47 AM

Quote:

That's my external HDD, which is connected via USB.
And called /dev/sda and linux partition /dev/sda1.
That is a wonderment.

Maybe because internal drive is not seen so lshw gives it sda instead of sdb,sdc,sde,sdf.

Quote:

In BIOS both my internal HDD and optical drive are detected as SATA devices. I'm kinda confused now. So they're not detected anywhere else but in BIOS. What could this mean?
To me, that they are not fubar. Usually bios is the beginning so if seen there. You can work your way up from there.
This thread is beyond my level of expertise though, because bios sees drives but live session does not.
I am stumped like you.

Edit: Glad you got it sorted but a installed bad /etc/fstab entry should not have had any relevance in a live session. So I am getting on the bike and cruising for the rest of the morning.

@nd edit: Must have been a old Debian kernel I guess.

3rd edit: Sure would be cool to see
Code:

cat /etc/fstab
for future readers. Mark thread as solved with thread tools above your 1st post to be helpful also.

Happy Trails, Rok


All times are GMT -5. The time now is 08:29 PM.