Recover from a cable move on an eSATA disk on Linux

0

I've been lately using an external /home, which is placed on an eSATA disk.

The problem is after a while I somehow manage to move the cable. Then I get a bunch of IO errors in the terminal and I have to do a hard reboot (followed by fsck if I'm in the mood for that) (the system won't even power down with sudo poweroff after the cable is moved and the IO errors start) or the /home directory stays read only`.

Is there a way to recover from this less drastically. (Unfortunately not even umount /home works when in that moved-cable state).

PSkocik

Posted 2018-08-10T10:55:03.470

Reputation: 1 182

1There is a way: Patience. sudo poweroff will work after a while, when all timeouts in all retry queues have expired. – Eugen Rieck – 2018-08-10T10:56:24.817

1

Somewhat related: How to recover Linux binaries for safe shutdown after unplugged ssd?

– Kamil Maciorowski – 2018-08-10T10:58:57.293

Patience doesn't work :D. Once it happened I left it for like half an hour and the computer was still stuck. – PSkocik – 2018-08-10T10:59:50.277

No answers