Copying a Filesystem between Computers
If you need to transfer an entire filesystem from one machine to another, for example, when you get a new computer, do the following steps.
1) Boot both PCs with any Linux live CD (for example, Knoppix), and make sure they can access each other via the network.
2) On the source machine, mount the partition containing the filesystem to be copied, and start the transfer using netcat and tar:
cd /mnt/sda1 tar -czpsf - . | pv -b | nc -l 3333
3) On the destination machine, mount the partition to receive the filesystem, and start the process:
cd /mnt/sda1 nc 192.168.10.101 3333 | pv -b | tar -xzpsf -
The nc (netcat) command is used for any kind of TCP connections between two hosts. The pv (progress viewer) command is used to display the progress of the transfer. tar is used to archive the files on the source machine and un-archive them on the destination.
- Readers' Choice Awards 2013
- Mars Needs Women
- RSS Feeds
- Sublime Text: One Editor to Rule Them All?
- December 2013 Issue of Linux Journal: Readers' Choice
- Raspberry Pi: the Perfect Home Server
- Linux Systems Administrator
- IBM Will Minimize Impact of Future Disasters
- Senior Perl Developer
- Technical Support Rep
- why is GNOME 3 in the fifth position at 14.1 %?
5 hours 26 min ago
- Sublime Is Brilliant!
10 hours 29 min ago
10 hours 48 min ago
- Rapid[Disk,Cache] better than native ram caching?
11 hours 13 min ago
- Nothing is perfect
11 hours 27 min ago
- Mixtapes Community
17 hours 6 min ago
- KDE is one true DE
17 hours 40 min ago
- Command Line Shells (Bash, Zsh, etc.) are 2nd place
18 hours 8 min ago
20 hours 3 min ago
- yes it's Jupiter Broadcasting
21 hours 23 min ago