Search:  
Gentoo Wiki

TIP_Imaging_with_a_LiveCD

This article is part of the Imaging series.
G4U G4L yagi UDPcast LiveCD

Contents

Introduction

I've been using G4U happily to do all of the imaging at VUHS, however, 3 major issues (Dell Gx280's) arrived via FedEx not too long ago which required an alternative method.

The first issue was that they have SATA drives. Luckily, with a little googling, I found out that there is a compatibility mode for PATA in the BIOS.

I ended up using a Gentoo 2005.0 livecd and putting the keyboard in one of the two ports nearest the network card (the other ones seemed to work coldplugged only every other boot but worked hotplugged after startup just fine ???). The driver for the SATA on a dell gx280 is ata_piix.

Assumptions

SERVER=10.0.0.11
HOST="10.0.0.100
TARGET=10.0.0.101

Imaging

NOTE: I use grub on all of the machines, windows or linux - it's just easier that way.

Code: Upload image
 modprobe ata-piix
 /etc/init.d/portmap start
 mkdir /mnt/nfsserver
 mount -t nfs 10.0.0.11:/var/ftp /mnt/nfsserver

 dd if=/dev/sda of=/mnt/nfsserver/op_gx280.mbr bs=512 count=1
 dd if=/dev/sda1 | gzip -c > /mnt/nfsserver/op_gx280.sda1.gz
 dd if=/dev/sda2 bs=8M | gzip -c > /mnt/nfsserver/op_gx280.sda2.gz

Boot up your next machine and image it

Code: Download Image
 modprobe ata-piix
 /etc/init.d/portmap start
 mkdir /mnt/nfsserver
 mount -t nfs 10.0.0.11:/var/ftp /mnt/nfsserver

 dd if=/mnt/nfsserver/op_gx280.mbr of=/dev/sda
 gunzip /mnt/nfsserver/op_gx280.sda1.gz -c | dd of=/dev/sda1
 gunzip /mnt/nfsserver/op_gx280.sda2.gz -c | dd of=/dev/sda2 bs=8M

Ponderment

One question remains: Why the heck do these things not have ps2 ports, but still have floppy drives?

See Also

http://0h1.com/node/236

http://www.feyrer.de/g4u/g4l.html

Retrieved from "http://www.gentoo-wiki.info/TIP_Imaging_with_a_LiveCD"

Last modified: Mon, 20 Feb 2006 02:54:00 +0000 Hits: 5,970