{"id":33,"date":"2009-03-10T11:21:10","date_gmt":"2009-03-10T15:21:10","guid":{"rendered":"http:\/\/www.braindeadprojects.com\/blog\/?p=33"},"modified":"2009-05-29T07:23:15","modified_gmt":"2009-05-29T11:23:15","slug":"mounting-a-raw-dump-using-dd-and-losetup","status":"publish","type":"post","link":"http:\/\/www.braindeadprojects.com\/blog\/what\/mounting-a-raw-dump-using-dd-and-losetup\/","title":{"rendered":"Mounting a raw dump (using dd and losetup)"},"content":{"rendered":"<p>I&#8217;ve just picked up a DT Research WebDT366 Tablet. I&#8217;m in need of a good touchscreen for a CarPC project, and the Lilliputs are a little more expensive than I had hoped to go (Appx, $250.00 on Ebay).<\/p>\n<figure id=\"attachment_77\" aria-describedby=\"caption-attachment-77\" style=\"width: 384px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-77\" title=\"dsc03097\" src=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03097.jpg\" alt=\"First boot (I'm finishing up the Gentoo Linux Image)\" width=\"384\" height=\"288\" srcset=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03097.jpg 640w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03097-300x225.jpg 300w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><figcaption id=\"caption-attachment-77\" class=\"wp-caption-text\">First boot (I&#39;m finishing up the Gentoo Linux Image)<\/figcaption><\/figure>\n<p>The WebDT366 was only $90 (in fairly good condition), and I figured if I didn&#8217;t end up using it for a CarPC (or as simply the touchscreen for the CarPC), I could certainly find something else to do w\/ it.<\/p>\n<p>tschak909 has already done a good amount of work getting Linux to run on the device. (<a title=\"LinuxMCE Orbiter\" href=\"http:\/\/forum.linuxmce.org\/index.php?topic=6663.0\">http:\/\/forum.linuxmce.org\/index.php?topic=6663.0<\/a>). Thankfully it&#8217;s x86, so life should be a little easier when building custom images.<\/p>\n<p>Wanting to know what packages and configuration Thom has used in his installation, I needed a way to mount the raw disk image (<a title=\"Raw Disk Image\" href=\"http:\/\/www.localeconcept.com\/private\/webpad-beta2.dd.bz2)\">http:\/\/www.localeconcept.com\/private\/webpad-beta2.dd.bz2<\/a>). Googling didn&#8217;t get me at the exact answer, but it got me close enough to figure it out.<\/p>\n<p>First off, use losetup and and offset (flagged by -o).\u00a0 When running &#8220;file&#8221; on the image, you&#8217;ll see something like this:<\/p>\n<blockquote><p><strong>lennybruce ~ # file \/tmp\/webpad-beta2.dd<br \/>\n\/tmp\/webpad-beta2.dd: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 1023057 sectors<\/strong><\/p><\/blockquote>\n<p>As you can see, partition one starts at sector 63. (512 bytes * 63 = 32256). Having this information, mounting is easy:<\/p>\n<blockquote><p><strong>lennybruce ~ # losetup -o 32256 \/dev\/loop0 \/tmp\/webpad-beta2.dd<br \/>\nlennybruce ~ # mount \/dev\/loop0 \/mnt\/loop<br \/>\nlennybruce ~ # ls \/mnt\/loop\/<br \/>\nbin\u00a0\u00a0 cdrom\u00a0 etc\u00a0\u00a0 initrd\u00a0\u00a0\u00a0\u00a0\u00a0 lib\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 media\u00a0 opt\u00a0\u00a0 root\u00a0 selinux\u00a0 sys\u00a0\u00a0 tmp\u00a0 var<br \/>\nboot\u00a0 dev\u00a0\u00a0\u00a0 home\u00a0 initrd.img\u00a0 lost+found\u00a0 mnt\u00a0\u00a0\u00a0 proc\u00a0 sbin\u00a0 srv\u00a0\u00a0\u00a0\u00a0\u00a0 temp\u00a0 usr\u00a0 vmlinuz<br \/>\nlennybruce ~ # <\/strong><\/p><\/blockquote>\n<p>That&#8217;s it for mounting a raw disk image. Using the information Thom has provided in his image (video driver, input drivers, etc)&#8230; I&#8217;m building a custom Gentoo image that will <em>hopefully<\/em> be the basis or front-end of a CarPC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just picked up a DT Research WebDT366 Tablet. I&#8217;m in need of a good touchscreen for a CarPC project, and the Lilliputs are a little more expensive than I had hoped to go (Appx, $250.00 on Ebay). The WebDT366 was only $90 (in fairly good condition), and I figured if I didn&#8217;t end up &hellip; <a href=\"http:\/\/www.braindeadprojects.com\/blog\/what\/mounting-a-raw-dump-using-dd-and-losetup\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mounting a raw dump (using dd and losetup)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-what"],"_links":{"self":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/33"}],"collection":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":6,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":35,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions\/35"}],"wp:attachment":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}