{"id":403,"date":"2010-07-13T17:18:17","date_gmt":"2010-07-13T15:18:17","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=403"},"modified":"2010-07-13T17:18:17","modified_gmt":"2010-07-13T15:18:17","slug":"ghosting-the-machine-howtoforge","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2010\/07\/13\/ghosting-the-machine-howtoforge\/","title":{"rendered":"ghosting the machine (howtoforge)"},"content":{"rendered":"<p>howtoforge adresinde gordum<br \/>\ncok kolay yapiliyor klonlama isi<br \/>\nunutmamak icin burayada yazayim.<\/p>\n<p>Ghosting The Machine<\/p>\n<p>This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop\/server). Credit goes to &#8216;topdog&#8217; for this.<\/p>\n<p>You might have a small office where you customise one desktop just how you like it and need to roll this out to N other PC&#8217;s or simply want a backup of a server or desktop to another machine or even to an image file.<\/p>\n<p>The main tool here is netcat which is extremely powerful and has a multitude of other great uses that won&#8217;t be covered here.<\/p>\n<p>Target Machine:<\/p>\n<p>** Boot to linux rescue mode with networking (CentOS works fine)<\/p>\n<p>Initiate netcat to listen on port 30 &#8211; # nc -l -p <portnumber> | dd of=\/dev\/sda (assuming the hard drive is sda and not hda):<\/p>\n<p># nc -l -p 30 | dd of=\/dev\/sda<\/p>\n<p>Source Machine:<\/p>\n<p>Dump the contents of the disk to the target PC &#8211; #dd if=\/dev\/sda | nc <ipaddresstarget> <portnumber>\n<p># dd if=\/dev\/sda | nc 192.168.0.20 30<\/p>\n<p>Then to check that traffic is flowing, on the source go to another terminal (ALT\/F2) and dump the tcp data on the NIC (assuming it&#8217;s eth0):<\/p>\n<p>tcpdump -tnli eth0 port 30<\/p>\n<p>If you just want a backup image you could change the above output on the taget to:<\/p>\n<p># nc -l -p 30 | dd of=mybackup.img<\/p>\n<p>That&#8217;s it. Naturally the target PC\/disk cannot be smaller than the source:) I hope this saves someone a lot of time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>howtoforge adresinde gordum cok kolay yapiliyor klonlama isi unutmamak icin burayada yazayim. Ghosting The Machine This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop\/server). Credit goes to &#8216;topdog&#8217; for this. You might have a small office where you customise [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=403"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":404,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/403\/revisions\/404"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}