O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  

Image your hard drive with a bootable Linux CD
This hack shows how you can use a Linux bootable CD to upload an image of your harddrive to a FTP server.

Contributed by:
Nicholas Marsh
[07/09/03 | Discuss (0) | Link to this hack]

Requirements: Bootable Linux CD (I like http://lnx-bbc.org) that has dhcpcd, coreutils, and ftp. A FTP Server (with a valid username and password). Lots of free disk space. Warning: This is relatively safe if used correctly. I accept no responsibility for damage to your system! Step 1. Boot your system using the bootable CD. Step 2. Verify your system is on the network. # ifconfig Step 3. Connect to your FTP server and upload the image. # ftp Connected to ( Name : install Password: XXXXXXXXXX 230 Login successful. Using binary mode to transfer files. ftp> put |"dd if=/dev/hda bs=1M|gzip -1" diskimage.gz Now you just wait for the image to finish processing. This could take some time depending on the speed of you CPU, disk, or netowrk.

See also: Ghost for UNIX
man dd
man gzip
man ftp

O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.