Page 1 of 1

Linux clone??

PostPosted: Sat Apr 07, 2007 6:26 pm
by Barry
Okay guys, what's the best way to clone a linux drive?

PostPosted: Sat Apr 07, 2007 6:33 pm
by streaker69
Barry wrote:Okay guys, what's the best way to clone a linux drive?


I can tell you, but first you'll have to gather the following items.

5 hogwarts
A potato that's been buried under a Full moon
A Muffler Bearing to a 72 Ford Pinto
A Picture of G8t in Lederhosen
and a Wishbone of a Duck.

PostPosted: Sat Apr 07, 2007 6:34 pm
by Barry
streaker69 wrote:I can tell you, but first you'll have to gather the following items.

5 hogwarts
A potato that's been buried under a Full moon
A Muffler Bearing to a 72 Ford Pinto
A Picture of G8t in Lederhosen
and a Wishbone of a Duck.



Can the pic of G8t be chopped?? ;)

PostPosted: Sat Apr 07, 2007 6:35 pm
by streaker69
[quote="Barry"]Can the pic of G8t be chopped?? ]

Nope, picture has to be just as impossible to get as the rest of the list.

PostPosted: Sat Apr 07, 2007 6:37 pm
by Barry
streaker69 wrote:Nope, picture has to be just as impossible to get as the rest of the list.



Damn. :rolleyes:


Anybody else??

PostPosted: Sun Apr 08, 2007 2:50 am
by beakmyn

PostPosted: Sun Apr 08, 2007 2:58 am
by renderman
Don't forget good old DD. Just clone the thing block by block

PostPosted: Sun Apr 08, 2007 3:06 am
by Dutch
Barry wrote:Okay guys, what's the best way to clone a linux drive?

Question is what you want to do it for ?
A sector-by-sector backup for forensic investigation ?
Move data from one machine to another ?
Because cloning drives is the new thing taking over from cracking wep ?

As render said, good old dd does the job, but if you want something with a gui like Ghost, look no further than partimage ( http://www.partimage.org/Main_Page ), which often is included in linux distros out of the box.

If you want to go the dd route, this here guide should get you started : http://www.osdev.org/osfaq2/index.php/Disk%20Images%20Under%20Linux

Dutch

PostPosted: Sun Apr 08, 2007 3:39 am
by beakmyn
I think partimage is on the b|t livecd.

PostPosted: Sun Apr 08, 2007 9:35 am
by Barry
Dutch wrote:[color="Red"]Question is what you want to do it for ?[/color]
A sector-by-sector backup for forensic investigation ?
Move data from one machine to another ?
Because cloning drives is the new thing taking over from cracking wep ?

As render said, good old dd does the job, but if you want something with a gui like Ghost, look no further than partimage ( http://www.partimage.org/Main_Page ), which often is included in linux distros out of the box.

If you want to go the dd route, this here guide should get you started : http://www.osdev.org/osfaq2/index.php/Disk%20Images%20Under%20Linux

Dutch



Copy the drive from my laptop to the new box so everything you did to it would be on the other. The problem is, they are different sized drives.

PostPosted: Sun Apr 08, 2007 10:27 am
by Dutch
Barry wrote:Copy the drive from my laptop to the new box so everything you did to it would be on the other. The problem is, they are different sized drives.

No problem.
Use partimage to image the partitions on the old drive. Boot up on a liveCD, since you are going to image root too. Store the image somewhere on the LAN (I.E. a windows machine with filesharing enabled, then mount the fileshare on the old machine, and tell partimage to store the image there. This means not using the native LAN imaging, but just a normal samba mounted share.)

When the partitions has been imaged (you need to store each partition in seperate images), boot up the new machine on the LiveCD, mount the same share, then restore each image in turn down on the new machine.
If you make the partitions on the new machine larger than they were on the old machine, you can then use the standard filesystem utilities to resize the actual FS to fill the partition on the new drive fully. (i.e. ext2/ext3 fs = man ext2resize / man resize2fs. Similar utils exists for reiser and other fs's.)

Holler if you need handholding over IM.

Dutch

PostPosted: Sun Apr 08, 2007 1:32 pm
by Barry
So, why doesn't BackTrack2 have partimage?? Downloaded system rescue cd. Not too bad, averaging 160 MB/Minute. I think the bottleneck is the slow laptop hard drive.

PostPosted: Sun Apr 08, 2007 5:49 pm
by Chris
renderman wrote:Don't forget good old DD. Just clone the thing block by block



This is the method I use.

PostPosted: Sun Apr 08, 2007 6:51 pm
by Barry
Chris wrote:This is the method I use.



Holy shit! You finally remember the address of this place?


Oh, you just found the shovel. ;)

PostPosted: Sun Apr 08, 2007 7:50 pm
by Chris
[quote="Barry"]Holy shit! You finally remember the address of this place?


Oh, you just found the shovel. ]


I check in here several times a day. I just don't post as much. Seems like the regulars are handling the tard wrangling just fine :D