HOWTO Clone Disk Images on Linux Booted from a Network

Guilherme Tupynambá

gtupy (at) uol.com.br

2002-09-09

Revision History
Revision 0.3 2002-09-24 Revised by: gct
Review suggestions incorporated
Revision 0.2 2002-09-23 Revised by: jyg
Minor revisions
Revision 0.1 2002-09-09 Revised by: gct
First draft.

This document describes a setup that allows a machine to boot Linux from BOOTP/TFTP, using the Grub boot loader, and save and restore disk and partition images to and from a TFTP server.


Table of Contents
1. Legal Notices
1.1. Disclaimer
1.2. Copyright
1.3. Feedback
2. Introduction
2.1. Why clone disk images
2.2. Why boot from a network
2.3. Network boot process overview
3. Setting up DHCP and TFTP servers
3.1. Setting up DHCP
3.2. Setting up TFTP
3.3. Using different servers
4. Preparing boot files
4.1. Kernel
4.2. Files on initrd
4.3. Packing initrd
5. Booting from Grub floppy disk
5.1. Grub menu file
5.2. Compiling Grub with network support
5.3. Making the boot floppy disk
6. Running the clone script
6.1. Saving and restoring disk images
6.2. Using fdisk
7. Extending the solution
7.1. Saving and restoring files instead of file systems
7.2. Setting up the master boot record
7.3. Loading necessary modules
7.4. Predefined operations on grub.conf
A. List of files on initrd
B. Clone script
References

    Next
    Legal Notices


  • Bookmark
  • Add Resource
  • Modify Resource
  • Get Rated
  • Link to Us
  • Advertise
  • Contact
  • Search Resources

  • Recommended

    • Web Site Templates
    • Ultimate Trading Script
    • The Exterminator
    • Guestbook Script
    • Thumbnail Creator
    • Custom Programming
    • PHP Forums
    • Ajax Tutorial
  • Resource Map

    • Home
    • Expanded Directory
    • New Listings
    • Most Popular
    • Top Rated
    • Email Updates
    • Random Link
    • Advanced Search
    • Bookmark Us
    • Link to Us
    • Advertising Info
    • Webmaster Forum
    • Accessibility Statement
  • General Resources

    • ASP
    • C/C++
    • ColdFusion
    • Flash / ActionScript
    • General
    • HTML
    • Java
    • JavaScript
    • Perl
    • PHP
    • Python
    • Remotely Hosted
    • Unix Shell
    • Visual Basic
    • XML
  • Scripts & Programs

    • ASP
    • C/C++
    • ColdFusion
    • Flash / ActionScript
    • Java
    • JavaScript
    • Perl
    • PHP
    • Python
    • Remotely Hosted
    • Unix Shell
    • Visual Basic
    • XML
  • Online Tutorials

    • ASP
    • C/C++
    • ColdFusion
    • Flash / ActionScript
    • HTML
    • Howtos
    • Java
    • JavaScript
    • Perl
    • PHP
    • Python
    • Unix Shell
    • Visual Basic
    • XML
  • Books

    • ASP
    • C/C++
    • ColdFusion
    • Flash / ActionScript
    • HTML
    • Java
    • JavaScript
    • Perl
    • PHP
    • Python
    • Unix Shell
    • Visual Basic
    • XML
  • Supporters

    • Bigwebmaster Supporters
    • Ozzu Website Templates
    • Loans
    • Web Advertising
    • Best Credit Cards
    • Loans
    • Cheap Car Insurance
  • Partners

    • Unmelted Templates
    • Web Design Forum