Re: How to clone a system easily?
Robert Waldner [EMAIL PROTECTED] writes: On Mon, 22 Jan 2001 04:15:52 PST, kmself@ix.netcom.com writes: My preference is to do a minimal base system installation, then run: $ dpgk --get-selections file ..on the old system followed by $ dpkg --set-selections file $ apt-get update; apt-get upgrade ^^^ ..on the new one. ...which was exactly what I did today on a colleagues new installation, cloning from mine. But apt wasn´t impressed by that, so I reverted to dselect (which I Karsten was close by; `apt-get dselect-upgrade' instead of only `upgrade' would have done the trick without bothering dselect. Greetings, joachim
Re: How to clone a system easily?
On Mon, 22 Jan 2001 04:15:52 PST, kmself@ix.netcom.com writes: My preference is to do a minimal base system installation, then run: $ dpgk --get-selections file ..on the old system followed by $ dpkg --set-selections file $ apt-get update; apt-get upgrade ..on the new one. ...which was exactly what I did today on a colleagues new installation, cloning from mine. But apt wasn´t impressed by that, so I reverted to dselect (which I didn´t use in ~ 1 year now), and there the [I]nstall - option did the trick ;) JIC someone´s going to search the archives for that... cheers, rw -- / Ing. Robert Waldner | Network Engineer | T: +43 1 89933 F: x533 \ \ [EMAIL PROTECTED] |KPNQwest/AT | Diefenbachg. 35, A-1150 /
Re: How to clone a system easily?
On Mon, Jan 22, 2001 at 08:41:43PM -0600, Gregory Guthrie wrote: Thanks, but I want a real /total clone; all updates, configurations, links, files, etc. Not just a similar fresh install. In the previous mail you said, that you want to upgrade aour mothermoard, then you just need to plug your old HD into your the new one. If you get a new HD, too: Do it like Alan explains in the Tips-howto. (boot from the old, patition the new one, mount the new on /mnt). Add l to tar, so that you don't backup /proc. (Assuming all data is on one partition). Edit /etc/fstab and /etc/lilo.conf. This just worked for me two days ago. -- Thomas Guettler Office: [EMAIL PROTECTED] www.interface-business.de Private:[EMAIL PROTECTED] http://yi.org/guettli
Re: How to clone a system easily?
on Sun, Jan 21, 2001 at 10:13:22PM -0600, Gregory Guthrie ([EMAIL PROTECTED]) wrote: I have a working system, and want to upgrade the MotherBoard. I'd could just move disks, but would rather just clone it, to the new system. How, most easily? Both are on a loca network. For example, boot the new system to CDrom, and dd the disks over? dd works for *absolutely* *identical* systems. Otherwise it's not recommended. You can tar across slightly different disk geometries. My preference is to do a minimal base system installation, then run: $ dpgk --get-selections file ...on the old system followed by $ dpkg --set-selections file $ apt-get update; apt-get upgrade ...on the new one. -- Karsten M. Self kmself@ix.netcom.comhttp://kmself.home.netcom.com/ What part of Gestalt don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org pgpPIbrnsftOR.pgp Description: PGP signature
Re: How to clone a system easily?
On Mon, Jan 22, 2001 at 04:15:52AM -0800, kmself@ix.netcom.com wrote: My preference is to do a minimal base system installation, then run: $ dpgk --get-selections file $ dpkg --get-selections \* file will do a better job preserving the state of the old system, for example if you removed things like nfsd and such, the latter will cause it to be removed from the target system where the former will not. ...on the old system followed by $ dpkg --set-selections file $ apt-get update; apt-get upgrade actually apt-get update apt-get dselect-upgrade apt-get upgrade will only upgrade what is already installed, it won't install packages marked for installation but not yet installed (from the --set-selections command) -- Ethan Benson http://www.alaska.net/~erbenson/ pgpfnRIqS7efu.pgp Description: PGP signature
Re: How to clone a system easily?
Thanks, but I want a real /total clone; all updates, configurations, links, files, etc. Not just a similar fresh install. Greg At 04:01 AM 01/22/2001 -0900, Ethan Benson wrote: On Mon, Jan 22, 2001 at 04:15:52AM -0800, kmself@ix.netcom.com wrote: My preference is to do a minimal base system installation, then run: $ dpgk --get-selections file $ dpkg --get-selections \* file will do a better job preserving the state of the old system, for example if you removed things like nfsd and such, the latter will cause it to be removed from the target system where the former will not. ...on the old system followed by $ dpkg --set-selections file $ apt-get update; apt-get upgrade actually apt-get update apt-get dselect-upgrade apt-get upgrade will only upgrade what is already installed, it won't install packages marked for installation but not yet installed (from the --set-selections command) -- Ethan Benson http://www.alaska.net/~erbenson/ Gregory Guthrie [EMAIL PROTECTED] (641)472-1125Fax: -1103
Re: how to clone a system?
On Mon, Dec 20, 1999 at 02:15:02PM +0100, rogalsky wrote: I have to clone a system without copying it. In other words: How can I make a new instalation of a system using the same packages as an already installed system? I think coping filesystem or raw partition (when disks are identical) is much quicker. When you need installation by dpkg use dpkg --get-selections file on one and dpkg --set-selections file on second machine. Mirek
Re: how to clone a system?
*- On 20 Dec, rogalsky wrote about how to clone a system? I have to clone a system without copying it. In other words: How can I make a new instalation of a system using the same packages as an already installed system? Olaf Rogalsky On old system issue the command: dpkg --get-selections /tmp/selections On new system do a new install until it asks you for the 'configuration' of the machine(server, workstation, etc.) and don't select any or select the custom selection (I can't remember exactly). Exit and copy the above selections file to the new machine. Then on the new machine issue the comand: dpkg --set-selections selections Then run the Update and then Install part of dselect after having set up your Access method. Or for using apt-get I think you should be able to do: apt-get update apt-get dist-upgrade You will of course have to configure all the packages that are installed. Brian Servis -- Mechanical Engineering | Never criticize anybody until you Purdue University | have walked a mile in their shoes, [EMAIL PROTECTED] | because by that time you will be a http://www.ecn.purdue.edu/~servis | mile away and have their shoes.
Re: How to clone debian system to another hard drive
On Fri, 31 Jul 1998, Scott Hill wrote: [ moving partitions snipped ] : Anyway, I take off the A and use my floppy boot diskette and B and i : can logon : and seems ok. I want to boot off the hard drive so I did a /sbin/lilo. : But can't boot : off hard drive, just after the fsck check of partitions I get error : message: : unable to open an initial console. Sounds like a missing device file. : So: is there a better way to do a clone (like a script) that i could : not find? Is there : a better way to get contents of A onto B in step 4? Did some files not : go through : by my cp method. [ Warning! You are about to invoke religious debate ] I've found that `find . -xdev | cpio -padm /mnt' works everytime device and other strange files included. So, to copy on filesystem to another, mount the target filesystem on /mnt . `cd' to the mountpoint of the source filesystem (you're moving / `cd /', /usr `cd /usr', etc.) Then run the above command. Couldn't be easier. -- Nathan Norman MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD 57104 mailto://[EMAIL PROTECTED] http://www.midco.net finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9) -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clone debian system to another hard drive
Scott, It may help if you read over this mini-HOWTO which covers this exact topic: http://sunsite.unc.edu/mdw/HOWTO/mini/Hard-Disk-Upgrade.html I've used the first copy method (with everything on one partition) many times with no problem. It also gives several other variations of how to copy depending on your setup. One thing to check is if you have a /proc directory on the new disk, because you usually need to do that manually. Tom Scott Hill wrote: I am quite a beginner. I am trying to make a clone of my hamm (disk A) to another hard drive (disk B). Here is what I did. 1. I put them on master/slave and I partitioned B appropriately. 2. I created file systems on appropriate partitions with mkfs /dev/hdb2 and so on.. 3. I mount the B partitions on the /mnt point. 4. After reading in a multidisk HOWTO that cp is well behaved with regard to symbolic links I did a cp -av /usr/mnt/usr cp -av /home /mnt/home and so on for each of the files and directories under / (I did not just do the whole disk at one go cause I wanted to avoid /mnt and /proc). Anyway, I take off the A and use my floppy boot diskette and B and i can logon and seems ok. I want to boot off the hard drive so I did a /sbin/lilo. But can't boot off hard drive, just after the fsck check of partitions I get error message: unable to open an initial console. So: is there a better way to do a clone (like a script) that i could not find? Is there a better way to get contents of A onto B in step 4? Did some files not go through by my cp method. Thanks, Scott -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clone debian system to another hard drive
Hi Tom, I have read from this mini-howto (point 4.) the following: ...(Note: Contrary to what the man page states, the command mkfs -t ext2 -c /dev/hdb1 doesn't check for bad blocks under any of Red Hat, Debian or Slackware.)... Is it true for Debian? On Fri, 31 Jul 1998, Tom Pfeifer wrote: Scott, It may help if you read over this mini-HOWTO which covers this exact topic: http://sunsite.unc.edu/mdw/HOWTO/mini/Hard-Disk-Upgrade.html I've used the first copy method (with everything on one partition) many times with no problem. It also gives several other variations of how to copy depending on your setup. One thing to check is if you have a /proc directory on the new disk, because you usually need to do that manually. Tom Scott Hill wrote: I am quite a beginner. I am trying to make a clone of my hamm (disk A) to another [...] Eugene Sevinian CRD, YerPhI, 375036, Armenia URL: http://crdlx5.yerphi.am/prs/sevinian.html Phone: 374-2-344873 -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: How to clone debian system to another hard drive
Eugene Sevinian wrote: Hi Tom, I have read from this mini-howto (point 4.) the following: ...(Note: Contrary to what the man page states, the command mkfs -t ext2 -c /dev/hdb1 doesn't check for bad blocks under any of Red Hat, Debian or Slackware.)... Is it true for Debian? Yes, it does check for bad blocks on my machine (hamm) with either syntax mkfs.ext2 -c /dev/hdxxOR mkfs -t ext2 -c /dev/hdxx of the command, as long as the -c is used. Not sure I understand what the author is talking about there. Tom -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null