1

I couldn't find the answer to this anywhere, so I'm posting this in the hope it helps someone else...

My scenario was linux system with an external drive that was connected (and mounted) was suddenly disconnected. I'm not sure why- it may have been a power issue.

After that linux continually reported:

/dev/sdd: read failed after 0 of 4096 at 0: Input/output error

when running fdisk -l, or pvscan, or vgscan or lvscan etc.

Reconnecting the drive did not work, and there was now no way to remount the drive.

What I needed to do was delete the /dev/sdd device.

pvremove --force /dev/sdd

removed the device from LVM, but did not stop the error.

Here's the solution:

cd /sys/block/sdd/device
echo 1 > delete

An answer here pointed me to look in the right place. kudos to bogdano

2
  • 2
    Please post your solution as an answer and accept it when you are able to. – user9517 Oct 2 '11 at 7:38
  • Answer: cd /sys/block/sdd/device echo 1 > delete An answer here pointed me to look in the right place. kudos to bogdano – russellr May 13 '12 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.