vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've found several methods: 1) LVM Snapshots 2) DDing of whole drive or partitions 3) Mirroring, Syncing, and breaking (Although I havn't figured out how) Does anyone have any suggestions as to which is better, or other options? -- .................................................. ............................ "We must use terror, assassination, intimidation, land confiscation, and the cutting of all social services to rid the Galilee of its Arab population." -Joseph Weitz, head of the Jewish Agency's Colonization Department. .................................................. ............................ dswan@m3m3t1ccand1ru.com http://www.memeticcandiru.com |
| |||
| h1nd00_p$ych1a7r1$7@salmahayeksknockers.edu wrote: > I've found several methods: > > 1) LVM Snapshots > 2) DDing of whole drive or partitions > 3) Mirroring, Syncing, and breaking (Although I havn't figured out how) > > Does anyone have any suggestions as to which is better, or other options? Uh - what's the problem with cp -a? Or if you must do it over the net, use rsync or tar. Most of the above is not for cloning, but are useful preceding actions prior to cloning. Only dd will do a copy from among your options (and what is wrong with "cp"?), and it's pretty silly as a method to choose! The usual thing is to use rsync or tar (or cpio, apio, etc.). If you are fussy about holding the thing steady while you are photographing it, then you might do an lvm snapshot op beforehand. Of course, if you were mirroring the thing, you could break the mirror, leaving yourself with the snapshot at time of breakage, and copy that. But an lvm snapshot will be more space efficient. Why make such a fuss? It's not a thing that's hard to do, thus the word "better" seems to have little meaning! Peter |
| |||
| h1nd00_p$ych1a7r1$7@salmahayeksknockers.edu wrote: > I've found several methods: > > 1) LVM Snapshots > 2) DDing of whole drive or partitions > 3) Mirroring, Syncing, and breaking (Although I havn't figured out how) > > Does anyone have any suggestions as to which is better, or other options? > > Have you tried partition image (note: not partition magic)? It makes (compressed, if you will) images of your partitions, and its possible to copy the mbr & partition structure, although cloning has to be done manually. It is similar to Norton Ghost, I believe. Good luck. |
| |||
| P.T. Breuer wrote: > h1nd00_p$ych1a7r1$7@salmahayeksknockers.edu wrote: > >>I've found several methods: >> >>1) LVM Snapshots >>2) DDing of whole drive or partitions >>3) Mirroring, Syncing, and breaking (Although I havn't figured out how) >> >>Does anyone have any suggestions as to which is better, or other options? > > > Uh - what's the problem with cp -a? Or if you must do it over the net, > use rsync or tar. > > Most of the above is not for cloning, but are useful preceding actions > prior to cloning. Only dd will do a copy from among your options (and > what is wrong with "cp"?), and it's pretty silly as a method to choose! You'd still have to deal boot block issues... but could be done after the fact. > > The usual thing is to use rsync or tar (or cpio, apio, etc.). If you > are fussy about holding the thing steady while you are photographing > it, then you might do an lvm snapshot op beforehand. Of course, if > you were mirroring the thing, you could break the mirror, leaving > yourself with the snapshot at time of breakage, and copy that. But > an lvm snapshot will be more space efficient. lvm snapshotting is notoriously buggy. Even in LVM1. rsync is great for syncing two hosts... but not really for cloning and falls into the same boot block issue as mentioned. Not sure what/how rsync deals with all of the special devices. My guess is that those would have to be handled separately too... but it is a guess. If it's a common platform rollout (same HW disk every time), storing a raw image of the whole drive or the partitions (the "dd" method... though cp works for Linux) is a good approach. |
| |||
| Chris Cox <ccox_nopenotthis@airmail.net> wrote: > P.T. Breuer wrote: > rsync is great for syncing two hosts... but not really for cloning > and falls into the same boot block issue as mentioned. Not sure You can't deal with a boot block by "cloning": you don't know what the target device is or where in the bios boot order it is or even what boot loader is being used, in order to modify its configuration (and you don't know where its configuration IS). The boot block may not be located anywhere near either source or target, even! The best that you can do is deal with the most common cases. > what/how rsync deals with all of the special devices. Perfectly. Peter |
| |||
| On Tue, 17 Feb 2004 22:14:14 +0000, h1nd00_p$ych1a7r1$7 wrote: > I've found several methods: > > 1) LVM Snapshots > 2) DDing of whole drive or partitions > 3) Mirroring, Syncing, and breaking (Although I havn't figured out how) > > Does anyone have any suggestions as to which is better, or other options? Last time I did this, moved to a bigger drive. I used cp. It worked fine. Look at the help or man page for cp to get the right switchs but it works great. Basically I did the following. 1) Turn off pc and put new drive on the bus. I put the new drive where it was going to be when done, ie... moved the original drive to hdb and placed the new drive as hda. 2) Boot pc from a rescue cd, I use the gentoo liveCD but you can use any you wish. 3) make mount points for both drives. I use /mnt/old (for old drive) & /mnt/new (for new drive). Mount both drives. 4) cp -vrpf /mnt/old/* /mnt/new/ 5) cd to /mnt/new 6) chroot /mnt/new /bin/bash 7) lilo (re-run lilo to rebuild the boot loader) 8) turn pc off and remove old drive, turn pc back on. You should now be good to go, running on the new drive. Like I said I have used this method before and it's always worked. Last night I upgraded the drive on my mini-itx mobo, but this time I used partimage http://www.partimage.org and burnt the images to a bootable cdrom. Just to make it easier for the next time. Jayson G |
| |||
| P.T. Breuer wrote: > Chris Cox <ccox_nopenotthis@airmail.net> wrote: > >>P.T. Breuer wrote: >>rsync is great for syncing two hosts... but not really for cloning >>and falls into the same boot block issue as mentioned. Not sure > > > You can't deal with a boot block by "cloning": you don't know what the > target device is or where in the bios boot order it is or even what boot > loader is being used, in order to modify its configuration (and you Usually cloning... means.... cloning. This isn't a copy here... it's cloning. Cloning... cloning... cloning. You don't have to reply just because somebody pointed out something you failed to mention. ....more stuff about NOT cloning snipped... |
| |||
| Chris Cox <ccox_nopenotthis@airmail.net> wrote: > P.T. Breuer wrote: > > Chris Cox <ccox_nopenotthis@airmail.net> wrote: > > > >>P.T. Breuer wrote: > >>rsync is great for syncing two hosts... but not really for cloning > >>and falls into the same boot block issue as mentioned. Not sure > > > > You can't deal with a boot block by "cloning": you don't know what the > > target device is or where in the bios boot order it is or even what boot > > loader is being used, in order to modify its configuration (and you > > Usually cloning... means.... cloning. Which means producing an exact copy. From The Free On-line Dictionary of Computing (07Oct99) [foldoc]: clone 1. An exact duplicate: "Our product is a clone of their product." Implies a legal reimplementation from documentation or by reverse-engineering. Also connotes lower price. or do you mean 2. A shoddy, spurious copy: "Their product is a clone of our product." 3. A blatant ripoff, most likely violating copyright, patent, or trade secret protections: "Your product is a clone of my product." This use implies legal action is pending. etc? > This isn't a copy here... it's cloning. Which brand of doublespeak do you articulate? > Cloning... cloning... cloning. Yadda yadda yadda. Are you talking about some new meaning of the word that we are not party to, such as "not copying"? > You don't have to reply just because somebody pointed > out something you failed to mention. What? > ...more stuff about NOT cloning snipped... Please go back off your drugs. I pointed out that copying a disk wouldn't necesarily result in a bootable system, nor would any computational algorithm necessarily do so. Do you have any reason to doubt that? Peter |
| |||
| P.T. Breuer wrote: > Chris Cox <ccox_nopenotthis@airmail.net> wrote: > >>P.T. Breuer wrote: >> >>>Chris Cox <ccox_nopenotthis@airmail.net> wrote: >>> >>> >>>>P.T. Breuer wrote: >>>>rsync is great for syncing two hosts... but not really for cloning >>>>and falls into the same boot block issue as mentioned. Not sure >>> >>>You can't deal with a boot block by "cloning": you don't know what the >>>target device is or where in the bios boot order it is or even what boot >>>loader is being used, in order to modify its configuration (and you >> >>Usually cloning... means.... cloning. > > > Which means producing an exact copy. > > From The Free On-line Dictionary of Computing (07Oct99) [foldoc]: > > clone > > 1. An exact duplicate: "Our product is a clone of their > product." Implies a legal reimplementation from documentation > or by reverse-engineering. Also connotes lower price. This means exact drive, exact boot record, clone... clone.. clone... .... > >>This isn't a copy here... it's cloning. > > > Which brand of doublespeak do you articulate? I'm just saying the OP wanted to clone a disk. You gave a recipe for coped disk data for use in a NON-cloning arrangement. > > > >>Cloning... cloning... cloning. > > > Yadda yadda yadda. Are you talking about some new meaning of the word > that we are not party to, such as "not copying"? > > >>You don't have to reply just because somebody pointed >>out something you failed to mention. > > > What? When you clone, you want the boot record. Without it, you just have copied data... like any backup. > > >>...more stuff about NOT cloning snipped... > > > Please go back off your drugs. What a total ignorant slob you are... did I try to tell you that you were on drugs... no.. just that you were trying to confuse the idea of multiple machine cloning with data copying... what a jerk for thinking anything different... sheesh.. some people are just dumb as dirt I guess. > I pointed out that copying a disk > wouldn't necesarily result in a bootable system, nor would any > computational algorithm necessarily do so. Do you have any reason to > doubt that? Having CLONED a million of machines using a TRUE cloning process I be to differ.... however, since you are not CLONING but merely copying data to NON-like HW (therefore NOT a clone since they ARE DIFFERENT).... do you get it... sheesh.. > > Peter Whatever... |
| ||||
| Chris Cox <ccox_nopenotthis@airmail.net> wrote: > I'm just saying the OP wanted to clone a disk. You gave > a recipe for coped disk data for use in a NON-cloning > arrangement. Eh? A copy is a clone. If you are trying to say that you want a copy that preserves the exact bits on disk, rather than "just" the arrangement of files, then by all means say so rather than reaching for a word that does not mean what you think it means! But unfortunately that will not work to give you a working boot sector in all situations. In fact. in very few. > > Please go back off your drugs. > > What a total ignorant slob you are... Kindly stop insulting people you unpleasant slug ... > did I try to tell > you that you were on drugs... ?? "on drugs" is an expression meaning "hallucinating, seeing things in a distorted way, living in a private universe, etc.". That's what you seem to be! > no.. just that you were > trying to confuse the idea of multiple machine cloning > with data copying... There is no difference. I am not confusing anything, you are! I told you what clone means. I'll write it out for you again if you like! 1. An exact duplicate: "Our product is a clone of their product." Implies a legal reimplementation from documentation or by reverse-engineering. Also connotes lower price. 2. A shoddy, spurious copy: "Their product is a clone of our product." 3. A blatant ripoff, most likely violating copyright, patent, or trade secret protections: "Your product is a clone of my product." This use implies legal action is pending. Etc. > what a jerk for thinking anything > different... Eh? > sheesh.. some people are just dumb as dirt I guess. You said it! > > I pointed out that copying a disk > > wouldn't necesarily result in a bootable system, nor would any > > computational algorithm necessarily do so. Do you have any reason to > > doubt that? > > Having CLONED a million of machines using a TRUE cloning > process I be to differ Then you would be wrong. COPYING a boot sector (note,not "cloning") does not give you a bootable machine. > .... however, since you are not CLONING > but merely copying data to NON-like HW (therefore NOT a clone It doesn't matter, whatever you are trying to say (I suspect you are trying to get out words that mean that the offset on disk of the target kernel or secondary stage loader will be changed by the copy from the original, which means that the CLONED boot sector will miss it, since it still has the physical location of the original embedded in it). That's "right". That's why you have to COPY the boot sector and CHANGE it for its new environment. > since they ARE DIFFERENT).... do you get it... sheesh.. Do YOU get it? Apparently not! You see - you don't know how that boot sector was generated. Therefore you don't know what it is aiming at. Theerfore you don't know what to repoint it at. Nor do you know which disk it is trying to boot. Nor what the new bios calls that disk (0x80? 0x81?). Yes, if you take all the disks from one machine, and copy them to all the disks of another machine, and put them in exactly the same places, and remove all other devices, and tell the bioses that the disks have exactly the same geometry, and arrange the bios boot orders to be exactly the same on both machines, then you would get a booting disk. OK? But nobody has ever seen two machines built more than two weeks apart that are exactly the same. Peter |