Hey guys I recently purchased a 14tb ironwolf pro to replace my current 4tb hard drive that is used for my media server. I have tried to copy my media folder across in an SSH session but it got to about 20% and then I had a broken pipe. I have just set it off to copy again but I’m wondering if this will happen again? Is there a set time out on SSH sessions? Could there be an easier way to get this 4tb of data across to my new hard drive? I don’t have access to my hard drive over SMB because the 4tb drive is having some issues in OMV. I also don’t have a Linux desktop where I can read and copy over in ext4 format. Any assistance would be greatly appreciated
Perhaps hooking up a screen and logging directly into the pi to do the transfer?
Two suggestions
- After connecting via ssh, run ‘screen’ (sudo apt install -y screen)
That will create a virtual session. If your ssh connection breaks, that virtual session still exists.
https://linuxize.com/post/how-to-use-linux-screen/
-
Use some sort of copy command that can deal with restarting a partial copy
rsync -av /mnt/4tb/* /mnt/14tb/
Dude awesome reply thank you! I’ll wait for this session to break and give screen a crack and then rsync if screen doesn’t get the job done.
Learn rsync, it is your only friend for these sorts of jobs. :-)
That is becoming more and more evident. It seems like an excellent solution.
tmux is a very good alternative to screen, if you come across that.