<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Extracting_images_from_raw_partition</id>
		<title>Extracting images from raw partition - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Extracting_images_from_raw_partition"/>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Extracting_images_from_raw_partition&amp;action=history"/>
		<updated>2026-06-18T07:57:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.elphel.com/index.php?title=Extracting_images_from_raw_partition&amp;diff=16162&amp;oldid=prev</id>
		<title>Oleg at 23:05, 10 August 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Extracting_images_from_raw_partition&amp;diff=16162&amp;oldid=prev"/>
				<updated>2018-08-10T23:05:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 23:05, 10 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As it was mentioned in [[Camogmgui | camogmgui]], ''camogm'' can save images to a raw partition or disk in fast recording mode and you need to do one additional step to extract these images from such a partition. This short note describes how to get images from raw partition.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As it was mentioned in [[Camogmgui | camogmgui]], ''camogm'' can save images to a raw partition or disk in fast recording mode and you need to do one additional step to extract these images from such a partition. This short note describes how to get images from raw partition.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. Download &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/del&gt;[https://github.com/Elphel/elphel-tools-x393 these scripts&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/del&gt;] to your PC.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. Download [https://github.com/Elphel/elphel-tools-x393 these scripts] to your PC.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. Connect camera to eSATA port, power it on and wait until it has loaded.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. Connect camera to eSATA port, power it on and wait until it has loaded.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Oleg</name></author>	</entry>

	<entry>
		<id>https://wiki.elphel.com/index.php?title=Extracting_images_from_raw_partition&amp;diff=15005&amp;oldid=prev</id>
		<title>Mikhail: Created page with &quot;As it was mentioned in  camogmgui, ''camogm'' can save images to a raw partition or disk in fast recording mode and you need to do one additional step to extract t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Extracting_images_from_raw_partition&amp;diff=15005&amp;oldid=prev"/>
				<updated>2017-01-11T19:30:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;As it was mentioned in &lt;a href=&quot;/wiki/Camogmgui&quot; title=&quot;Camogmgui&quot;&gt; camogmgui&lt;/a&gt;, &amp;#039;&amp;#039;camogm&amp;#039;&amp;#039; can save images to a raw partition or disk in fast recording mode and you need to do one additional step to extract t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;As it was mentioned in [[Camogmgui | camogmgui]], ''camogm'' can save images to a raw partition or disk in fast recording mode and you need to do one additional step to extract these images from such a partition. This short note describes how to get images from raw partition.&lt;br /&gt;
&lt;br /&gt;
1. Download [[https://github.com/Elphel/elphel-tools-x393 these scripts]] to your PC.&lt;br /&gt;
&lt;br /&gt;
2. Connect camera to eSATA port, power it on and wait until it has loaded.&lt;br /&gt;
&lt;br /&gt;
3. Copy ssh key to camera. This step can be skipped if it was done before.&lt;br /&gt;
 $ ssh-copy-id root@192.168.0.9&lt;br /&gt;
&lt;br /&gt;
4. Run ''int_ssd_download.py'' script to dump camera's raw partition to PC.&lt;br /&gt;
 $ ./int_ssd_download.py -c root@192.168.0.9 -n 1 -bs 100 -bc 1 .&lt;br /&gt;
 root@192.168.0.9: connection ok&lt;br /&gt;
 root@192.168.0.9: raw partition name: Crucial_CT250MX200SSD6_1531103B6ABA-part2&lt;br /&gt;
 umounting /dev/sda1&lt;br /&gt;
 root@192.168.0.9: Enabled connection: internal SSD &amp;lt;-&amp;gt; PC&lt;br /&gt;
 Connect camera (eSATA) to PC (eSATA/SATA). Press Enter to continue...&lt;br /&gt;
 [sudo] password for mk: &lt;br /&gt;
 Getting raw partition data from /dev/sdb2&lt;br /&gt;
 1+0 records in&lt;br /&gt;
 1+0 records out&lt;br /&gt;
 104857600 bytes (105 MB, 100 MiB) copied, 0.501566 s, 209 MB/s&lt;br /&gt;
 Waiting for disks to show up:&lt;br /&gt;
 []&lt;br /&gt;
 root@192.168.0.9: Enabled connection: internal SSD &amp;lt;-&amp;gt; Camera&lt;br /&gt;
 Done&lt;br /&gt;
Here, the ''-c'' parameter specifies which camera to use and script controls this camera to switch internal disk to eSATA and find raw partition. The ''-n'', ''-bs'' and ''-bc'' parameters specify the number of chunks to download, block size in MB and the number of blocks in each chunk respectively. The script will create a subdirectory, which name is made of disk manufacturer, model and partition number, and download disk dump into this subdirectory.&lt;br /&gt;
 $ ls -l &lt;br /&gt;
 total 84&lt;br /&gt;
 drwxrwxr-x 2 mk mk  4096 Jan 11 10:53 Crucial_CT250MX200SSD6_1531103B6ABA-part2&lt;br /&gt;
 -rw-rw-r-- 1 mk mk  4308 Jan  9 18:38 extract_images.php&lt;br /&gt;
 -rwxrwxr-x 1 mk mk  3177 Jan  9 18:38 ext_ssd_download.py&lt;br /&gt;
 -rwxrwxr-x 1 mk mk  4726 Jan 10 17:12 int_ssd_download.py&lt;br /&gt;
 -rw-rw-r-- 1 mk mk 35141 Jan  9 18:38 LICENSE&lt;br /&gt;
 -rw-rw-r-- 1 mk mk   620 Jan  9 18:38 README.md&lt;br /&gt;
 -rw-rw-r-- 1 mk mk  6110 Jan  9 18:38 x393.py&lt;br /&gt;
 -rw-rw-r-- 1 mk mk 10016 Jan  9 18:39 x393.pyc&lt;br /&gt;
&lt;br /&gt;
5. Use ''extract_images.php'' sctipt to extract images from disk dump.&lt;br /&gt;
 $ ./extract_images.php Crucial_CT250MX200SSD6_1531103B6ABA-part2&lt;br /&gt;
 &amp;amp;lt;pre&amp;amp;gt;&lt;br /&gt;
 Splitting Crucial_CT250MX200SSD6_1531103B6ABA-part2/file_0.img into jp4s&lt;br /&gt;
All images will be placed to ''result'' subdirectory.&lt;br /&gt;
 $ ls -l Crucial_CT250MX200SSD6_1531103B6ABA-part2/&lt;br /&gt;
 total 102404&lt;br /&gt;
 -rw-r--r-- 1 root root 104857600 Jan 11 10:53 file_0.img&lt;br /&gt;
 drwxrwxr-x 2 mk   mk        4096 Jan 11 12:22 result&lt;/div&gt;</summary>
		<author><name>Mikhail</name></author>	</entry>

	</feed>