Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Java/Open Source Daily
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Tutorials







Point-and-Click Linux LVM Filesystem Workstation Backup, Part 1
Drive Cloning with dd

A. Lizard
Thursday, May 24, 2007 11:01:45 AM

From a terminal window: do not mount either drive!

Bit copying seems to be the easiest way to create a new backup drive with all the partitions identical to the main drive, but make sure your filesystem is OK first.

Change device names to the ones your system actually uses. In my case, my main drive is /dev/hda (base), the partitions are /dev/hda1 (/boot) and /dev/hda5 (main/swap), the reason why main/swap is on hda5 is because that was the Debian default.

Note that LVM information is not used on either of the next commands. e2fsck is "check hard drive;" it's a Linux equivalent for Windows SCANDISK. dd is a basic bit-copy drive copying command with no error checking, which is why I recommend doing a disk check first.

# e2fsck -f -p /dev/hda5  

# dd if=/dev/hda of=/dev/hdd conv=noerror,sync bs=4k

You should now have two identical drives. The bad news is that LVM filesystem can't have two identical drives open simultaneously.

Next: Dealing with LVM UUID »

Skip Ahead

1 Taking Advantage of LVM
2 Drive Cloning with dd
3 Dealing with LVM UUID
4 From LiveCD to LiveCD-Backup





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers