Score:0

Re-connect to shell and e2fsck

cn flag

My server disconnected my SSH session which had a e2fsck running and I would like to re-connect to the shell and see the e2fsck output. I logged into my server via SSH and started a e2fsck on a 3TB harddisk. After 20mins the SSH session closed (Putty) but the e2fsck command is still running. How can I see the output of the running e2fsck? IS there a way to re-connect to the e2fsck output? And secondly: how can I prevent Putty from closing the SSH session?

djdomi avatar
za flag
start using screen or similar? this makes your command immune to disconnections and can run as long as it needs
vidarlo avatar
ar flag
Does this answer your question? [How to reconnect to a disconnected ssh session](https://serverfault.com/questions/19634/how-to-reconnect-to-a-disconnected-ssh-session), specifically [this answer](https://serverfault.com/a/1095878/435764).
Marc avatar
cn flag
thanks - i can use it in future. What can I do with my current situation. I need to connect to the running e2fck....
Marc avatar
cn flag
The reptyr solution did not work. It only creates a new shell without connecting to the old one.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.