Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux Mint 14 (Cinnamon), Xubuntu 12.04, Ubuntu 10.04
Posts: 49
Rep:
Fixing broken HD as part of LVM2
Hi all,
After a system restart of my Linux Mint 16 Petra (Ubuntu 13.10), my LVM partitions are no longer available, and it looks like one of the HD is faulty.
When trying to run any LVM command (e.g. pvdisplay, lvdisplay) I get
Code:
~ $ sudo pvdisplay
/dev/sda: read failed after 0 of 1024 at 0: Input/output error
/dev/sda: read failed after 0 of 1024 at 4141940736: Input/output error
/dev/sda: read failed after 0 of 1024 at 4142043136: Input/output error
/dev/sda: read failed after 0 of 1024 at 4096: Input/output error
/dev/sda: read failed after 0 of 2048 at 0: Input/output error
When trying to run S.M.A.R.T test I get
Code:
sk_disk_smart_self_test: Operation not supported (udisks-error-quark, 0)
When trying to run some common command line tests I get
Code:
~ $ sudo sfdisk -l /dev/sda
Disk /dev/sda: 503 cylinders, 255 heads, 63 sectors/track
read: Input/output error
sfdisk: read error on /dev/sda - cannot read sector 0
/dev/sda: unrecognised partition table type
No partitions found
~ $ sudo e2fsck -n /dev/sda
e2fsck 1.42.8 (20-Jun-2013)
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda
Could this be a zero-length partition?
~ $ sudo tune2fs -l /dev/sda
tune2fs 1.42.8 (20-Jun-2013)
tune2fs: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda
Couldn't find valid filesystem superblock.
/dev/sda is a 2TB Seagate ST2000DM001, but the gnome-disk-utility thinks it is only 4.1GB
Before anyting else, check the connections. You may have just lost a cable or have dust or corrosion on a contact. Dust is one of a computers worst enemies.
Assuming it IS the drive: I would replace the hard drive, init the new hard drive, add to the VG, then restore from backups. I hope you DO have backups, this kind of event is exactly what they are for.
An alternative, just replace the failed drive with a new one and do a total reload of the system. If you keep your best stuff online, this may be the quickest solution. Bonus, you get a completely current system load.
You may be able to run a deep diagnostic on the failed drive and discover just how failed it is, but it may not be recoverable at all.
Distribution: Linux Mint 14 (Cinnamon), Xubuntu 12.04, Ubuntu 10.04
Posts: 49
Original Poster
Rep:
The first thing I did after finding out the HDD to be faulty was to check the connections (well, second thing after cursing my bad luck).
I then tried replacing the cable, and connecting it to a different SATA slot on the MoBo, but it didn't help either.
I also tried running dd if=/dev/sda of=/dev/null to see if it recognizes the correct HDD size, but it didn't (It saw the 2TB HDD as a 4.1GB HDD)
Still not giving up on restoring the data from this drive, but running out of ideas...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.