Imaging Guide

(Difference between revisions)
Jump to: navigation, search
(Other Miscellaneous Usefulness)
Line 51: Line 51:
 
==Other Miscellaneous Usefulness==
 
==Other Miscellaneous Usefulness==
 
*To write zeroes to free space, do “cat /dev/zero > ./zero”, then delete file when finished. Also do it to the FAT32 partition.
 
*To write zeroes to free space, do “cat /dev/zero > ./zero”, then delete file when finished. Also do it to the FAT32 partition.
*To image from one hard drive to another, do
+
*To image from one hard drive to another, first turn off udp-receiver by
 +
<code>sudo killall udp-receiver</code>
 +
and then do
 
<code>cat /dev/hda | gzip -c | udp-sender</code>
 
<code>cat /dev/hda | gzip -c | udp-sender</code>

Revision as of 19:57, 5 February 2008

As of February 5, 2008, these are the instructions I use. They're pretty rough, so clean them up as much as practical.

Connect all tablets to dedicated TICC switch except Magic Master, which is for now connected to the school network. This one will be performing the magic of imaging. Boot the Magic Master into Linux.

With the Master open a terminal. SSH into the TICC server (ticc.mines.edu). User name “root” with the password of “hello”. Find the images (currently at /images). Open a new terminal to copy and paste names.

  • Store the desired image where there is adequate space (requires 12-14 GB)
  • Check if tftpd is running (ps -A | grep ftp) (not default installed)
  • sudo apt-get install tftpd-hpa
  • edit /etc/default/tftpd-hpa
    • change no to yes!
  • Then sudo /etc/init.d/tftpd-hpa start
  • sudo killall dhclient (otherwise it gets its own IP address)
  • Make sure that dhcp3-server is installed/install if needed
  • Edit /etc/dhcp3/dhcpd.conf
  • Add the following:

  subnet 192.168.0.0 netmask 255.255.255.0 {
      range 192.168.0.10 192.168.0.254 ;
      option subnet-mask 255.255.255.0;
      option routers 192.168.0.1;
      option broadcast-address 192.168.0.255 ;
      default-lease-time 600;
      max-lease-time 7200;
      server-name "192.168.0.1";
      filename "pxelinux.0";
}
  subnet 138.67.0.0 netmask 255.255.0.0 {
}

  • check file /etc/default/tftpd-hpa for proper boot image location (should be something like "/pxelinux.0")
  • actually fetch the netboot part

sudo scp -r root@ticc.mines.edu:/images/tftpboot <space> /var/lib/

    • (we might want to store this directory tarred, as it is the entire netboot kernel)
  • on server, do

ifconfig eth2 192.168.0.1 netmask 255.255.0.0 bcast 192.168.0.255

    • kill Network Manager and all associated parts, killall dhclient on ethernet interface, then ifconfig
    • I think we need the netmask option, but I'm not sure. The bcast part is only req'd if you're going to use udp-receiver to get a copy of the image as it transfers
  • After changing the ip address restart the dhcp server

sudo /etc/init.d/dh(something) restart

  • restart tftpd

sudo /etc/init.d/tftpd-hpa restart

  • Reboot all servile tablets so that they may prepare for what they are about to receive. Remember to F12 for network boot
  • Once all servile tablets have reached the maxwell login prompt, issue the +3 Strength magic command on the heretofore Magic Master.

udp-sender --file /media/hda1/011507tc4200.img.gz --interface eth2

Other Miscellaneous Usefulness

  • To write zeroes to free space, do “cat /dev/zero > ./zero”, then delete file when finished. Also do it to the FAT32 partition.
  • To image from one hard drive to another, first turn off udp-receiver by

sudo killall udp-receiver and then do cat /dev/hda | gzip -c | udp-sender

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox