Sunday, May 5, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 3287  / 3 Years ago, sun, june 13, 2021, 12:19:27

I want to migrate with my 12.04 to another machine. I have found the way with dd and hope it will work for me. The thing is that I have to somehow connect both drives to do the actual cloning. I'm trying NFS. When I write in /etc/exports:



/dev/sda1 10.42.0.16(rw,async,subtree_check)


and invoke exportfs -a I end up with the following error:



exportfs: /dev/sda1 is neither a directory nor a file. Remote access will fail


Any clues how I can overcome the problem? Is it a matter of configuration or NFS is a dead end and I have to use something different?


More From » installation

 Answers
6

On the receiver end:



nc -l 5678 | sudo dd if=/dev/stdin of=/dev/sda


Then on the sender end:



sudo dd if=/dev/sda of=/dev/stdout | nc 1.2.3.4 5678


This copies sda from one PC to another over the network to IP 1.2.3.4 and port 5678. Be sure to install one of the nc packages (just run nc in the terminal and you will get the suggestion if not installed yet.)



Also make sure not any volume on either of the sda drives has a filesystem mounted, so run off a live CD on both ends if you're unsure.


[#30269] Monday, June 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;