Linux clone??

Linux clone??

Postby Barry » Sat Apr 07, 2007 6:26 pm

Okay guys, what's the best way to clone a linux drive?
Never do anything you don't want to explain to the paramedics.
User avatar
Barry
 
Posts: 5713
Joined: Sat Dec 28, 2002 11:10 pm
Location: Ohio

Postby streaker69 » Sat Apr 07, 2007 6:33 pm

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.
Treat your gun like your genitals, only whip it out when it's absolutely necessary.
User avatar
streaker69
 
Posts: 11867
Joined: Thu Jul 08, 2004 10:09 am
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA

Postby Barry » Sat Apr 07, 2007 6:34 pm

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?? ;)
Never do anything you don't want to explain to the paramedics.
User avatar
Barry
 
Posts: 5713
Joined: Sat Dec 28, 2002 11:10 pm
Location: Ohio

Postby streaker69 » Sat Apr 07, 2007 6:35 pm

[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.
Treat your gun like your genitals, only whip it out when it's absolutely necessary.
User avatar
streaker69
 
Posts: 11867
Joined: Thu Jul 08, 2004 10:09 am
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA

Postby Barry » Sat Apr 07, 2007 6:37 pm

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



Damn. :rolleyes:


Anybody else??
Never do anything you don't want to explain to the paramedics.
User avatar
Barry
 
Posts: 5713
Joined: Sat Dec 28, 2002 11:10 pm
Location: Ohio

Postby beakmyn » Sun Apr 08, 2007 2:50 am

beakmyn
 
Posts: 4858
Joined: Sun Aug 03, 2003 1:53 pm

Postby renderman » Sun Apr 08, 2007 2:58 am

Don't forget good old DD. Just clone the thing block by block
User avatar
renderman
 
Posts: 1867
Joined: Thu Jun 06, 2002 5:29 pm
Location: Anywhere but Utah

Postby Dutch » Sun Apr 08, 2007 3:06 am

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
All your answers are belong to Google. SEARCH DAMMIT!
Warning. Warning.
Low C8H10N4O2 level detected. Operator halted....
User avatar
Dutch
 
Posts: 6698
Joined: Fri Mar 05, 2004 12:00 pm
Location: City of Mermaids, Denmark

Postby beakmyn » Sun Apr 08, 2007 3:39 am

I think partimage is on the b|t livecd.
beakmyn
 
Posts: 4858
Joined: Sun Aug 03, 2003 1:53 pm

Postby Barry » Sun Apr 08, 2007 9:35 am

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.
Never do anything you don't want to explain to the paramedics.
User avatar
Barry
 
Posts: 5713
Joined: Sat Dec 28, 2002 11:10 pm
Location: Ohio

Postby Dutch » Sun Apr 08, 2007 10:27 am

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
All your answers are belong to Google. SEARCH DAMMIT!
Warning. Warning.
Low C8H10N4O2 level detected. Operator halted....
User avatar
Dutch
 
Posts: 6698
Joined: Fri Mar 05, 2004 12:00 pm
Location: City of Mermaids, Denmark

Postby Barry » Sun Apr 08, 2007 1:32 pm

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.
Never do anything you don't want to explain to the paramedics.
User avatar
Barry
 
Posts: 5713
Joined: Sat Dec 28, 2002 11:10 pm
Location: Ohio

Postby Chris » Sun Apr 08, 2007 5:49 pm

renderman wrote:Don't forget good old DD. Just clone the thing block by block



This is the method I use.
perl -e 'print pack(c5, (41*2), sqrt(7056), (unpack(c,H)-2), oct(115), 10)'
User avatar
Chris
 
Posts: 1141
Joined: Mon Jul 15, 2002 4:00 am

Postby Barry » Sun Apr 08, 2007 6:51 pm

Chris wrote:This is the method I use.



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


Oh, you just found the shovel. ;)
Never do anything you don't want to explain to the paramedics.
User avatar
Barry
 
Posts: 5713
Joined: Sat Dec 28, 2002 11:10 pm
Location: Ohio

Postby Chris » Sun Apr 08, 2007 7:50 pm

[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
perl -e 'print pack(c5, (41*2), sqrt(7056), (unpack(c,H)-2), oct(115), 10)'
User avatar
Chris
 
Posts: 1141
Joined: Mon Jul 15, 2002 4:00 am


Return to Unix/Linux

Who is online

Users browsing this forum: No registered users and 1 guest