<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Old_disk_cloning_procedure</id>
	<title>Old disk cloning procedure - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Old_disk_cloning_procedure"/>
	<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Old_disk_cloning_procedure&amp;action=history"/>
	<updated>2026-06-11T18:07:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rsewiki.electro.dtu.dk/index.php?title=Old_disk_cloning_procedure&amp;diff=1206&amp;oldid=prev</id>
		<title>Jca: Created page with &quot;=== Old 2011 version ===  In order to support both VIA Nehemiah and Intel Atom based platforms two kernels must be included in the smr flash image. * 2.6.32.20-rtai supports m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Old_disk_cloning_procedure&amp;diff=1206&amp;oldid=prev"/>
		<updated>2012-08-29T09:31:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Old 2011 version ===  In order to support both VIA Nehemiah and Intel Atom based platforms two kernels must be included in the smr flash image. * 2.6.32.20-rtai supports m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Old 2011 version ===&lt;br /&gt;
&lt;br /&gt;
In order to support both VIA Nehemiah and Intel Atom based platforms two kernels must be included in the smr flash image.&lt;br /&gt;
* 2.6.32.20-rtai supports multicore systems and hyperthreading&lt;br /&gt;
* 2.6.32.20-rtai-up supports single core systems and is optimized to the Via processors&lt;br /&gt;
&lt;br /&gt;
A new clone script called &amp;lt;tt&amp;gt;multiclone&amp;lt;/tt&amp;gt; must be used when this image is flashed. The script is in the root folder of rt15. &lt;br /&gt;
&lt;br /&gt;
==== Flash cloning procedure on rt15 ====&lt;br /&gt;
&lt;br /&gt;
Via processors using CF-card flash-disks:&lt;br /&gt;
* Log in as root (If you don&amp;#039;t know the password abort immediately)&lt;br /&gt;
* Insert the CF-card in the reader in the front of rt15.&lt;br /&gt;
* Check the device name the card is given: &amp;lt;tt&amp;gt;tail /var/log/messages&amp;lt;/tt&amp;gt;. Usually it is &amp;lt;tt&amp;gt;/dev/sdb&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Go to the image folder: &amp;lt;tt&amp;gt;cd image&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Locate the image you would like to burn (usually the newest one), for instance: &amp;lt;tt&amp;gt;flash-2011-01-01.tgz&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Start the procedure:&lt;br /&gt;
 root@rt15:~# ../multiclone flash-2011-01-01.tgz /dev/sdb via&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;NB: Note the two dots in front of multiclone&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The procedure for cloning Intel Atom images is the same, except &amp;lt;tt&amp;gt;atom&amp;lt;/tt&amp;gt; must be stated last in stead of &amp;lt;tt&amp;gt;via&amp;lt;/tt&amp;gt; as in:&lt;br /&gt;
 root@rt15:~# ../multiclone flash-2011-01-01.tgz /dev/sdb atom&lt;br /&gt;
&lt;br /&gt;
=== Old description ===&lt;br /&gt;
&lt;br /&gt;
Some of the SMR&amp;#039;s now have solid-state flash memory disks, instead of the laptop, 2.5&amp;quot; disks used on older models.&lt;br /&gt;
&lt;br /&gt;
This wiki page contains some notes describing how to write a bootable flash disk image (Slackware Linux) to a memory card. It assumes a Linux PC with USB flash card reader/writer, available as /dev/sda.&lt;br /&gt;
&lt;br /&gt;
The commands below is implemented in this script Clone script. Usage:&lt;br /&gt;
&lt;br /&gt;
 clone &amp;lt;from_file.tar.gz&amp;gt; &amp;lt;to device&amp;gt;&lt;br /&gt;
&amp;lt;to device&amp;gt; can be both the USB bus (/dev/sdx) or a IDE device (/dev/hdx)&lt;br /&gt;
&lt;br /&gt;
The script will place a file .cloned-at on the Flash Disk with time information for the cloning.&lt;br /&gt;
&lt;br /&gt;
If you put the Flash Disk on the IDE bus and the computer will not boot (LILO - Timestamp mismatch) then the MBR on the Flash Disk must be erased as follows:&lt;br /&gt;
&lt;br /&gt;
 dd if=/dev/zero of=/dev/hdx bs=1 count=512&lt;br /&gt;
Writing an image&lt;br /&gt;
&lt;br /&gt;
Format the disk, with one large Linux partition:&lt;br /&gt;
&lt;br /&gt;
 sfdisk -L /dev/sda &amp;lt;&amp;lt;EOF&lt;br /&gt;
 ,,L,*&lt;br /&gt;
 EOF&lt;br /&gt;
Create a filesystem:&lt;br /&gt;
&lt;br /&gt;
 mke2fs /dev/sda1 -L /&lt;br /&gt;
Mount the new, empty partition:&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /tmp/u&lt;br /&gt;
 mount /dev/sda1 /tmp/u&lt;br /&gt;
Write a previously created image from flash.tar.gz&lt;br /&gt;
&lt;br /&gt;
 zcat flash.tar.gz |&lt;br /&gt;
 tar --extract --file - --directory /tmp/u --preserve-permissions&lt;br /&gt;
Create a patched lilo.conf, so that we can run LILO with the flash card mounted via USB. (This won&amp;#039;t be necessary if the image written above already contains such a file.)&lt;br /&gt;
&lt;br /&gt;
 patch -o /tmp/u/etc/lilo_usb.conf /tmp/u/etc/lilo.conf &amp;lt;&amp;lt;EOF&lt;br /&gt;
 *** /tmp/u/etc/lilo.conf        Tue Nov  4 21:34:44 2003&lt;br /&gt;
 --- lilo_usb.conf       Thu Dec 11 11:50:55 2003&lt;br /&gt;
 ***************&lt;br /&gt;
 *** 4,6 ****&lt;br /&gt;
   # Start LILO global section&lt;br /&gt;
 ! boot = /dev/hda&lt;br /&gt;
   message = /boot/boot_message.txt&lt;br /&gt;
 --- 4,7 ----&lt;br /&gt;
   # Start LILO global section&lt;br /&gt;
 ! boot = /dev/sda&lt;br /&gt;
 ! disk = /dev/sda bios=0x80&lt;br /&gt;
   message = /boot/boot_message.txt&lt;br /&gt;
 EOF&lt;br /&gt;
Run LILO:&lt;br /&gt;
&lt;br /&gt;
 chroot /tmp/u lilo -v -C /etc/lilo_usb.conf&lt;br /&gt;
All done:&lt;br /&gt;
&lt;br /&gt;
 umount /dev/sda1&lt;br /&gt;
 eject /dev/sda&lt;br /&gt;
Reading an image&lt;br /&gt;
&lt;br /&gt;
Mount as above:&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /tmp/u&lt;br /&gt;
 mount /dev/sda1 /tmp/u&lt;br /&gt;
Read the partition:&lt;br /&gt;
&lt;br /&gt;
 tar --create --file - --directory /tmp/u --one-file-system --exclude lost+found . |&lt;br /&gt;
 gzip &amp;gt; flash.tar.gz&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 tar -zcf - -C /tmp/u --one-file-system --exclude lost+found . &amp;gt; flash.tar.gz&lt;br /&gt;
All done:&lt;br /&gt;
&lt;br /&gt;
 umount /dev/sda1&lt;br /&gt;
 eject /dev/sda&lt;/div&gt;</summary>
		<author><name>Jca</name></author>
	</entry>
</feed>