MVWT disk reimaging: Difference between revisions

From Murray Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 15: Line 15:
3. Make a copy of the exact contents of the disk
3. Make a copy of the exact contents of the disk
* <code>sudo umount /mnt/flash/</code>
* <code>sudo umount /mnt/flash/</code>
* <code>sudo dd if=/dev/hdd1/ of=/tmp/steelebot-flash.dd</code>
* <code>sudo dd if=/dev/hdd of=/tmp/steelebot-flash.dd</code>
** Running the <code>dd</code> operation should take 2-3 minutes
** Running the <code>dd</code> operation should take 2-3 minutes


Line 26: Line 26:


6. Copy the flash image back to the hard disk.
6. Copy the flash image back to the hard disk.
* <code>sudo dd if=/tmp/steelebot-flash.dd of=/dev/hdd1/</code>
* <code>sudo dd if=/tmp/steelebot-flash.dd of=/dev/hdd</code>
** It should take about 5 minutes to write to the disk
** It should take about 5-7 minutes to write to the disk
* <code>sudo halt</code>
* <code>sudo halt</code>
* Remove the new flash drive from the disk
* Remove the new flash drive from the disk


Note: this didn't work.
Note: this didn't work using flash card 192.168.1.155, but did work on 192.168.1.151.  A corrupt sector is suspected.


==Changing the IP Address==
==Changing the IP Address==

Revision as of 01:46, 19 January 2007

Copying a Flash card

We need to use Rome (192.168.0.10) on the south wall of the lab or any other computer with an attached IDE to Flash interface.

1. Mount the old flash drive on Rome.

  • Shut down Rome by typind sudo halt - make sure the power light is off
  • Take a working flash drive and insert it into the IDE to flash interface
  • Turn Rome back on

2. Check to make sure file system is OK

  • sudo mount /dev/hdd1 /mnt/flash
    • if it works, it should just return without any output
  • cd /mnt/flash
    • type "ls" and you should get a regular Linux file system

3. Make a copy of the exact contents of the disk

  • sudo umount /mnt/flash/
  • sudo dd if=/dev/hdd of=/tmp/steelebot-flash.dd
    • Running the dd operation should take 2-3 minutes

In /tmp/ we have a file steelebot-flash.dd that we will copy to the new flash card.

4. Shut Rome back down using sudo halt. Insert the new flash card into the interface, then turn Rome back on. If the disk is already formatted, skip the following step.

5.

6. Copy the flash image back to the hard disk.

  • sudo dd if=/tmp/steelebot-flash.dd of=/dev/hdd
    • It should take about 5-7 minutes to write to the disk
  • sudo halt
  • Remove the new flash drive from the disk

Note: this didn't work using flash card 192.168.1.155, but did work on 192.168.1.151. A corrupt sector is suspected.

Changing the IP Address

After successfully copying a flash card, we need to change the IP address so that we don't have any network conflicts.


Copying the information off of the old disk

  • Mount the flash disk in a working computer
  • dd if=/dev/hdd1 of=flash.dd

Format the new disk

  • fdisk /dev/hdd (not completely sure about partitions; check domitilla's document)
  • mkfs.ext2 /dev/hdd1

Copy the information back onto the new disk

  • dd if=flash.dd of=/dev/hdd1
  • mount /dev/hdd1 /mnt/flash