Re: Re: cloning hdb4 to another machine
On Tue, Jul 27, 2004 at 07:32:50PM -0400, Wanda Round wrote: > > I have 2 different machines. I want hdb4 on one machine > cloned to hdb3 on the other machine. The machines are > about 20 miles apart (home and work). > > The suggestions will come in very handy when I need to > clone on the same drive. > > Any help on cloning from one machine's 2nd drive to > a different machine's 2nd drive? If I understand the situation, you have a system occupying 1.5 Gig and you want this partition cloned exactly onto the other? This 1.5 gig should tar onto a single CD if you use bzip2 compression (gzip probably would do it). this scenario should do it.. cd / tar -cjf image.tar.bz2 / You then need to burn this file onto a CDrom, take it home, clean the partition - probably use mke2fs (or whatever filesystem you use). Then cd onto that partition and extract the image file. You'd need to do some editing of fstab, and the like. I believe you said this system uses grub? I don't use grub, so I don't know about that aspect. If the kernel filename is the same, it might simply boot up as is, or you might have to do some editing. But at any rate, that ought to at least get your files placed where you want them. In addition to this, of course, to extract the image onto the destionation system, you'll need linux to extract onto the partition - either a rescue disk or Knoppix or the like. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cloning hdb4 to another machine
Wanda Round wrote: -Original Message- From: Alvin Oga <[EMAIL PROTECTED]> To: Wanda Round <[EMAIL PROTECTED]> Date: Wed, 28 Jul 2004 03:36:52 -0700 (PDT) Subject: Re: danger - Re: cloning hdb4 to another machine hi ya wanda On Wed, 28 Jul 2004, Wanda Round wrote: The "IT department at work" is basically 2 guys who think my answer is to scrap Linux and go back to the warm womb of Microsoft. i think you just increased everybody's willingness to help get it done to show the microsoft-zombies it can be done Alvin, I'll get back on trying it tonight at home. But I did realize that I'm actually lucky that they will even let me have Linux at work. They're not so much strictly opposed as they are doubtful. The boss is old school--doesn't care if I get it done by mind-reading as long as the boys tell him it's safe. But at least they're willing to humor me for now. Okay, leave your desktop system at work:-) For this you need broadband. Run vncserver on your peecee at work. It can run whatever distro is best for work. Or several. At home, connect with vncviewer. You can bring up a full desktop over the Internet. How well it will work depends on how good a screen you need: it probably won't suit a graphics specialist, but for ordinary programming or system admin its fine. You can choose pretty much any screen size you like: your choice will be governed by your screen at home and the bandwidth requirements. You can run several desktops of you want. On the same or on different remote computers. The nicest way to access machines at work from home or vice versa) us with a VPN. For that I recommend openvpn. It's a Debian package, it uses UDP (so doesn't get the timing problems of TCP VPNs), uses adaptive compression, uses encryption for security. And it's easy to set up. There are alternative related plans: filesharing with NFS across the VPN (not good for home directories, but probably good for getting the results back to work). If you don't want a GUI, then a modem works quite well: it's what I'm doing at present. -- Cheers John -- spambait [EMAIL PROTECTED] [EMAIL PROTECTED] Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: danger - Re: cloning hdb4 to another machine
-Original Message- From: Alvin Oga <[EMAIL PROTECTED]> To: Wanda Round <[EMAIL PROTECTED]> Date: Wed, 28 Jul 2004 03:36:52 -0700 (PDT) Subject: Re: danger - Re: cloning hdb4 to another machine hi ya wanda On Wed, 28 Jul 2004, Wanda Round wrote: > The "IT department at work" is basically 2 guys who > think my answer is to scrap Linux and go back to the > warm womb of Microsoft. i think you just increased everybody's willingness to help get it done to show the microsoft-zombies it can be done Alvin, I'll get back on trying it tonight at home. But I did realize that I'm actually lucky that they will even let me have Linux at work. They're not so much strictly opposed as they are doubtful. The boss is old school--doesn't care if I get it done by mind-reading as long as the boys tell him it's safe. But at least they're willing to humor me for now. -- Wanda
Re: danger - Re: cloning hdb4 to another machine
hi ya wanda On Wed, 28 Jul 2004, Wanda Round wrote: > The "IT department at work" is basically 2 guys who > think my answer is to scrap Linux and go back to the > warm womb of Microsoft. i think you just increased everybody's willingness to help get it done to show the microsoft-zombies it can be done but, sounds like there's a bigger problem, and you'd probably need your managers efforts to help you get data home to work at home ... than the next step is to get online from home into the corp servers ( sounds like you'd need a vpn setup since they are ms-happy folkz ) c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: danger - Re: cloning hdb4 to another machine
-Original Message- From: Alvin Oga <[EMAIL PROTECTED]> To: Wanda Round <[EMAIL PROTECTED]> Date: Tue, 27 Jul 2004 19:23:31 -0700 (PDT) Subject: danger - Re: cloning hdb4 to another machine hi ya wanda On Tue, 27 Jul 2004, Wanda Round wrote: > > mount 2omiles-away:/somedirectory /mnt/clone ... > Boy do I feel confused. I'm blanking out on how to > mount the distant hard drive when I can't network to > it. (Dialup at home, NO permission at work) on the 20miles away machine: - make sure /home is exported in /etc/exports - make sure it only allows nfs from your one ip# on your home pc - make sure IT at work knows about it on the home pc - try the mount tests and ssh tests ssh [EMAIL PROTECTED] date [snip] Alvin, You'll remember that I'm just past real newbie--your suggestions here have put my learning curve pretty steep! I'll figure it out piece by piece. The "IT department at work" is basically 2 guys who think my answer is to scrap Linux and go back to the warm womb of Microsoft. I'll be working on all the great suggestions that everyone here has given. -- Wanda
danger - Re: cloning hdb4 to another machine
hi ya wanda On Tue, 27 Jul 2004, Wanda Round wrote: > > mount 2omiles-away:/somedirectory /mnt/clone ... > Boy do I feel confused. I'm blanking out on how to > mount the distant hard drive when I can't network to > it. (Dialup at home, NO permission at work) on the 20miles away machine: - make sure /home is exported in /etc/exports - make sure it only allows nfs from your one ip# on your home pc - make sure IT at work knows about it on the home pc - try the mount tests and ssh tests ssh [EMAIL PROTECTED] date -- and similarly they can do "rm -rf /" instead of date mount 20miles-away:/somedirectory /mnt/clone ls -la /mnt/clone - if you see stuff .. you're in ( for good or bad ) # do the magic... - scp -p /mnt/clone/files-you-want /other-box umount /mnt/clone i assume that by "no permission" it just that the computers think you do not have permission, and the the folks at work are willing to let you have work data at home on the other hand, one should confirm the "work at home" stuff with the boss and than have the it folks turn on a little hole in their corp firewall for you and whom in turn can tell you the easiest way to get to your data at work - nfs ( bad idea if its not encrypted ) - ssh ( bad idea if it's password-less ) - vpn ( bad idea, since corp IT cannot harden your home network) - sneakernet ( cdrom, usb, camera, cellphones, .. ) - others ( nope, was not a "howto-commit-industrial-espionage" ) c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cloning hdb4 to another machine
Alvin and Thomas, Boy do I feel confused. I'm blanking out on how to mount the distant hard drive when I can't network to it. (Dialup at home, NO permission at work) That wasn't in the problem description. -- Cheers John -- spambait [EMAIL PROTECTED] [EMAIL PROTECTED] Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Re: Re: cloning hdb4 to another machine
-Original Message- From: Alvin Oga <[EMAIL PROTECTED]> To: Wanda Round <[EMAIL PROTECTED]> Date: Tue, 27 Jul 2004 18:11:50 -0700 (PDT) Subject: Re: Re: cloning hdb4 to another machine hi ya On Tue, 27 Jul 2004, Wanda Round wrote: > current# mkdir /mnt/clone > current# mount target:/mnt/hdb3 /mnt/clone .. > I have 2 different machines. I want hdb4 on one machine > cloned to hdb3 on the other machine. The machines are > about 20 miles apart (home and work). mount 2omiles-away:/somedirectory /mnt/clone > > The suggestions will come in very handy when I need to > clone on the same drive. the tar cloning works for different drives on same pc or different pc Alvin and Thomas, Boy do I feel confused. I'm blanking out on how to mount the distant hard drive when I can't network to it. (Dialup at home, NO permission at work) I do appreciate all the help; was hoping for a "write to CD, then transfer to distant machine" method. I'll ponder your directions and see if I can make them work. Just blank right now. -- Wanda
Re: Re: Re: cloning hdb4 to another machine
-Original Message- From: Alvin Oga <[EMAIL PROTECTED]> To: Wanda Round <[EMAIL PROTECTED]> Date: Tue, 27 Jul 2004 18:11:50 -0700 (PDT) Subject: Re: Re: cloning hdb4 to another machine hi ya On Tue, 27 Jul 2004, Wanda Round wrote: > current# mkdir /mnt/clone > current# mount target:/mnt/hdb3 /mnt/clone .. > I have 2 different machines. I want hdb4 on one machine > cloned to hdb3 on the other machine. The machines are > about 20 miles apart (home and work). mount 2omiles-away:/somedirectory /mnt/clone > > The suggestions will come in very handy when I need to > clone on the same drive. the tar cloning works for different drives on same pc or different pc Alvin and Thomas, Boy do I feel confused. I'm blanking out on how to mount the distant hard drive when I can't network to it. (Dialup at home, NO permission at work) I do appreciate all the help; was hoping for a "write to CD, then transfer to distant machine" method. I'll ponder your directions and see if I can make them work. Just blank right now. -- Wanda
Re: Re: cloning hdb4 to another machine
hi ya On Tue, 27 Jul 2004, Wanda Round wrote: > current# mkdir /mnt/clone > current# mount target:/mnt/hdb3 /mnt/clone .. > I have 2 different machines. I want hdb4 on one machine > cloned to hdb3 on the other machine. The machines are > about 20 miles apart (home and work). mount 2omiles-away:/somedirectory /mnt/clone > > The suggestions will come in very handy when I need to > clone on the same drive. the tar cloning works for different drives on same pc or different pc c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cloning hdb4 to another machine
Thomas Adam wrote: --- Wanda Round <[EMAIL PROTECTED]> wrote: Would like to clone that to another machine hdb3 with 4.5 gb total (was Mandrake). Entire hard drive is 10 gb. You'll want to read this, then: http://www.hantslug.org.uk/cgi-bin/wiki.pl?LinuxHints/OneDiskToAnother This needs a little adaptation. Step 5 might be , instead of 5. (cd /mnt/old && tar cf - . ) | (cd /mnt/new && tar xvfp -) something like this: tar czC /mnt/old . | ssh thatbox tar zxpC/mnt/new You will want passwordless login via ssh. Whether you want compression depends on CPU power, network speed and your patience. In general, you _can_ also use dd in like manner. As I recall, you need to e2fsck e2resizefs dd e2fsck However, best not to do this with filesystems mounted rw. A challenge to anyone who says dd won't work: try it. I have done it, on different-sized partitions. Worked fine for me. However you get the data across, you then have to (re)install your boot mangler Reconfigure /etc/fstab Reconfigure /etc/network/interfaces Maybe, reconfigure your modules selection such as for your network card. -- Cheers John -- spambait [EMAIL PROTECTED] [EMAIL PROTECTED] Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Re: cloning hdb4 to another machine
-Original Message- From: Alvin Oga <[EMAIL PROTECTED]> To: Wanda Round <[EMAIL PROTECTED]> Date: Tue, 27 Jul 2004 14:03:24 -0700 (PDT) Subject: Re: cloning hdb4 to another machine [snip] current# mkdir /mnt/clone current# mount target:/mnt/hdb3 /mnt/clone # let's assume /dev/hdb3 is mounted as /home if /dev/hdb3 is mounted "/", than copy only the important stuff - use /bin /boot /dev /etc /home /lib /opt /root /sbin /usr /var instead of "*" in the tar command [snip] Boy, I must have been unclear! I have 2 different machines. I want hdb4 on one machine cloned to hdb3 on the other machine. The machines are about 20 miles apart (home and work). The suggestions will come in very handy when I need to clone on the same drive. Any help on cloning from one machine's 2nd drive to a different machine's 2nd drive? -- Wanda
Re: cloning hdb4 to another machine
On Tue, 27 Jul 2004, Wanda Round wrote: > Since the new machine already boots hda1 (Windows), with choices > for hdb1 and hdb3, how do I get the hdb4 original to use hdb3? > The original machine uses lilo, the target machine already uses > grub. current# mkdir /mnt/clone current# mount target:/mnt/hdb3 /mnt/clone # let's assume /dev/hdb3 is mounted as /home if /dev/hdb3 is mounted "/", than copy only the important stuff - use /bin /boot /dev /etc /home /lib /opt /root /sbin /usr /var instead of "*" in the tar command current# cd /home current# tar cf - * | ( cd /mnt/clone ; tar xvfp - ) --- boot target machine ... fix grub ...to boot /dev/hdb3 in addition to whatever it's booting now - after, preferably before booting /dev/hdb3, you'd need to add a couple of empty dirs mkdir /tmp /proc chmod 1777 /tmp c ya alvin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cloning hdb4 to another machine
--- Wanda Round <[EMAIL PROTECTED]> wrote: > Would like to clone that to another machine hdb3 with 4.5 gb > total (was Mandrake). Entire hard drive is 10 gb. You'll want to read this, then: http://www.hantslug.org.uk/cgi-bin/wiki.pl?LinuxHints/OneDiskToAnother -- Thomas Adam = "The Linux Weekend Mechanic" -- http://linuxgazette.net "TAG Editor" -- http://linuxgazette.net " We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :)" -- Benjamin A. Okopnik (Linux Gazette Technical Editor) ___ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]