pedrogent
April 16th, 2011, 09:50 AM
I recently got a bit of a shock as one of my HDDs seemingly died on me. NB: I've posted something similar here (http://askubuntu.com/questions/34862/weak-filesystem-seems-to-have-died-what-can-i-do) but have yet to get the answer I seek, although someone told me to put my HDD in the freezer!
Initially the problem was like this: I returned from a holiday to find my Ubuntu 'server' not functioning as it should. Specifically, one disk seemed to have died. I have Ubuntu 10.10 set-up as a 'server/NAS'. (I've installed netatalk and avahi-daemon to facilitate AFP shares.) There are two physical disks. The 'data' disk was the one that's wasn't working. This disk is formatted using the GUID partition table. It's the first time I've done this in a Linux environment, usually choosing an msdos partition map.
During POST, the disk in question was not found. I use AHCI mode.
The relevant bits from my /etc/fstab look like this:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
UUID=dd096328-2e0d-46d1-a630-760f895ece15 / ext4 errors=remount-ro,user_xattr 0 1
UUID=4d901313-a4f7-45b3-b15a-a70b2a4182e2 /media/data ext4 defaults 0 2
UUID=69a1dd0a-9da2-4ca4-bd21-00cd5d23ee0d none swap sw 0 0
If I ran sudo blkid '/dev/sdb1' (i.e. /media/data) wasn't showing up. Prior to this there were reports of a 'weak filesystem' during reboots, and e2fsck suggested I move the superblock on the drive.
I solved the problem by plugging the HDD into another SATA port. This leads me to believe the first SATA port is faulty. If so, I should replace the motherboard. But perhaps the HDD itself is faulty, or perhaps I've done the GUID partition incorrectly.
Is there a way to determine the health of that SATA port & HDD from the command line?
Thanks in advance.
Initially the problem was like this: I returned from a holiday to find my Ubuntu 'server' not functioning as it should. Specifically, one disk seemed to have died. I have Ubuntu 10.10 set-up as a 'server/NAS'. (I've installed netatalk and avahi-daemon to facilitate AFP shares.) There are two physical disks. The 'data' disk was the one that's wasn't working. This disk is formatted using the GUID partition table. It's the first time I've done this in a Linux environment, usually choosing an msdos partition map.
During POST, the disk in question was not found. I use AHCI mode.
The relevant bits from my /etc/fstab look like this:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
UUID=dd096328-2e0d-46d1-a630-760f895ece15 / ext4 errors=remount-ro,user_xattr 0 1
UUID=4d901313-a4f7-45b3-b15a-a70b2a4182e2 /media/data ext4 defaults 0 2
UUID=69a1dd0a-9da2-4ca4-bd21-00cd5d23ee0d none swap sw 0 0
If I ran sudo blkid '/dev/sdb1' (i.e. /media/data) wasn't showing up. Prior to this there were reports of a 'weak filesystem' during reboots, and e2fsck suggested I move the superblock on the drive.
I solved the problem by plugging the HDD into another SATA port. This leads me to believe the first SATA port is faulty. If so, I should replace the motherboard. But perhaps the HDD itself is faulty, or perhaps I've done the GUID partition incorrectly.
Is there a way to determine the health of that SATA port & HDD from the command line?
Thanks in advance.